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 lightsun47, Today, 03:51 PM
          0 responses
          2 views
          0 likes
          Last Post lightsun47  
          Started by 00nevest, Today, 02:27 PM
          1 response
          8 views
          0 likes
          Last Post 00nevest  
          Started by futtrader, 04-21-2024, 01:50 AM
          4 responses
          41 views
          0 likes
          Last Post futtrader  
          Started by Option Whisperer, Today, 09:55 AM
          1 response
          12 views
          0 likes
          Last Post bltdavid  
          Started by port119, Today, 02:43 PM
          0 responses
          8 views
          0 likes
          Last Post port119
          by port119
           
          Working...
          X