求文华财经指标改成通达信指标
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
JC:=CROSS(DIFF,DEA);
SC:=CROSSDOWN(DIFF,DEA);
LL:=CROSS(BACKSET(REFX(JC,1)||ISLASTBAR&&EXIST(MACD>REF(MACD,1),BARSLASTCOUNT(MACD<0)),LLVBARS(MACD,BARSLAST(SC)+1)+1),0.5);
HH:=CROSS(BACKSET(REFX(SC,1)||ISLASTBAR&&EXIST(MACD<REF(MACD,1),BARSLASTCOUNT(MACD>0)),HHVBARS(MACD,BARSLAST(JC)+1)+1),0.5);
DRAWCOLORKLINE(HH,COLORMAGENTA,0);
DRAWCOLORKLINE(LL,COLORMAGENTA,0)?