{升级版双剑霸天地,条件设定更为苛刻,考虑了均线,增加了时间范围(5天内)}
停牌:=DYNAINFO(4)=0;
多头排列:=MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30);
上剑:=REF(C,1)>REF(O,1) AND REF(H,1)/REF(C,1)>1.03 AND REF(O,1)/REF(L,1)<1.01 AND (REF(H,1)-REF(C,1))/(REF(C,1)-REF(O,1))>=1.5;
下剑:=(O/L>1.03) AND (H/C<1.01) AND ((O-L)/(C-O)>=1.5);
SJ:= 上剑 AND 下剑 AND C>O AND V<REF(V,1) AND (NOT 停牌) AND 多头排列;
COUNT(SJ,5);