编写要求:
涨停回马枪源码: 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=A2;{单阳不破} A8:= MACD>-1;{MACD条件} 左侧低吸: A3 AND A4 AND A5 AND A6 AND A7 AND A8; 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)0 AND A9; 要求:把这个涨停回马枪优化能有信号出来,谢谢!
解答:
?DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:= EMA(DIFF,9);
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!