Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

'Enabled' property

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

    'Enabled' property

    while we develop a strategy and it fires errors, the "ENABLED" checkbox automatically becomes unchecked,and we manually have to enable it everytime, which is quite annoying.

    In NT7, it was available to set "Enabled=true" in strategy initialize code, so, it will fix the problem.

    in NT8 strategies doesn't have that property. Is that property renamed? I am sure that property should exist. Can you tell me?


    Or please, add a feature (checkbox) in strategy inputs window: RE-ENABLE STRATEGY WHILE DEVELOPMENT.
    So, like indicators, just clicking F5 will refresh them on charts, in enabled state.
    Last edited by ttodua; 07-24-2018, 02:49 AM.

    #2
    Hello TazoTodua,

    Thank you for the post.

    This was not a supported or documented property for NT7 so this item was not directly persisted into NT8.

    We do have a feature request tracking the need for this property which I have added you to SFT-392

    Currently, there are no recommended/supported ways to auto enable a script.


    I look forward to being of further assistance.

    Comment


      #3
      Originally posted by NinjaTrader_Jesse View Post
      This was not a supported or documented property for NT7 so this item was not directly persisted into NT8.
      A Disable() method was documented for NT7. See here,


      Is there an NT8 equivalent?

      The help guide for NT8 is not as easily organized as NT7.
      It seems difficult to navigate and I'm not sure where to look
      to find things (probably just me and the normal learning curve,
      after all, NT8 is much bigger product than NT7).

      So, naturally, I use Search function of the NT8 helpguide.

      Searching NT7 helpguide for 'disable' finds this Disable() function as first result.

      In contrast, searching NT8 helpguide for 'disable' finds 10 pages of results, of which Disable() does not appear in the first page top results (too busy to scroll & read every last search result returned, just to confirm Disable() there or not)

      Thus, I don't know -- from a help guide point of view -- does NT8 have Disable() or not?

      Comment


        #4
        Originally posted by NinjaTrader_Jesse View Post
        We do have a feature request tracking the need for this property which I have added you to SFT-392

        Currently, there are no recommended/supported ways to auto enable a script.
        +1 for this feature, please add my vote

        Comment


          #5
          Hello bltdavid,

          Thank you for the reply.

          The Disable method specifically is not included with NT8, it is instead suggested to use the following approaches for disabling a strategy:


          To find what specifically takes place of a documented method, you can look at the code-breaking changes guide here: https://ninjatrader.com/support/help...ng_changes.htm

          The easy way to browse this page is to select "all" from the drop-down, and then Control + F the method or property name.

          Disable was replaced by SetState(State.Terminated).

          You can either completely terminate the script, or use one of the approaches we suggest in the reference samples. The benefit of the reference samples is that the script is not completely disabled which clears the virtual reporting.

          I will add your vote as well.

          I look forward to being of further assistance.

          Comment


            #6
            thanks Jesse.
            I am sure , after checking the "enable" checkbox, there is a property that is being changed. but i dont know that property name.
            Last edited by ttodua; 12-11-2019, 11:14 AM.

            Comment


              #7
              Please move this topic to FEATURES and SUGGESTIONS, and add my vote.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, Today, 05:17 AM
              0 responses
              50 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              126 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