Rss & SiteMap

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

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

标题:在后台统计当日的交易次数

1楼
srxiaobing 发表于:2016/6/15 10:32:16
在后台里统计模型的当日交易次数 ,如果当日交易次数超过10次就停止运行该模型
2楼
jinzhe 发表于:2016/6/15 10:34:42
交易次数指的是开仓次数,平仓次数,还是开平加一起的次数?
3楼
srxiaobing 发表于:2016/6/15 13:02:04
开仓次数
4楼
jinzhe 发表于:2016/6/15 13:38:06

if extgbdata('cs')<10 and 开多条件 then begin

    tbuy(1,1,mkt);

    extgbdataset('cs',extgbdata('cs')+1);

end

 

if extgbdata('cs')<10 and 开空条件 then begin

    tbuyshort(1,1,mkt);

    extgbdataset('cs',extgbdata('cs')+1);

end

 

if time=closetime(0) then extgbdataset('cs',0);

 

 

使用走完k线下单模式

5楼
srxiaobing 发表于:2016/6/16 9:06:09
如果想用在固定轮询模式的话 需要怎么改动
6楼
jinzhe 发表于:2016/6/16 9:10:22
难以实现了,会反复的迭代
7楼
srxiaobing 发表于:2016/6/16 9:12:32
VARIABLE:cs=0;

if cs<10 and 开多条件 then begin

    tbuy(1,1,mkt);

    cs:=cs+1

end

 

if cs<10 and 开空条件 then begin

    tbuyshort(1,1,mkt);

    cs:=cs+1;

end

 

if time=closetime(0) then cs=0;

请问可以用这样的全局变量吗?

8楼
jinzhe 发表于:2016/6/16 9:27:59

不行,这个是图表的全局变量

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


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