N:=3;
{前面出现阶段性高点}
T1:=HHV(HIGH,10)=HHV(HIGH,N);
{要求前两天均出现跳空开盘,且是两连阴}
T2:=REF(CLOSE,2)>REF(CLOSE,1);
T3:=REF(CLOSE,2)>REF(OPEN,1);
T4:=REF(OPEN,2)>REF(CLOSE,2);
T5:=REF(OPEN,1)>REF(CLOSE,1);
{要求两连阴的前一天是阳k线}
T6:=REF(CLOSE,3)>REF(OPEN,3);
{今天跳空开盘}
T7:=OPEN>REF(CLOSE,1);
{要求今天收真阳线}
T8:=CLOSE/OPEN>1;
T9:=CLOSE>REF(CLOSE,2);
{要求第二根阴线必须有下影线}
T10:=REF(CLOSE,1)/REF(LOW,1)>1.005;
{今日上涨,最好是光脚线。如果不是,那么最低点不能击穿昨天收盘价}
T11:=OPEN/LOW>=1;
T12:=LOW>REF(CLOSE,1);
选股:T1&&T2&&T3&&T4&&T5&&T6&&T7&&T8&&T9&&T10&&T11&&T12;