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

Enabling Strategy after Flatten()

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

    Enabling Strategy after Flatten()

    Flatten() disable strategy.
    Is there a script to enable strategy after Flatten()?

    Thank you!

    #2
    Hello johnnybegoode,

    Thanks for your post.

    There are no means to programmatically re-enable a disabled strategy.

    You may want to consider adding logic to use normal exit means to your strategy to prevent it being disabled. For example:

    if (some condition)
    {
    ExitLong(); // exit all long orders
    ExitShort(); // exit all short orders
    }
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      May I suggest to add a choice for flatten() to disable / not disable strategy in future build?

      Thank you!

      Comment


        #4
        Hello johnnybegoode,

        Thanks for your reply.

        I will submit a feature request to provide the option to not disable a strategy when using Flatten(). If a feature request for this already exists you vote will be added to it. Please note that a feature request does not mean the feature will be implemented but it does keep user interest in the feature request in front of program management.

        I will update this thread when I have further information.
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Hello johnnybegoode,

          The feature request has been created as SFT-4528, "NS option to not disable strategy when Flatten() is used".

          Thanks for your interest to improve NinjaTrader. If implemented the feature would be identified in the release notes of the first version it is released in, the release notes for each version can be found in the help guide, a link for your convenience: https://ninjatrader.com/support/help...ease_notes.htm
          Paul H.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by gemify, 11-11-2022, 11:52 AM
          6 responses
          803 views
          2 likes
          Last Post ultls
          by ultls
           
          Started by ScottWalsh, Today, 04:52 PM
          0 responses
          3 views
          0 likes
          Last Post ScottWalsh  
          Started by ScottWalsh, Today, 04:29 PM
          0 responses
          7 views
          0 likes
          Last Post ScottWalsh  
          Started by rtwave, 04-12-2024, 09:30 AM
          2 responses
          22 views
          0 likes
          Last Post rtwave
          by rtwave
           
          Started by tsantospinto, 04-12-2024, 07:04 PM
          5 responses
          70 views
          0 likes
          Last Post tsantospinto  
          Working...
          X