均線洗盤主圖/選股附實際測試圖指標(biāo) {主圖} N=30;N1:=2;{N為30天均線,可調(diào)} VAR1:=MA(C,N); 上升:IF(VAR1>REF(VAR1,1),VAR1,DRAWNULL)POINTDOT,COLORRED; 下降:IF(VAR1<REF(VAR1,1),VAR1,DRAWNULL)POINTDOT,COLORGREEN; A:=CROSS(EVERY(C<=MA(C,N) AND C<O,3) AND REF(H,N1)>MA(C,N),0.5); TJ:=BARSLAST(A); XG:=TJ<5 AND CROSS(C,MA(C,N)) AND EVERY(MA(C,N)>REF(MA(C,N),1),10); DRAWTEXT(XG,C,'----------------------------均線洗盤'),COLORYELLOW; B:=BARSLAST(XG); DRAWICON(B<30 AND COUNT(C>REF(C,B),B+1)=1 AND C>REF(C,B),C,9); {選股} N=30;N1:=2;{N為30天均線,可調(diào)} VAR1:=MA(C,N); A:=CROSS(EVERY(C<=MA(C,N) AND C<O,3) AND REF(H,N1)>MA(C,N),0.5); TJ:=BARSLAST(A); XG:=TJ<5 AND CROSS(C,MA(C,N)) AND EVERY(MA(C,N)>REF(MA(C,N),1),10); B:=BARSLAST(XG); B<30 AND COUNT(C>REF(C,B),B+1)=1 AND C>REF(C,B); |
|