Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

more user defined variables

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

    more user defined variables

    HI,

    Is there a way to get more than the 10 (Variable0 - Variable9) user defined variables to use in a strategy. I need around 40.

    Thank you.

    #2
    Hello,

    Unfortunately not, This would require unlocking the code and and using NinjaScript at that point since you would be going past the limit of whats possible with the strategy wizard.

    Let me know if I can be of further assistance.

    Comment


      #3
      how do i do it after unlocking the code? is there any way to define an additional 30 or 40 variables?

      Comment


        #4
        Hello,

        This you would need to have some general programming knowledge for.

        int Variable11 = 0;

        Is how you would declare it.

        Also, as a warning if you unlock code you will be unable to switch back to the strategy wizard on this code.

        Let me know if I can be of further assistance.

        Comment


          #5
          I see this in the code:

          #region Variables
          // Wizard generated variables
          private int myInput0 = 1; // Default setting for MyInput0
          // User defined variables (add any user defined variables below)
          #endregion

          Where exactly do I place the: int Variable11 = 0; etc. ?

          Thank you.

          Comment


            #6
            Please see below:
            Originally posted by werido View Post
            I see this in the code:

            #region Variables
            // Wizard generated variables
            private int myInput0 = 1; // Default setting for MyInput0
            private int Variable11 = 0;
            private int Variable12 = 0;
            // User defined variables (add any user defined variables below)
            #endregion

            Where exactly do I place the: int Variable11 = 0; etc. ?

            Thank you.

            Comment


              #7
              Thank you.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by PaulMohn, Today, 03:49 AM
              0 responses
              7 views
              0 likes
              Last Post PaulMohn  
              Started by inanazsocial, Today, 01:15 AM
              1 response
              9 views
              0 likes
              Last Post NinjaTrader_Jason  
              Started by rocketman7, Today, 02:12 AM
              0 responses
              10 views
              0 likes
              Last Post rocketman7  
              Started by dustydbayer, Today, 01:59 AM
              0 responses
              4 views
              0 likes
              Last Post dustydbayer  
              Started by trilliantrader, 04-18-2024, 08:16 AM
              5 responses
              23 views
              0 likes
              Last Post trilliantrader  
              Working...
              X