通达信均线洗盘主图及选股指标公式
2020/10/13 19:07:33
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;
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);
}
投 股票网 www.to u18.cn
股市公式下载推荐