通达信对“最准确启动点”的优化副图源码

[复制链接]
查看139 | 回复0 | 2021-8-20 14:40:07 | 显示全部楼层 |阅读模式

以下是通达信对“最准确启动点”的优化副图源码(无源码的请下载附件导入)

DIF:EMA(CLOSE,9)-EMA(CLOSE,150),NODRAW;
 DEA:EMA(DIF,12),NODRAW;
 MACD:2*(DIF-DEA),COLORSTICK;

DIK:4*DIF-3*DEA,COLORYELLOW;
 DED:=EMA(DIK,1),COLORGREEN;
 IF(C>DED,DED,DRAWNULL),COLORRED,LINETHICK3;
 IF(DED<=REF(DED,1),DED,DRAWNULL),COLORGREEN,LINETHICK3;

启动点:=MACD<0 AND MACD>REF(MACD ,1) AND REF(MACD ,1)<REF(MACD ,2)
 AND REF(MACD ,2)<REF(MACD ,3)
 AND REF(MACD ,3)<REF(MACD ,4);
 STICKLINE(启动点,8,MACD,2,0),COLORMAGENTA;

分界线:0,COLORFF00FF;
 DRAWICON(启动点,20,11);

STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR000055;
 STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR000099;
 STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR0000BB;

STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR40FF00;
 STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR40FF00;
 STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR40FF00;

STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLOR000055;
 STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLOR000099;
 STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLOR0000BB;

STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLOR40FF00;
 STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLOR40FF00;
 STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLOR40FF00;

选股公式源码:
DIF:=EMA(CLOSE,12)-EMA(CLOSE,150);
 DEA:=EMA(DIF,9);
 MACD:=(DIF-DEA)*2;

启动点:MACD<0 AND MACD>REF(MACD ,1) AND REF(MACD ,1)<REF(MACD ,2)
 AND REF(MACD ,2)<REF(MACD ,3)
 AND REF(MACD ,3)<REF(MACD ,4);

554266121.jpg

554266121.jpg

回复

使用道具 举报

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

本版积分规则