【通达信免费源码】整合了一个MACD零轴主图源码,喜欢的拿走
通达信免费指标
06-12
阅读:453
评论:0
{MACD主图零轴}
M50:MA(C,50),COLORYELLOW,LINETHICK2;
DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
DIF:DIF1+EMA(CLOSE,3),COLORWHITE;
DEA:DEA1+EMA(CLOSE,12),COLORYELLOW;
{D50:=M50+MA(DIF1,50),LINETHICK2;}
MACD:(DIF1-DEA1)*2,NODRAW,COLORRED;
STICKLINE(MACD>=0,M50,M50+MACD*3,0,1),COLORLIRED;
STICKLINE(MACD<0,M50,M50+MACD*3,0,1),COLORLIGREEN;
STICKLINE(((MACD<REF(MACD,1)) AND (MACD>0)),M50,M50+MACD*3,0,1),COLORLIRED;
STICKLINE(((MACD>REF(MACD,1)) AND (MACD<0)),M50,M50+MACD*3,0,1),COLORLIGREEN;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!