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 AttiM, 02-14-2024, 05:20 PM
        12 responses
        212 views
        0 likes
        Last Post DrakeiJosh  
        Started by cre8able, 02-11-2023, 05:43 PM
        3 responses
        236 views
        0 likes
        Last Post rhubear
        by rhubear
         
        Started by frslvr, 04-11-2024, 07:26 AM
        8 responses
        114 views
        1 like
        Last Post NinjaTrader_BrandonH  
        Started by stafe, 04-15-2024, 08:34 PM
        10 responses
        47 views
        0 likes
        Last Post stafe
        by stafe
         
        Started by rocketman7, Today, 09:41 AM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X