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 NullPointStrategies, Today, 05:17 AM
        0 responses
        52 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        130 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        70 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        44 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        48 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X