Rss & SiteMap

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

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

标题:买卖指令是一定要按照这个吗?

1楼
qq代人发帖 发表于:2014/1/2 17:11:28
请教:买卖指令是一定要按照
平空
开多
平多
开空
来写的吗,怎么在系统公式  顾比倒数线策略

里面有
if holding=0 then begin
 if tmp<=0 then
  buy(1,1,limitr,close);
end
if holding=0 then begin
 if tmp>0 then
  buyshort(1,1,limitr,close);  
end
if holding>0 then begin
 if tmp>0 then begin
  sell(1,holding,limitr,close);
  buyshort(1,1,limitr,close);
 end
end
if holding<0 then begin
 if tmp<=0 then begin
  sellshort(1,holding,limitr,close);
  buy(1,1,limitr,close);
 end
end
这个顺序和你们要求的不一样啊
2楼
jinzhe 发表于:2014/1/2 17:19:44

如果不加if之类的,那么一定要按照上面的顺序写

如果加了,可以不用按照顺序写

共2 条记录, 每页显示 10 条, 页签: [1]


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