it seems to me that in past we already had this discussion but i don't remember where i'm wrong...
Code: Select all
if marketposition = 1 then
Begin
SELL ("L_Target2") MarketPosition_at_Broker_for_The_Strategy shares next bar at LINEATGT limit;
SELL ("L_Stop2") MarketPosition_at_Broker_for_The_Strategy shares next bar at LINEASTOP stop;