这样 这个值之后就不会变了吗?
加进去了 没什么变化捏
我这个是有加仓的 我想就取首仓的值 之后加仓就不变了 直到全平出场再归0 重新等下次首仓
这个需要做全局变量
variable:nn=0
if 开仓条件 and holding=0 then begin
buy(1,1,thisclose);
nn:=你计算出的数值;
end
if 平仓条件 and holding>0 then begin
sell(1,0,thisclose);
nn:=0;
end
好 谢谢