Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

IsExitOnSessionCloseStrategy Question

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

    IsExitOnSessionCloseStrategy Question

    Is the IsExitOnSessionCloseStrategy property setting functional with an unmanaged strategy? It would be easy of course to code that functionality in the strategy. I just didn't want to duplicate something that already exists.

    #2
    Hello caveat_lector,

    Thanks for your post.

    Yes, IsExitOnSessionCloseStrategy could be used for unmanaged strategies. Something you could do when enabling the strategy is to ensure that the 'Exit on session close' box is checked in the Strategy Properties menu.

    See this help guide documentation for more information: https://ninjatrader.com/support/help...tegyProperties

    Let us know if we may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      In State.Terminated, is there a way to detect that termination was caused by IsExitOnSessionCloseStrategy being true at Session Close? (Other than explicitly monitoring session times, of course.)

      Thanks.
      Multi-Dimensional Managed Trading
      jeronymite
      NinjaTrader Ecosystem Vendor - Mizpah Software

      Comment


        #4
        Hello jeronymite,

        Thanks for your note.

        ExitOnSessionClose will not disable the strategy, it will only exit positions before the session close. As stated in the help guide documentation, ExitOnSessionClose determines if the strategy will cancel all strategy-generated orders on all strategy instruments and close all open strategy positions at the close of ANY session for multi-timeframe/multi-instrument strategies.

        See this help guide page for more information about ExitOnSessionClose: https://ninjatrader.com/support/help...sestrategy.htm

        Let us know if we may assist further.
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          Thanks, NinjaTrader_BrandonH .

          The Help is a bit ambiguous. The Property Value description says: "This property returns true if the strategy will exit on close; otherwise, false. Default value is set to true.".

          I suspect that description should read like this: "This property returns true if the strategy will close open Orders when the Session ends; otherwise, false. Default value is set to true."

          Thanks.
          Last edited by jeronymite; 07-08-2021, 05:50 PM.
          Multi-Dimensional Managed Trading
          jeronymite
          NinjaTrader Ecosystem Vendor - Mizpah Software

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by trilliantrader, 04-10-2024, 09:33 PM
          6 responses
          23 views
          0 likes
          Last Post trilliantrader  
          Started by traderqz, Today, 12:06 AM
          5 responses
          8 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by Mongo, Today, 11:05 AM
          2 responses
          7 views
          0 likes
          Last Post Mongo
          by Mongo
           
          Started by guillembm, Today, 11:25 AM
          0 responses
          3 views
          0 likes
          Last Post guillembm  
          Started by Tim-c, Today, 10:58 AM
          1 response
          3 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X