variable:n=1;
if 开仓条件 and 持仓判断 then begin
开仓语句;
if numprofit(1)>0 then n:=1;
if numprofit(1)<0 then n:=n*2;
end
是递加不是翻倍?
改这里就行
variable:n=1;
if 开仓条件 and 持仓判断 then begin
开仓语句;
if numprofit(1)>0 then n:=1;
if numprofit(1)<0 then n:=n+1;
end
连亏也是这样写,你想想看这个思路,能理解最好