Rss & SiteMap

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

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

标题:请教老师:如何限定每天只开、平一次

1楼
我心飞翔 发表于:2016/6/21 10:49:50
请教老师:如何限定每天只开、平一次,在策略里加 TOTALDAYTRADE<=1语句好像不起作用。
2楼
jinzhe 发表于:2016/6/21 10:56:44

这个要用全局变量的

variable:bj=0;

 

if 开多条件 and holding=0 and bj=0 then begin

     buy(1,1,marketr);

     bj:=1;

end

 

if holding>0 and  bj=1 and 平多条件 then begin

      sell(1,0,marketr);

end

 

 

if time=closetime(0) then bj:=0;

3楼
我心飞翔 发表于:2016/6/21 10:58:27
这么复杂
共3 条记录, 每页显示 10 条, 页签: [1]


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