MACDDX
{MACDX}
ZDI:(EMA(CLOSE,10)-EMA(CLOSE,50)),NODRAW;
ZDE:EMA(ZDI,60),NODRAW;
DRAWBAND(ZDI,RGB(139,0,139),ZDE,RGB(0,100,50));
0,COLORWHITE;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
MACDXG:=(REF(MACD,1)<REF(MACD,2) AND MACD>0 AND MACD>REF(MACD,1)) OR (MACD>0 AND REF(MACD,1)<0);
STICKLINE(MACDXG,0,MACD,2,0),LINETHICK3,COLORMAGENTA;
A5:=MA(C,5);
A10:=MA(C,10);
A20:=MA(C,21);
VAR1:=COUNT(MAX(MAX(A5,A10),A20)/MIN(MIN(A5,A10),A20)<1.04,5)>=3;
VAR2:=A5>=A10 AND A10>A20 AND A5>=REF(A5,1) AND A10>REF(A10,1)
AND A20>=REF(A20,1) AND C>A5;
BUY1:=VAR1 AND VAR2;
STICKLINE(BUY1,0,MACD,0.05,0),COLORYELLOW;
0,COLORWHITE;
DIFF:DIF,COLORWHITE,LINETHICK1;
DEAA:DEA,COLORYELLOW,LINETHICK1;
赞 (0)