通达信短线用MACD副图指标

[复制链接]
查看40 | 回复0 | 2022-7-24 05:42:46 | 显示全部楼层 |阅读模式

DIF:EMA(CLOSE,7)-EMA(CLOSE,14),COLORCCFFFF;
 MACD:EMA(DIF,3),COLORFF2400,LINETHICK2;
 DEF:2*(DIF-MACD),COLORFFFF00,LINETHICK0;
 STICKLINE(DEF>=0 AND DEF>=REF(DEF,1),0,DEF,2,1),COLOR7093DB;
 STICKLINE(DEF>=0 AND DEF< REF(DEF,1),0,DEF,2,0),COLOR7093DB;
 STICKLINE(DEF<0 AND DEF>=REF(DEF,1),0,DEF,2,1),COLORB87333;
 STICKLINE(DEF<0 AND DEF< REF(DEF,1),0,DEF,2,0),COLORB87333;
 ST:=IF(DEF>0 AND REF(DEF,1)>REF(DEF,2) AND DEF< REF(DEF,1),1,0);
 SJ:=IF(DEF<0 AND REF(DEF,1)< REF(DEF,2) AND DEF>REF(DEF,1),1,0);
 ZL:=IF(CROSS(C,MA(C,20)) OR CROSS(C,MA(C,60)),1,0);
 ZC:=IF(CROSS(MA(C,20),C) OR CROSS(MA(C,60),C),1,0);
 ZD:=IF(CROSS(MACD,DIF) AND DIF>0 AND MACD>0,1,0);
 ZK:=IF(CROSS(DIF,MACD) AND DIF<0 AND MACD<0,1,0);

68166177.jpg

68166177.jpg

回复

使用道具 举报

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

本版积分规则