if BuySetup then begin
Buy next bar at LongEntryPrice stop;
Sell ("L_StopLoss") next bar at LongEntryPrice - StopLoss/bigpointvalue stop;
end;
if SellSetup then begin
SellShort next bar at ShortEntryPrice stop;
buytocover ("S_StopLoss") next bar at ShortEntryPrice + StopLoss/bigpointvalue stop;
end;