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

wizard generated variable not working

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

    wizard generated variable not working

    I'm having issues with the wizard generated variables - namely they don't seem to work when I update them (the value reverts to the default no matter what I do).

    If I change the parameter from the control center screen it does appear to save at first, but as soon as I enable the strategy it reverts to the default value.

    I first created the strategy using the wizard and then unlocked the code....not sure if that's an issue but thought I'd mention it just in case.

    I have a license but I had the same issue when I was using a sim account. I only have one paramater/wizard generated variable and it is just an integer that I use in a simple calculation in the script. I am definitely using a valid value and I set the default (and minimum) to 1 when I first created the variable.

    Any help/advice would be much appreciated.

    #2
    Hello newuser,

    Thanks for your post.

    I'm not sure what you mean by control center screen, please post a screenshot of where you are changing the variable prior to enabling the strategy.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the prompt reply. I am referring to the strategies tab which appears in the control center.

      I have created a variable (called account in the screenshot) and I can change the value, but as soon as I enable the strategy it defaults back to the value of 1. I have tested the strategy and confirmed that it is indeed using the number 1 in the calculation, rather than the number that I enter.
      Attached Files

      Comment


        #4
        Hello newuser,

        Thanks for your reply.

        Please post your strategy source code file for review.

        Alternatively, if you prefer, please feel free to write into PlatformSupport[at] NinjaTrader and attach your source code file to your e-mail. Mark the e-mail atten:Paul and include a link to this thread.

        The strategy source code file can be found in Documents>NinjaTrader7>bin>Custom>Strategy> and will have a .CS extension.
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by sidlercom80, 10-28-2023, 08:49 AM
        168 responses
        2,261 views
        0 likes
        Last Post sidlercom80  
        Started by Barry Milan, Yesterday, 10:35 PM
        3 responses
        10 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by WeyldFalcon, 12-10-2020, 06:48 PM
        14 responses
        1,428 views
        0 likes
        Last Post Handclap0241  
        Started by DJ888, 04-16-2024, 06:09 PM
        2 responses
        9 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        41 views
        0 likes
        Last Post jeronymite  
        Working...
        X