1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; X1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5))>100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)); X2:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5))>60 ; X3:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30))>70; X4:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5))>100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)); X5:=BARSLAST(CROSS(30,100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5))))<2; X6:=BARSLAST(CROSS(100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),50))<2; X7:=BARSLAST(CROSS(100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5))))<2 ; X8:=BARSLAST(CROSS(50,100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5))))<3; X9:=BARSLAST(CROSS(100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),50))<3; X10:=BARSLAST(CROSS(100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5))))<2; X11:=MA(C,10)>REF(MA(C,10),1) AND MA(C,60)>REF(MA(C,60),1) AND C>O AND REF(C<O,1); X12:=MA(C,5)>REF(MA(C,5),1) AND J>REF(J,1); 乘风破浪:=X1 AND X2 AND X3 AND X4 AND X5 AND X6 AND X7 AND X8 AND X9 AND X10 AND X11 AND X12; DRAWTEXT_FIX(C>O,0.01,0.9,0,'公众号:水哥指标库'),COLORWHITE; STICKLINE(乘风破浪,-8,15,1,0),COLORRED,LINETHICK2; STICKLINE(乘风破浪,1,6,1,0),COLOR00FFFF,LINETHICK2; DRAWICON(乘风破浪,13,13); DRAWTEXT(乘风破浪,10,'乘风破浪'),COLORYELLOW;
|