DIF:EMA(CLOSE,12)-EMA(CLOSE,36),LINETHICK1.9;
DEA:EMA(DIF,9),LINETHICK1.9;
MACD:(DIF-DEA)*2,COLORSTICK;
{ 爱约股_最新股票指标公式}
AA1:IF(REF(DIF,1)<DIF,DIF,DRAWNULL),COLORWHITE;
AA2:IF(REF(DIF,1)>DIF,DIF,DRAWNULL),COLORCD7F32;
AA3:IF(REF(DEA,1)<DEA,DEA,DRAWNULL),COLORRED;
AA4:IF(REF(DEA,1)>DEA,DEA,DRAWNULL),COLORGREEN;
AA5:IF(REF(MACD,1)<MACD,MACD,DRAWNULL),COLORRED;
AA6:IF(REF(MACD,1)>MACD,MACD,DRAWNULL),COLORGREEN;