文华财经幅图指标公式大全源码下载:
DIFF:EMA(CLOSE,55) - EMA(CLOSE,89),NODRAW;
DEA: EMA(DIFF,9),NODRAW;
MACD:2*(DIFF-DEA),NODRAW;
DIFF1: EMA(CLOSE,12) - EMA(CLOSE,26),NODRAW;
DEA1: EMA(DIFF1,9),NODRAW;
MACD1:2*(DIFF1-DEA1),DOT,COLORYELLOW;
DRAWLINE(1,MACD1,1,0,COLORGRAY);
DRAWLINE(MACD>0,MACD,1,0,COLORRED);
DRAWLINE(MACD<0,MACD,1,0,COLORGREEN);
DRAWLINE(MACD>MACD1&&MIN(MACD,MACD1)>0,MACD,1,MACD1,COLORRED);
DRAWLINE(MACD>MACD1&&MAX(MACD,MACD1)<0,MACD,1,0,COLORGREEN);
DRAWLINE(MACD>MACD1&&MAX(MACD,MACD1)<0,MACD1,1,MACD,COLORGRAY);
DRAWLINE(MACD<MACD1&&MIN(MACD,MACD1)>0,MACD,1,0,COLORRED);
DRAWLINE(MACD<MACD1&&MIN(MACD,MACD1)>0,MACD1,1,MACD,COLORGRAY);