通达信DDV_JGL新概念公式
{牛牛指标网提供:www.tdx001.com}
C/C++ Code复制内容到剪贴板
- {副图名:JGL_DDV ; VOL_DDV ;原创及版权属于JIPGEMLING.见凌见};
- {参数设置:量1或额2(1,2,1);曲线周期(4,300,10)};
- {坐标线位置:自动 ;额外Y轴分界 值1=0 };
- {TDX版,基本通用版,中高分辨率屏幕;其他版本可能要调整色柱效果};
-
- W:=量1或额2;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;
51966625.gif
|