DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2,COLORSTICK;
SS:=J>50 AND J<REF(J,1) AND MACD<REF(MACD,1);
DRAWICON(SS,80,2 );
YY:=J>REF(J,1) AND MACD>REF(MACD,1);
DRAWICON(YY,20,1 );
A:=HHV(MACD,10)-LLV(MACD,10)>9;
A1:=COUNT(A,6)=1;
A2:=CROSS(DIF,DEA);
A3:=A1 OR A2;
DRAWICON(A3,5,11 ); |