编写要求:
近期出现天量(最好是历史天量),90天内收复它,并且均线:60/120/250呈多头向上发散的选股公式。
www.gszx.com.cn网解答:
TL:=V=HHV(V,0);
T:=BARSLAST(TL);
TJ1:=COUNT(CROSS(V,REF(TL,T)),90)=1 AND T<=90;
A1:=MA(CLOSE,60);
A2:=MA(CLOSE,120);
A3:=MA(CLOSE,250);
TJ2:=CLOSE>A1 AND A1>A2 AND A2>A3 AND CLOSE>OPEN;
XG:TJ1 AND TJ2;