The code I am using is:
Code: Select all
if MarketPosition=0 AND EntryFilter=True then BEGIN;
SL = AvgTrueRange(20) * Multiple;
BUY ("LE") 1 Contract next bar at Open;
END;
if MarketPosition<>0 AND SL>0 then setstoploss_pt(SL*PriceScale);
How do I execute the stoploss order at the same time as the entry order?
Thanks.