{KDJ之和主升浪主圖指標(biāo)公式(含頂?shù)妆畴x)} TJ1:=((C+LLV(LOW,9))+(HHV(HIGH,9)+LLV(LOW,9)))/4; TJ2:SMA(TJ1,3,1); TJ3:SMA(TJ2,3,1); TJ4:3*TJ2-2*TJ3; A1:=BARSLAST(REF(CROSS(TJ2,TJ3),1)); 底背離:=REF(CLOSE,A1+1)>CLOSE AND TJ2>REF(TJ2,A1+1) AND CROSS(TJ2,TJ3); STICKLINE(底背離,MA(C,10),MA(C,14),5,0),COLORMAGENTA; DRAWTEXT(底背離>0,LLV(C,13),'底背離'),COLORMAGENTA; A2:=BARSLAST(REF(CROSS(TJ3,TJ4),1)); 頂背離:=REF(CLOSE,A2+1)<CLOSE AND REF(TJ3,A2+1)>TJ3 AND CROSS(TJ3,TJ4); STICKLINE(頂背離,MA(C,10),MA(C,14),2,0),COLORBLUE; DRAWTEXT(頂背離>0,HHV(C,13),'頂背離'),COLORGREEN; B:DRAWTEXT(CROSS(TJ4,TJ2),LLV(LOW,3),'B點(diǎn)'); S:DRAWTEXT(CROSS(TJ2,TJ4),HHV(HIGH,3),'S點(diǎn)'); TJ22:=(EMA(TJ1,3)+EMA(TJ1,6) +EMA(TJ1,12)+EMA(TJ1,24))/4; TJ33:=EMA(TJ22,3); TJ44:=EMA(TJ33,3); TJ55:=EMA(TJ44,3); TJ66:=EMA(TJ55,3); TJ77:=EMA(TJ66,3); TJ88:=EMA(TJ77,3); 持多區(qū)間:=TJ1>TJ22 AND TJ22>TJ33 AND TJ33>TJ44 AND TJ44>TJ55 AND TJ55>TJ66 AND TJ66>TJ77 AND TJ77>TJ88 && MA(C,3)>MA(C,13); STICKLINE(持多區(qū)間,MA(C,10),MA(C,14),2,0),COLORBLUE; {信號(hào)滯后,如果跌破TJ4需要提前出局}; {KDJ之和選股公式} TJ1:=((C+LLV(LOW,9))+(HHV(HIGH,9)+LLV(LOW,9)))/4; TJ2:=SMA(TJ1,3,1); TJ3:=SMA(TJ2,3,1); TJ4:=3*TJ2-2*TJ3; A1:=BARSLAST(REF(CROSS(TJ2,TJ3),1)); XG:CROSS(TJ4,TJ2); 本公式由KDJ頂?shù)妆畴x指標(biāo)公式改編而成。信號(hào)滯后嚴(yán)重,跌破趨勢(shì)柱子應(yīng)提前出局。 |
|