以下是通达信均线洗盘(鹏腾2009版本)源码主图选股贴图
向各位汇报一下源码思路:连续三天阴线下破30天均线,一周内又快速上穿30天均线,连续三天阴线下破30天均线,但30天均线不改变原来的运行方向持续过走强,从中可以看出是主力的洗盘行为,友情提示:弱势出现信号慎用。
{主图}
N=30;N1:=2;{N为30天均线,可调}
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天均线,可调}
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);
评论(0)