Rss & SiteMap
金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/
自己代码里输出下平均持仓周期然后优化的时候可以选择输出这一项,其中持仓周期自己每次平仓时候累加下。
variable:num=0;
if 平多条件 then
num:=num+enterbars;
sell()
end
if 平空条件 then
sellshort()
交易次数:TOTALTRADE;周期:num;平均持仓周期:持仓周期/交易次数;