diff:(EMA(CLOSE,12)-EMA(CLOSE,26))/EMA(CLOSE,26); dea:EMA(diff,9); macd:10000*(diff-dea); 0; PARTLINE(MacD,MACD>=REF(MACD,1),RGB(255,0,0),MACD