指标提示符合规则的一阳破买入信号,股价经过长期下跌之后形成横盘状态或波段形态,一根大阳拉起收复失地,回调后一阳破再次拉起,此时出符合买入的信号,直接上车,注意规避高位的个股。
VAR1:=CLOSE;
VAR2:=OPEN;
高量阳线:=VAR1>VAR2*1.03 AND VAR1>REF(VAR1,1)*1.05;
VAR3:=REF(高量阳线,5) AND 高量阳线 AND VAR1>REF(VAR1,5) AND VAR1< REF(VAR1,5)*1.03;
VAR4:=REF(高量阳线,6) AND 高量阳线 AND VAR1>REF(VAR1,6) AND VAR1< REF(VAR1,6)*1.03;
VAR5:=REF(高量阳线,7) AND 高量阳线 AND VAR1>REF(VAR1,7) AND VAR1< REF(VAR1,7)*1.03;
VAR6:=REF(高量阳线,8) AND 高量阳线 AND VAR1>REF(VAR1,8) AND VAR1< REF(VAR1,8)*1.03;
一阳破:=VAR3 OR VAR4 OR VAR5 OR VAR6;
STICKLINE(一阳破,0,4,4,0),COLORRED;
DRAWTEXT(一阳破,3.5,' 一阳突破'),COLORYELLOW;
选股公式的源码:
VAR1:=CLOSE;
VAR2:=OPEN;
高量阳线:=VAR1>VAR2*1.03 AND VAR1>REF(VAR1,1)*1.05;
VAR3:=REF(高量阳线,5) AND 高量阳线 AND VAR1>REF(VAR1,5) AND VAR1< REF(VAR1,5)*1.03;
VAR4:=REF(高量阳线,6) AND 高量阳线 AND VAR1>REF(VAR1,6) AND VAR1< REF(VAR1,6)*1.03;
VAR5:=REF(高量阳线,7) AND 高量阳线 AND VAR1>REF(VAR1,7) AND VAR1< REF(VAR1,7)*1.03;
VAR6:=REF(高量阳线,8) AND 高量阳线 AND VAR1>REF(VAR1,8) AND VAR1< REF(VAR1,8)*1.03;
一阳买入选股:VAR3 OR VAR4 OR VAR5 OR VAR6;