DIFF : EMA(CLOSE,6) - EMA(CLOSE,13);DEA : EMA(DIFF,9); : 2*(DIFF-DEA), COLORSTICK;A1:=BARSLAST(REF(OSS(DIFF,DEA ),1));DRAWTEXT(REF(C,A1+1)>C AND REF(DIFF,A1+1)
0 ,DIFF,'M'),COLOR00FFFF;{MACD};C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));DRAWTEXT(REF(C,C1+1)DIFF AND CROSS(DEA,DIFF)>0,DIFF,'M'),COLOR00FF00;{MACD};