举例而言:这里只说平多仓,在模型中我有两种平多仓的方式,那么我想统计出这两种方式平仓次数的比例,我该如何实现?
能具体举个简单的例子吗?
variable:a=0,b=0;
if pingduo1 and holding>0 then begin
sell(1,0,market);
a:=a+1;
end
if pingduo2 and holding>0 then begin
sell(1,0,market);
b:=b+1;
end
a 和 b就是对应的平多1和平多2的平仓次数