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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      70 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      42 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      25 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      28 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      54 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X