DIFF : EMA(CLOSE,6) - EMA(CLOSE,13);
DEA : EMA(DIFF,9);
macd : 2*(DIFF-DEA), COLORSTICK;
A1:=BArslAST(REF(crOSS(DIFF,DEA ),1));
DRAWTEXT(REF(C,A1+1)>C AND REF(DIFF,A1+1)
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
DRAWTEXT(REF(C,C1+1)
DIFF : EMA(CLOSE,6) - EMA(CLOSE,13);
DEA : EMA(DIFF,9);
macd : 2*(DIFF-DEA), COLORSTICK;
A1:=BArslAST(REF(crOSS(DIFF,DEA ),1));
DRAWTEXT(REF(C,A1+1)>C AND REF(DIFF,A1+1)
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
DRAWTEXT(REF(C,C1+1)