K线形态组合战法之隔山打牛(选股、副图,原创通用源码)
今天再发一个原创指标,指标思路主要表现为K线组合形态,指标取名为隔山打牛。指标是对战法的一种个人思路的表达,指标公式为选股指标,原创通用源码。喜欢的就用,不喜欢的请绕道!
{隔山打牛选股指标}
TJ1:=REF(C,6)>REF(C,7) AND REF(C,6)>REF(O,6) AND REF(C,5)<REF(O,5) AND REF(H,5)>REF(O,5) AND REF(L,5)<REF(C,5)
AND REF(O,5)/REF(C,5)<1.02 AND REF(C,4)>REF(O,4);
TJ2:=REF(C,3)>REF(O,3)AND REF(C,3)>REF(C,4);
TJ3:=REF(C,2)>REF(O,2)AND REF(O,2)>MAX(REF(C,5),MAX(REF(C,6),REF(C,4)))
AND REF(O,1)>MAX(REF(C,5),MAX(REF(C,6),REF(C,4)))
AND REF(C,1)<REF(O,1) AND REF(H,1)>REF(O,1) AND REF(L,1)<REF(C,1)
AND REF(O,1)/REF(C,1)<1.02 AND C>O AND O>MAX(REF(C,5),MAX(REF(C,6),REF(C,4)));
TJ4:=NOT(COUNT(REF(C,1)/REF(C,2)>1.099,6)) AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20)
AND C/REF(C,1)>1.01 AND O<REF(O,1);
TJXG:=TJ1 AND TJ2 AND TJ3 AND TJ4;
YJ1:=REF(C,5)>REF(C,6) AND REF(C,5)>REF(O,5) AND REF(C,4)<REF(O,4) AND REF(H,4)>REF(O,4) AND REF(L,4)<REF(C,4)
AND REF(O,4)/REF(C,4)<1.02 AND REF(C,3)>REF(O,3);
YJ3:=REF(C,2)>REF(O,2)AND REF(O,2)>MAX(REF(C,5),MAX(REF(C,4),REF(C,3)))
AND REF(O,1)>MAX(REF(C,5),MAX(REF(C,4),REF(C,3)))
AND REF(C,1)<REF(O,1) AND REF(H,1)>REF(O,1) AND REF(L,1)<REF(C,1)
AND REF(O,1)/REF(C,1)<1.02
AND C>O AND O>MAX(REF(C,5),MAX(REF(C,4),REF(C,3)));
YJ2:=NOT(COUNT(REF(C,1)/REF(C,2)>1.099,5)) AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20)
AND C/REF(C,1)>1.01 AND O<REF(O,1);
YJXG:=YJ1 AND YJ3 AND YJ2;
TYXG:TJXG OR YJXG;