Rss & SiteMap

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

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

标题:请问老师,如何统计当日,夜盘交易次数和白盘的交易次数呢?

1楼
stardna 发表于:2015/9/16 11:29:07
TOTALDAYTRADE是表示当日交易次数,包含了夜盘和白盘,请问老师该如何实现呢?非常感谢!
2楼
jinzhe 发表于:2015/9/16 13:13:37

variable:n=0,m=0;

if 平空 条件 and holding<0 then begin

   sellshort(1,0,market);

   if time>010000 and time<=063000 then n:=n+1;

   if time>130000 and time<=190000 then m:=m+1;

end

 

if 平多 条件 and holding>0 then begin

   sell(1,0,market);

   if time>010000 and time<=063000 then n:=n+1;

   if time>130000 and time<=190000 then m:=m+1;

end

 

 

if time=closetime(0) then begin

   n:=0;

   m:=0;

end

 

n为夜盘交易次数,m为白天交易次数

3楼
stardna 发表于:2015/9/16 15:17:50
谢谢老师的辛苦指导,我想取的是当日,不知怎么过滤一下呢?
4楼
jinzhe 发表于:2015/9/16 15:23:18
n和m都是当日的值,不会累加其他日期的
共4 条记录, 每页显示 10 条, 页签: [1]


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