Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

chart close button shut down the strategy

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

    chart close button shut down the strategy

    Hello,

    I use the EnterLongLimit (or EnterShortLimit) to enter.

    I use ExitLongStop and ExitLongLimit to set the stop loss and target in the long enter.

    I can use the ExitLong to close the position.

    But If I use the close button in the chart, the strategy always disable and in the output console I can read

    **NT** Disabling NinjaScript strategy 'MoneyWizardStrategy/346ca6ce75ae4bf0a80b1274f54c6f2e'

    What I have to do? How should I manage the chart buttons in the strategy?

    Best

    #2
    Hi David, that is correct and expected - you cannot work with the Close buttons here as it will disable all strategies running on this instrument/account combination and also close your working orders/positions.

    Comment


      #3
      NinjaTrader_Bertrand,

      I have been using the Ninja Trader replay data to practice actual trades and have made hundreds of trades using this method. I enter trades using the chart (Buy Stop @ price, Sell Stop@ price, etc.) These are not limit orders. Your Close description (see below) indicates identifying and exiting sell limit orders.
      Question: Using Close exits ALL orders, correct?

      When a position or ATM Strategy position is closed, NinjaTrader goes through the following process: (Assume we are long on the S&P E-mini contract at an entry price of 1000.)
      1. Identifies any working sell limit orders
      2. Cancel all other orders
      3. Modifies the price of the identified working sell limit orders below the market so that they get filled instantly
      4. Submit a sell market order if necessary for any left over contracts that are not covered by the identified working sell limit orders

      Comment


        #4
        That's correct Mike. It cancels all other order types for this instrument / account and uses the existing limit orders for getting you out of the current position.

        Comment


          #5
          Thanks Bertrand - but what is throwing me off is you say the Close uses the existing limit orders for getting you out of the current position. The orders I place are not placed as limit orders -
          (Buy Stop @ price, Sell Stop@ price, etc.)

          -these will be closed at market right?

          Comment


            #6
            Correct Mike, in case we could not work with already working limit orders to modify to a marketable execution we would need to use a market order then to flatten.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            650 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            370 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            109 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            574 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            577 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X