Rss & SiteMap

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

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

标题:统计次数

1楼
定盘星 发表于:2015/1/7 11:29:34
统计日内连赢和连亏次数怎么写,MAXSEQLOSS是当前数据以来的,我想统计当天的,谢谢
2楼
jinzhe 发表于:2015/1/7 11:32:54

variable:n=0,m=0;

if 平空条件 and holding<0 then begin

   sellshort......;

   if numprofit(1)>0 and numprofit(2)>0 then n:=n+1;

   if numprofit(1)<0 and numprofit(2)<0 then m:=m+1;

end

 

if 平多条件 and holding>0 then begin

   sell......;

   if numprofit(1)>0 and numprofit(2)>0 then n:=n+1;

   if numprofit(1)<0 and numprofit(2)<0 then m:=m+1;

end

 

if closetime(0)=time then begin

    n:=0;

    m:=0;

end

 

n是连赢次数,m是连亏次数

3楼
定盘星 发表于:2015/5/15 7:33:43
再请教一下:如何把n、m输出到屏幕?
4楼
jinzhe 发表于:2015/5/15 8:55:39

nn:n,linethick0;

mm:m,linethick0;

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


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