1. A1:=REF(CLOSE,5)>REF(CLOSE,4); A2:=REF(CLOSE,4)>REF(CLOSE,3); A3:=REF(CLOSE,3)>REF(CLOSE,2); A4:=REF(CLOSE,2)>REF(CLOSE,1); A5:=CLOSE>REF(HIGH,1) AND V>REF(V,1); RET:A1 AND A2 AND A3 AND A4 AND A5; 2. (C-REF(C,1))/REF(C,1)*100>3; 3. EZT:=HIGH>REF(CLOSE,1)*1.095; { 出现过涨停 } EZTO:EXIST(EZT,N); { N天内存在过涨停 }; n 1 100 20 请求高手给合并一下这3个的选股做成追涨停的选股指标
爱约股解答:
{追涨停的选股指标}
A1:=REF(CLOSE,5)>REF(CLOSE,4);
A2:=REF(CLOSE,4)>REF(CLOSE,3);
A3:=REF(CLOSE,3)>REF(CLOSE,2);
A4:=REF(CLOSE,2)>REF(CLOSE,1);
A5:=CLOSE>REF(HIGH,1) AND V>REF(V,1);
RET:=A1 AND A2 AND A3 AND A4 AND A5;
ERT:=(C-REF(C,1))/REF(C,1)*100>3;
N:=20;
EZT:=HIGH>REF(CLOSE,1)*1.095;{ 出现过涨停 }
EZTO:=EXIST(EZT,N); {N天内存在过涨停 N:=1,100,20}
XG:RET AND ERT AND EZTO;