通达信优化钻石副图源码

[复制链接]
查看93 | 回复0 | 2021-8-19 19:33:50 | 显示全部楼层 |阅读模式

以下是通达信优化钻石副图源码(无源码的请下载附件导入)

HJ_1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
 HJ_2:=DMA(CLOSE,HJ_1);
 HJ_3:=(1-10/100)*HJ_2;
 HJ_4:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 HJ_5:=SMA(HJ_4,2,1);
 HJ_6:=SMA(HJ_5,2,1);
 HJ_7:=3*HJ_5-2*HJ_6;
 HJ_8:=CROSS(HJ_7,0);
 HJ_9:=EMA(CLOSE,15)-EMA(CLOSE,26);

 HJ_10:=EMA(HJ_9,5);
 HJ_11:=2*(HJ_9-HJ_10);
 HJ_12:=HJ_11<0 AND HJ_11>REF(HJ_11,1) AND REF(HJ_11,1)<REF(HJ_11,2) AND REF(HJ_11,2)<REF(HJ_11,3) AND REF(HJ_11,3)<REF(HJ_11,4);
 HJ_13:=HJ_8 AND HJ_12 AND CLOSE>=HJ_3 AND REF(VOL,1)<REF(VOL,2);
 HJ_14:=REF(VOL,1)<MA(VOL,5);
 HJ_15:=CLOSE/REF(CLOSE,1)>1.04;
 HJ_16:=CROSS(CCI,(-100)) AND HJ_13 AND HJ_14 AND HJ_15 AND VOL>1.3*REF(VOL,1);
 STICKLINE(HJ_16,0,0.5,3,0),COLORFF80FF;
 STICKLINE(HJ_16,0,0.8,2,0),COLOR4080FF;
 STICKLINE(HJ_16,0,1,1,0),COLORMAGENTA;
 DRAWICON(HJ_16,1.198,1);

{-----------------------------------}

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则