Announcement

Collapse
No announcement yet.

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
    }

    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.

        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

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Today, 05:17 AM
          0 responses
          51 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          129 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          69 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          42 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          46 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X