{选股一}
X:=MA(AMOUNT,5)/MA(V,5)/100;
VAR3:=(X-MA(AMOUNT,125)/MA(V,125)/100)/X;
VAR4:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);
XG1:CROSS(-5,VAR4) AND VAR3<-0.4;
{选股二}
X:=MA(AMOUNT,5)/MA(V,5)/100;
VAR3:=(X-MA(AMOUNT,125)/MA(V,125)/100)/X;
VAR4:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);
XG2:CROSS(-5,VAR4) AND VAR3<-0.25 AND VAR3>-0.4;
{选股三}
X:=MA(AMOUNT,5)/MA(V,5)/100;
VAR3:=(X-MA(AMOUNT,125)/MA(V,125)/100)/X;
VAR4:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);
XG3:CROSS(-5,VAR4) AND VAR3<-0.15 AND VAR3>-0.25;
{前面三个的综合选股}
X:=MA(AMOUNT,5)/MA(V,5)/100;
VAR3:=(X-MA(AMOUNT,125)/MA(V,125)/100)/X;
VAR4:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);
XG1:=CROSS(-5,VAR4) AND VAR3<-0.4;
XG2:=CROSS(-5,VAR4) AND VAR3<-0.25 AND VAR3>-0.4;
XG3:=CROSS(-5,VAR4) AND VAR3<-0.15 AND VAR3>-0.25;
XGZH:XG1 OR XG2 OR XG3;
{这三个选股无所所谓大,中,小底,很多信号都很不错,最后的公式是前面三个公式任何一只出信号就选出,公式中没有使用未来函数}
X:=MA(AMOUNT,5)/MA(V,5)/100;
VAR3:=(X-MA(AMOUNT,125)/MA(V,125)/100)/X;
VAR4:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);
VAR5:=C/MA(C,60)-1;
{扬搜:只有想不到,没有搜不到 yangsou.com}
买1:=IF(CROSS(-5,VAR4) AND VAR3<-0.25 AND VAR3>-0.4,-0.3,-1);
买2:=IF(CROSS(-5,VAR4) AND VAR3<-0.15 AND VAR3>-0.25,-0.6,-1);
买:买1 or 买2;