VAR2:=(C-MA(C,6))/MA(C,6)*100;

VAR3:=(C-MA(C,12))/MA(C,12)*100;

VAR4:=(C-MA(C,24))/MA(C,24)*100;

VAR5:=REF(C,1);

VAR6:=SMA(MAX(C-VAR5,0),5,1)/SMA(ABS(C-VAR5),5,1)*100;

VAR7:=(H+L+C)/3;

VAR8:=(VAR7-MA(VAR7,14))/(0.015*AVEDEV(VAR7,14));

VAR9:=VAR2>-15.8 AND VAR2<-12.2;

VARA:=VAR3<-20.8;

VARB:=VAR4<-27.5;

VARC:=VAR6<11.7;

VARD:=VAR8<-145;

BUYSIGNAL := VAR9 AND VARA AND VARB AND VARC AND VARD;

FILTERED := FILTER(BUYSIGNAL, 5);

FIRSTCANDLE := (C < O) AND REF(FILTERED, -2);

条件选股: 38 * FILTER(BUYSIGNAL, 5);