Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit on Close occuring when set to false

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

    Exit on Close occuring when set to false

    Hello, I am currently running some optimization tests on a strategy of mine that is utilizing unmanaged trading. Inside the strategy I have ExitOnClose = false and I have the option inside of Order Handling also set to false. It runs great all the way up until the last trading day of the test, where on that day it exits out on the close. Of course I do not want the system to do this and would prefer to stay long/short in my various stocks at the end of the test and look at my profits for different variable inputs. Is there any way to stop the test from exiting on close on this last trading day? Thanks in advance.

    #2
    Hi Vjsworld,

    Thank you for your post.

    This is a feature with the strategy analyzer, it is designed this way so that it can track the last trade for the performance report.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by vjsworld View Post
      Hello, I am currently running some optimization tests on a strategy of mine that is utilizing unmanaged trading. Inside the strategy I have ExitOnClose = false and I have the option inside of Order Handling also set to false. It runs great all the way up until the last trading day of the test, where on that day it exits out on the close. Of course I do not want the system to do this and would prefer to stay long/short in my various stocks at the end of the test and look at my profits for different variable inputs. Is there any way to stop the test from exiting on close on this last trading day? Thanks in advance.
      It seems to me that the code is doing exactly as programmed. It is not exiting on Close evidently, as you say that it runs through the entire test all the way to the last day. The code is exiting on "End of Test run", and it would seem that NT gave us no real way to leave a test run open. Bummer. I can see how that could be useful.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      110 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      156 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      74 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      125 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      79 views
      0 likes
      Last Post PaulMohn  
      Working...
      X