网友求助:
PSY:=COUNT(CLOSE>REF(CLOSE,1),12)/12*100;
PSYMA:=MA(PSY,6);
PSYMA<=35 AND PSY<=25 AND C<O AND V>1.9*REF(V,1)
AND ( REF(EXIST(PSYMA<=35 AND PSY<=25 AND C<O AND V>1.9*REF(V,1),10),1) OR
REF(EXIST(IF(NAMELIKE('ST')=0 AND NAMELIKE('*ST')=0 AND NAMELIKE('SST')=0
AND NAMELIKE('S*ST')=0 AND NAMELIKE('S ST')=0,(C/REF(C,1)-1)*100>9.9,
(C/REF(C,1)-1)*100>4.9)
,20),1) )
AND NOT(EXIST(EVERY(C<O,4),10))
AND V>REF(HHV(V,4),1)
AND REF(NOT(EXIST(
PSYMA<=35 AND PSY<=25 AND C<O AND V>1.9*REF(V,1)
AND ( REF(EXIST(PSYMA<=35 AND PSY<=25 AND C<O AND V>1.9*REF(V,1),10),1) OR
REF(EXIST(IF(NAMELIKE('ST')=0 AND NAMELIKE('*ST')=0 AND NAMELIKE('SST')=0
AND NAMELIKE('S*ST')=0 AND NAMELIKE('S ST')=0,(C/REF(C,1)-1)*100>9.9,
(C/REF(C,1)-1)*100>4.9)
,20),1) )
AND NOT(EXIST(EVERY(C<O,4),10))
AND V>REF(HHV(V,4),1)
,20)),1)
AND (C/REF(C,1)-1)*100>-8;
解答如下:
PSY:=COUNT(CLOSE>REF(CLOSE,1),12)/12*100;
PSYMA:=MA(PSY,6);
PSYMA<=35 AND PSY<=25 AND C<O AND V>1.9*REF(V,1)
AND ( REF(ANY(PSYMA<=35 AND PSY<=25 AND C<O AND V>1.9*REF(V,1),10),1)
AND NOT(ANY(LAST(C<O)=4,10))AND V>REF(HHV(V,4),1)) AND NOT(STRFIND(stkname,'ST',1)>0) AND NOT(STRFIND(stkname,'S',1)>0) AND (C/REF(C,1)-1)*100>-8;