以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  MA均线交易,怎样开多的时候就平空,开空的时候就平多  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=88629)

--  作者:风中
--  发布时间:2015/12/19 11:45:42
--  MA均线交易,怎样开多的时候就平空,开空的时候就平多
怎样才能变成这种平多开空
--  作者:风中
--  发布时间:2015/12/19 12:00:08
--  图片
1
--  作者:jinzhe
--  发布时间:2015/12/21 9:05:34
--  

if 开多条件 then begin

   sellshort.....;

   buy......;

end

 

if 开空条件 then begin

  sell.....;

 buyshort.......;

end

 

类似这样的格式

[此贴子已经被作者于2015/12/21 9:05:40编辑过]