if holding<0 then begin
price:=0;
if exitshortcond1 then
price:=max(open,exitupperband);
if high>=enterprice+2*atr and enterbars>=1 then
price:=max(open,enterprice+2*atr);
if price>0 then
sellshort(1,holding,limitr,price);
if xxxxxxxxxxx then playsound(1,'D:\Tools\Weisoft Stock32\Order5.wav');
end
请问版主哪个是平仓条件好让playsound工作!!!
你的条件是price>0 and xxxx,这两个条件要同时成立