You have to code your own logic while using a Exit() order just like what you have coded while entering an position using the Enter() methods.
Both SetStopLoss and ExitLongStop() will submit a stop market orders.
Also you cannot use the Set() and the Exit methods simultaneously as the internal order handling rules will reject the orders.
SetStopLoss("Order1", CalculationMode.Ticks, slSize, false);
Yes, Exit codes can be used to exit a trade (either target or stop). Exit codes are more like Entry() codes and you have to enter your own logic unlike Set() orders which are internally handled by NinjaTrader.
What you will use (Set or Exit methods) really depends on how you want to design your strategy.
Please let me know if I can assist you any further.
Comment