if todaybar=1 and currenttime<=090005 then extgbdataset('asset',tasset);
当日盈亏:tasset-extgbdata('asset');
注意这个公式一定要在开盘前启动
如果是股指,090005改成091505
GLOBALVARIABLE:n=0;
if 平仓条件 and 持仓判断 and topenprofit<0 then begin
平仓语句;
n:=n+1;
end
胜率:n/ttotaldaytrade;
注意不要随意开关后台交易,用超全局变量,随意开关会重置全局变量