DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>CANDREF(DIFF,A1+1);STICKLINE(FILTER(B1>0,5),0,,3,0),REEN;DRAWTEXT(FILTER(B1>0,5),,'MACD底背离'),REEN;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);A2:=BARSLAST(REF(CROSS(K,D),1));B2:=REF(C,A2+1)>CANDREF(K,A2+1);STICKLINE(FILTER(B2>0,5),0,1,3,0),COLORYELLOW;DRAWTEXT(FILTER(B2>0,5),,'KDJ底背离'),COLORYELLOW;LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));B3:=REF(C,A3+1)>CANDREF(RSI1,A3+1);STICKLINE(FILTER(B3>0,5),0,,3,0),COLORWHITE;DRAWTEXT(FILTER(B3>0,5),,'RSI底背离'),COLORWHITE;2,COLORRED;C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));XD1:=REF(C,C1+1)<CANDCROSS(DEA,DIFF);STICKLINE(FILTER(XD1>0,5),2,,3,0),COLOR006
期货指标公式文华财经指标真正好用的指标多背离共振 来自淘豆网m.daumloan.com转载请标明出处.