qq_1542855182 发表于 2018-11-22 11:02:35

变色、直观macd

分享一个供大家参考
快速线:EMA(CLOSE,12) - EMA(CLOSE,26),COLOR33FF33,LINETHICK1;
慢速线:EMA(快速线,9),COLORYELLOW,LINETHICK1;
MACD1:=2*(快速线-慢速线),STICK;
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2,0),COLORRED;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,2,0),COLORGREEN;
STICKLINE(MACD1<MACD2,0,MACD1,2,0),COLORCBCBC0;
STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;
MACD:MACD1,NODRAW,COLORMAGENTA;
DRAWICON(CROSS(快速线,0),0-0.01,1);
DRAWICON(CROSS(慢速线,快速线),慢速线-0.01,2);
强:IF(快速线>=慢速线,快速线,DRAWNULL),COLORRED,LINETHICK1;
弱:IF(慢速线>=快速线,慢速线,DRAWNULL),COLORFF9900,LINETHICK1;





枫舞岚杉 发表于 2019-5-5 23:59:45

谢谢分享!

世界和平 发表于 2023-6-17 11:48:48

谢谢分享!
页: [1]
查看完整版本: 变色、直观macd