Rss & SiteMap
金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/
如何取得“当日连盈次数”?
非常感谢
variable:n=0;
nn:=barslast(平仓条件)+1;
if 平仓条件 and 持仓判断 and openprofit>0 and ref(openprofit,nn)>0 then begin
平仓语句;
n:=n+1;
end
if time>=closetime(0) then n:=0;
用全局变量N来计算当日连赢次数,收盘前重置为0