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, 03-31-2026, 09:41 PM
        1 response
        47 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        23 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        33 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        50 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Working...
        X