周二是一根大阳线,就统计周二是大阳线的所有股票
m:=7;{大阳线的涨幅,楼主可自行调整}
n:=3;{距今天的天数,这是每天都得变化的,3在本例和此时周五而言,是周二}
ZF:=(close/ref(close,1)-1)*100;
TA:=ZF>=M;
TB:=REF(TA,N);
XG:TB;
=============以下语句是结合你在一楼的其他条件而写的===================
A:=V*100/CAPITAL;
B:=SUM(REF(A,1),5);
XG1:FINANCE(7)<1000000000 AND FINANCE(7)>100000000 AND REF(B>10 AND C>MA(C,10) AND CROSS(MA(C,5),MA(C,10)) AND C<REF(C,1) AND V<REF(V,1) *0.7 AND C<REF(C,1),2);
楼主一楼的原句中,标红的是重复语句,且与你刚才所说的周二是大阳线相矛盾,故未采用。
以下语句是结合一楼的其他条件汇总的。
m:=7;{大阳线的涨幅,楼主可自行调整}
n:=3;{距今天的天数,这是每天都得变化的,3在本例和此时周五而言,是周二}
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
A:=V*100/CAPITAL;
B:=SUM(REF(A,1),5);
ZF:=(close/ref(close,1)-1)*100;
TA:=ZF>=M;
TB:=REF(TA,N);
TC:=FINANCE(7)<1000000000 AND FINANCE(7)>100000000;
TD:=B>10;
TE:=CLOSE>MA10 AND CROSS(MA5,MA10);
TF:=V<REF(V,1)*0.7;
TG:=TD AND TE AND TF;
TH:=REF(TG,2);
XG:TB AND TC AND TH;
|