以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  条件成交买多后再挂单  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=80429)

--  作者:jinzhe
--  发布时间:2015/7/6 8:51:17
--  

if cross(ma5,ma10) then begin

    buy(holding=0,1,market);

end

 

if c<enterprice-5 then buy(holding=1,1,market);

 

撤单系统在交易设置---程式化交易 里面设置

使用固定轮询模式,轮询间隔设置为1秒