条件:在分时图上,从9:35分开始算起股价在盘中的高点与盘中的低点之间的横盘振荡幅度在2.5%以内(可以是跳空高开或低开之后的9:35开始算起),横盘振荡时间大于30分钟,之后股价放量突破横盘振荡30分钟区间内的高点,出信号
爱约股解答:
{分时横盘突破}
A1:=BARSLAST(TIME<=93500);
A2:=ALL(HHV(H,A1+1)/LLV(L,A1+1)<=1.025,30) AND A1>=30;
A3:=CROSS(C,REF(HHV(H,A1+1),1)) AND MA(V,5)>MA(V,13) AND V>=HHV(V,A1+1);
MZD:=HHV(C,A1+1)/DYNAINFO(3);
A2 AND A3 AND REF(MZD,1)<=1.05;
{分时横盘突破-假如预警最好用这个,上面的可能会漏报}
A1:=BARSLAST(TIME<=93500);
A2:=ALL(HHV(H,A1+1)/LLV(L,A1+1)<=1.025,30) AND A1>=30;
A3:=CROSS(C,REF(HHV(H,A1+1),1)) AND MA(V,5)>MA(V,13) AND V>=HHV(V,A1+1);
MZD:=HHV(C,A1+1)/DYNAINFO(3);
ANY(A2 AND A3 AND REF(MZD,1)<=1.05,2);