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

'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.
    JesseNinjaTrader Customer Service

    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.
          JesseNinjaTrader Customer Service

          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 judysamnt7, 03-13-2023, 09:11 AM
              4 responses
              59 views
              0 likes
              Last Post DynamicTest  
              Started by ScottWalsh, Today, 06:52 PM
              4 responses
              36 views
              0 likes
              Last Post ScottWalsh  
              Started by olisav57, Today, 07:39 PM
              0 responses
              7 views
              0 likes
              Last Post olisav57  
              Started by trilliantrader, Today, 03:01 PM
              2 responses
              22 views
              0 likes
              Last Post helpwanted  
              Started by cre8able, Today, 07:24 PM
              0 responses
              10 views
              0 likes
              Last Post cre8able  
              Working...
              X