以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  后台交易程序能实现提前下单吗?  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=66924)

--  作者:太极熊猫
--  发布时间:2014/7/4 0:46:48
--  后台交易程序能实现提前下单吗?
在后台程序化交易中,能像图表程序化交易一样,实现"走完K线模式下,盘中提前X秒钟发出下单指令,而不是等到K线结束"的功能吗?

该如何实现?

--  作者:jinzhe
--  发布时间:2014/7/4 9:03:24
--  

http://www.weistock.com/bbs/dispbbs.asp?BoardID=10&ID=9439&skin=0

第8个


--  作者:太极熊猫
--  发布时间:2014/7/7 13:03:35
--  

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

请问一下,上面一段程序语句中,为什么要加进粗体并有下划线的条件?能解释一下吗?

--  作者:jinzhe
--  发布时间:2014/7/7 13:12:14
--  

这个是图表的,用来在历史k线上产生信号的,

但是后台就可以不用写


--  作者:太极熊猫
--  发布时间:2014/7/7 13:33:25
--  
谢谢!