编写要求:
股价缩量回调到年线的选股公式.
公式在线网解答:
{参数p取0.98至1.02,默认1.02}
MAYEAR:=MA(C,242);
AA:=CROSS(C,MAYEAR) AND V>REF(V,1) AND MA(V,5)>MA(V,10);
VV:=REF(V,BARSLAST(AA));
MAYEAR2:=MA(C,242)*p{p取0.98至1.02,默认1.02};
CROSS(MAYEAR2,C) AND EVERY(V<VV,BARSLAST(AA)-1)