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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        88 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        135 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        119 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        69 views
        0 likes
        Last Post PaulMohn  
        Working...
        X