拉升:=close/ref(close,2)>1.02 and between(ref(close,1),ref(close,2),close);
拉升时间:=barslast(拉升);
拉升价格:=ref(close,拉升时间);
均价:=IF(C>0,SUM(AMOUNT,0)/SUM(vol*100,0),DYNAINFO(3));
选股:cross(close,拉升价格) {二次拉升}
AND between(拉升时间,1,5) {回调时间5分钟内}
and count(c>均价,拉升时间)=拉升时间 {回调期间不破均线}
and v=hhv(v,0) {量创新高}
and c=hhv(c,0) {价创新高};