Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Difference between ExitLong() and ExitLongStopMarket()

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Difference between ExitLong() and ExitLongStopMarket()

    Hello support team,
    I am interested if there is any difference between ExitLong() and ExitLongStopMarket(), because as described in your documentation there are no difference between the two.

    Best wishes.

    #2
    ExitLong():
    • Will exit your Long order via market order at the current price. It is used to exit immediately.

    ExitLongStopMarket():
    • Will set a Stop order at the defined price. (When the price touches the Stop Order it will exit your Long position).
    TradeSaber Inc.NinjaTrader Ecosystem Vendor - TradeSaber Inc.

    Comment


      #3
      @TradeSaber​ It sounds like the same.
      I still cannot find a difference.

      Is the difference in the arguments that we are passing to the method? Because ExitLong():​ can be used at the moment when our strategy suffice some conditions. And may be the ExitLongStopMarket():​ can have an argument pointing specific price level?

      Is this the only difference? Because as I read the documentation, it seems these methods are executing the same type of market orders.

      Best wishes

      Comment


        #4
        Pretty much. ExitLong() is when you have conditions met and want to close the position immediately, like if you are using a MA crossover strategy. If the faster MA has crossed below the slower one, you want to exit at that point. ExitLongStopMarket() is when you want to specify a price, like a trailing stop that sets the SL below the low of the previous candle, or just setting up a SL after entry, if I'm understanding that correctly.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        32 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        195 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        356 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        277 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X