Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:提前N秒下单

1楼
muxia5568 发表于:2016/8/22 15:10:57
请教金老师;我是普通版软件,模型是5分钟周期走完K线下单模式,我想要实现信号走完前提前几秒下单,我在网上查到有一篇叫‘阿火秘籍’的介绍了一个方式可以实现;请教老师;这个方法是否可以?或者您能否有更好的方法解决,谢谢!

ma5:=ma(c,5);
ma10:=ma(c,10);
input:tq(5,3,60,1);
abb:=(time0-timetot0(dynainfo(207))<=tq) or not(islastbar);

if abb then begin
  if holding>0 and ma5<ma10 then sell(1,1,thisclose);
  if holding<0 and ma5>ma10 then sellshort(1,1,thisclose);
  if holding=0 and ma5>ma10 then buy(1,1,thisclose);
  if holding=0 and ma5<ma10 then buyshort(1,1,thisclose);

end

2楼
jinzhe 发表于:2016/8/22 15:49:41
可以,但是要用固定时间间隔模式下单
共2 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.02734 s, 3 queries.