DDV_JGL新概念公式-精品通达信指标公式源码分享
W:=2;
曲线周期:=10;
EPSL:=0.0001;
TJ1:=H=L AND C>REF(C,1) OR C>REF(C,5) OR C>REF(C,9) OR C>REF(C,17);
TJ2:=H=L AND C<REF(C,1) OR C<REF(C,5) OR C<REF(C,9) OR C<REF(C,17);
V0L:IF(W=1,V,AMOUNT),
STICK,LINETHICK2,COLOREEFFEE;
STICKLINE(C>OPEN,0,V0L,1,-1),COLOR1133FA;
STICKLINE(C<OPEN OR TJ2,0,V0L,2.2,1),COLORCYAN;
JGL_DTC:=(C-OPEN+IF(TJ1,EPSL,IF(TJ2,-EPSL,0)))/((H-L)+EPSL)/3;
ZDM+:V0L*(1+JGL_DTC)/2,COLOR1133AA,NODRAW{主动买};
ZDM-:V0L*(1-JGL_DTC)/2,COLORCYAN,NODRAW{主动卖};
STICKLINE(1,0,ABS(ZDM+),2.2,1),COLOR1133DE;
BG:=BARSCOUNT(C);
JGLDDV:IF(BG,ZDM+-ZDM-,0.0),COLOR13AADD,NODRAW{买卖差};
STICKLINE(ZDM+>ZDM-,0,JGLDDV,2.1,0),COLOR1399DD{实心柱};
STICKLINE(ZDM+>ZDM-,0,JGLDDV,1.0,0),COLOR13AADD;
STICKLINE(ZDM+<ZDM-,0,-JGLDDV,2.1,0),COLOR339933;
STICKLINE(ZDM+<ZDM-,0,-JGLDDV,1.0,0),COLOR33AA33;
SGM:=SUM(JGLDDV,3)*2.3;
M_A:=MA(SGM,曲线周期);E_M:=EMA(SGM,曲线周期);
DIFJ:(IF(M_A=MA(C,256000),E_M,M_A)),COLOREE33FF,LINETHICK2;
DEAG:EMA(DIFJ,3),COLOR13FE33,LINETHICK2;
MACDL:2*(DIFJ-DEAG),COLORFFAA55,NODRAW;
STICKLINE(MACDL>0,0,-MACDL,0.1,1),COLOR1133DD;
STICKLINE(MACDL<0,0,+MACDL,0.1,1),COLORFFAA55;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!