Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exits on Close

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

    Exits on Close

    I'm fairly new to strategy development. One on my strategies is intended to be continuous, 24/7. Yet when I look at the trades on the strategy performance report, I see a number that "Exit on Close". The time seems to be governed by the close time on the chart (and bar length) which I normally have set to 12:00 am to 12:00 am.

    I don't want the trades to exit on close but can't find how to change this.

    #2
    Hello Richard,

    Thank you for your post.

    You can either set this in the code:
    ExitOnClose = false;

    Can also set in the UI when you apply a strategy to a chart or run from the control center.

    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks. The code will fix it. Can this be added through the Strategy Wizard?

      But what is the "UI"?

      Comment


        #4
        Hi Richard,

        UI short for User Interface. When you run a strategy this property is available to adjust.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Well dud... Couldn't find any reference to UI searching help even though the term does show up in some of the text. This is true for a number of other abbreviations, such as those used as headings on the strategy performance reports.

          Thanks.

          Comment


            #6
            Sure thing, Richard.

            This section will explain the abbreviations in the performance reporting.

            http://www.ninjatrader-support.com/H...eInMarket.html
            Ryan M.NinjaTrader Customer Service

            Comment


              #7
              Thanks, that is helpful. But doesn't deal with the column headings and abbreviations used in the strategy performance reports, such as the headings of the Periods tab. Again, it seems to me that every single abbreviation should have a help entry.

              Comment


                #8
                HI Richard,

                You can mouse-over the column heading here and get a little more information. Are there any in particular you want to know about?
                Ryan M.NinjaTrader Customer Service

                Comment


                  #9
                  Thanks for all your help. In all the times I've viewed the report, never saw the info using the mouse. Not mentioned in help. That helps very much.

                  Comment


                    #10
                    Exit on close

                    Where exactly in the UI is this Exit on Close available?

                    Comment


                      #11
                      Originally posted by gunsnmoney View Post
                      Where exactly in the UI is this Exit on Close available?
                      Right before you hit the "OK" button when running a backtest, see attached screenshot.
                      Attached Files

                      Comment


                        #12
                        exit on close

                        So there is no option to change it for all the strategies I am testing?

                        Comment


                          #13
                          You could add this to your strategies Initialize() method to hardcode it in -

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                          0 responses
                          668 views
                          0 likes
                          Last Post Geovanny Suaza  
                          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                          0 responses
                          377 views
                          1 like
                          Last Post Geovanny Suaza  
                          Started by Mindset, 02-09-2026, 11:44 AM
                          0 responses
                          110 views
                          0 likes
                          Last Post Mindset
                          by Mindset
                           
                          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                          0 responses
                          575 views
                          1 like
                          Last Post Geovanny Suaza  
                          Started by RFrosty, 01-28-2026, 06:49 PM
                          0 responses
                          580 views
                          1 like
                          Last Post RFrosty
                          by RFrosty
                           
                          Working...
                          X