最近21天之内,创历史新高,回调到位选股,考虑量价关系,基于EMA,大智慧版本.
供参考
stt:=barslast(hhv(h,0)=h);
cond1:=stt>=0 and stt<=21;
量多头:=cross(ma(vol,13),ma(vol,64)) or ma(vol,13)>ma(vol,64);
价多头:=cross(ema(c,15),ma(c,55)) or ema(c,15)>ema(c,55);
cond2:=量多头 and 价多头;
cond3:=l<=EMA(c,15) or l<=EMA(c,55);
cond1 and cond2 and cond3;