回马枪指标
2020/1/30 19:09:36
公式编写说明:
回马枪源码:DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);TS:=BARSLAST(C/REF(C,1)>1.085);{上一个涨停距今天数}A2:=IF(REF(L,TS)>REF(H,TS+1),REF(C,TS+1),REF(O,TS));{涨停当天最低价}A3:=BETWEEN(TS,2,13); {天数条件}A4:=C>=A2 AND BETWEEN(L/A2,1.035,0.97);{价格条件}A5:=V<REF(V,1) AND V<MA(V,5);{成交量条件}A6:=ABS(C/O-1)*100<5;{K线条件}A7:=LLV(C,TS)>=A2;{单阳不破}A8:=MACD>-1;{MACD条件}A9:=MA(C,5)>=A2 AND C>A2 AND C>=MA(C,5) AND REF(C,1)<=REF(MA(C,5),1)AND LLV(L,TS)<A2*1.045;右侧突破:=REF(A3,1)>0 AND A9;OK:=REF(C,3)/REF(C,4)>1.095 AND REF(C=H,3) AND REF(C<O,1) AND REF(C,1)<REF(C,2) AND REF(C<O,1) AND C/REF(C,1)>1.095 AND C=H;右侧突破 OR OK;
公式源码回答:
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
TS:=BARSLAST(C/REF(C,1)>1.085);{上一个涨停距今天数}
A2:=IF(REF(L,TS)>REF(H,TS+1),REF(C,TS+1),REF(O,TS));{涨停当天最低价}
A3:=BETWEEN(TS,2,13); {天数条件}
A4:=C>=A2 AND BETWEEN(L/A2,1.035,0.97);{价格条件}
A5:=V<REF(V,1) AND V<MA(V,5);{成交量条件}
A6:=ABS(C/O-1)*100<5;{K线条件}
A7:=LLV(C,TS)>=A2;{单阳不破}
A8:=MACD>-1;{MACD条件}
A9:=MA(C,5)>=A2 AND C>A2 AND C>=MA(C,5) AND REF(C,1)<=REF(MA(C,5),1)
AND LLV(L,TS)<A2*1.045;
右侧突破:=REF(A3,1)>0 AND A9;
OK:=(C-REF(C,1))/REF(C,1)>0.095 AND BETWEEN(BARSLAST((REF(C,1)-REF(C,2))/REF(C,2)>0.095),1,4);
右侧突破 OR OK;
投 股票网 www .tou18.cn
股市公式下载推荐