DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:2*(DIFF-DEA),COLORSTICK;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSEANDDIFF>REF(DIFF,A1+1)ANDCROSS(DIFF,DEA);STICKLINE1(底背离,0,,8,0),COLORRED;DRAWLINE3(底背离,DEA,0,底背离,REF(DEA,BARSLAST(A1=0)),BARSLAST(A1=0),0),COLORRED,HICK2;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,A2+1)<CLOSEANDREF(DIFF,A2+1)>DIFFANDCROSS(DEA,DIFF);DRAWLINE3(顶背离,DEA,0,顶背离,REF(DEA,BARSLAST(A2=0)),BARSLAST(A2=0),0),REEN,HICK2;
文华期货软件指标公式源码期货短线kdj指标 来自淘豆网m.daumloan.com转载请标明出处.