资金流量副图-精品通达信指标公式源码分享
PJJ:=AMOUNT/VOL;
JJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
QJJ:=REF(EMA(JJ,3),1);
XVL:=VOL/((HIGH-LOW)*2-(ABS(CLOSE-OPEN)));
ZLL:=IF(CLOSE>OPEN,XVL*(HIGH-LOW),IF(CLOSE<OPEN,XVL*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,-XVL*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,-XVL*(HIGH-LOW),-VOL/2));
HSL1:=VOL/CAPITAL;
HSL:=IF(HSL1>10,10,HSL1);
攻击流量:=ZLL/20/1.15;
GJJ:=攻击流量*0.55+REF(攻击流量,1)*0.33+REF(攻击流量,2)*0.22;
STICKLINE(攻击流量*0.4>=0,攻击流量*0.4*1.5,0,0.2,0),COLOR808080;
STICKLINE(攻击流量*0.4<0,攻击流量*0.4*1.5,0,0.2,0),COLOR808080;
LLJX:=EMA(GJJ,8);
ZJLL:=EMA(GJJ,3);
资金流量:ZJLL,LINETHICK1;
STICKLINE(资金流量>0,资金流量,0,1.4,0),COLORRED;
STICKLINE(资金流量<0,资金流量,0,1.4,0),COLORFF0000;
流量基线:LLJX,LINETHICK2;
LDF:MA(LLJX,5),COLORFFFF00,LINETHICK1;
资金平衡线:MA(LDF,13),LINETHICK1,COLORWHITE;
QZJJ:=REF(ZJLL,1);
BB:=(ZJLL-QZJJ)/QZJJ*100;
流量增幅%:IF(ZJLL>0 AND QZJJ<0,ABS(BB),IF(ZJLL<0 AND QZJJ<0 AND ZJLL<QZJJ,-BB,BB)),LINETHICK0;
力度:攻击流量/1000,LINETHICK1;
周流量:SUM(ZJLL,5),LINETHICK1;
ZQZJJ:=REF(周流量,1);
ZBB:=(周流量-ZQZJJ)/ZQZJJ*100;
周增幅%:IF(周流量>0 AND ZQZJJ<0,ABS(ZBB),IF(周流量<0 AND ZQZJJ<0 AND 周流量<ZQZJJ,-ZBB,ZBB)),LINETHICK0;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!