• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 wolfcuring, Today, 04:08 AM
      0 responses
      4 views
      0 likes
      Last Post wolfcuring  
      Started by cirzonorkecv, Yesterday, 11:52 PM
      0 responses
      7 views
      0 likes
      Last Post cirzonorkecv  
      Started by rickyblah12, Yesterday, 01:01 PM
      1 response
      14 views
      0 likes
      Last Post Erwin Beckers  
      Started by dadarara, Yesterday, 12:18 PM
      0 responses
      9 views
      0 likes
      Last Post dadarara  
      Started by joemiller, Yesterday, 07:33 AM
      2 responses
      13 views
      0 likes
      Last Post joemiller  
      Working...
      X