Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enable/Disable from code

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

    Enable/Disable from code

    is it possible to Enable from code?

    my code does a flatten on condition, which disables strat, and I would like to have it enable on condition

    of course how can it enable it the code is not running...duh?

    this is why I posted a thread re flatten vs closeposition

    #2
    Unfortunately there is no strategy code being processed once the strategy is disabled. As such, there is no reenabling via code.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      Unfortunately there is no strategy code being processed once the strategy is disabled. As such, there is no reenabling via code.
      Have you guys thought about making a kind of Macros manager or just a whole application manager classs that can control other windows of NT?
      For example , it can start strategies , open and fill a new market analizer, etc.
      All done from the code. This will allow us to write a very nice automation stuff.

      Basically, NT can become like a trading OS with utilising scripts as a higher level program control blocks.

      Get bigger , guys

      Comment


        #4
        To put things into right perspective:
        - this is the (non-public) beta phase for NT7
        - our focus is getting existing feature set stable
        - thus, we will reject most if not all feature requests for now
        - suggestions are noted for future considerations though

        Comment


          #5
          Originally posted by NinjaTrader_Dierk View Post
          To put things into right perspective:
          - this is the (non-public) beta phase for NT7
          - our focus is getting existing feature set stable
          - thus, we will reject most if not all feature requests for now
          - suggestions are noted for future considerations though
          Hi Dierk,

          You are right, lets first finish NT 7.
          Surely, it was just a suggestion.
          Sorry for offtopic.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          602 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          347 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          560 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          559 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X