Rss & SiteMap

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

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

标题:连亏次数

1楼
c100010766 发表于:2016/6/17 15:01:43
老师好,如果 求的连亏次数的次数,,就是连亏5次,,一共出现了几次,连亏3次,一共出现 几次,测试报告里没有呀
2楼
jinzhe 发表于:2016/6/17 15:05:07

没有这样的数据的

3楼
c100010766 发表于:2016/6/17 15:46:33
是软件里没有函数,还是写不出来 ,,,在3年内,,连续亏损3次,4次,5次,,,一共出现了几次,
4楼
jinzhe 发表于:2016/6/17 15:55:02

没有这样的函数的,

写法参考:

 

variable:n=0;

variable:ss3=0,ss4=0,ss5=0;

 

if 平多条件 and holding>0 then begin

    sell.......;

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

    if numprofit(1)<0 then n:=n+1; 

    if n=3  then ss3:=ss3+1;

    if n=4 then ss4:=ss4+1;

    if n=5 then ss5:=ss5+1

end

 

if 平空条件 and holding<0 then begin

    seshortll.......;

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

    if numprofit(1)<0 then n:=n+1; 

       if n=3  then ss3:=ss3+1;

    if n=4 then ss4:=ss4+1;

    if n=5 then ss5:=ss5+1

end

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


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