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 ageeholdings, 05-01-2024, 05:22 AM
              6 responses
              42 views
              0 likes
              Last Post ageeholdings  
              Started by tony_28217, Today, 07:04 PM
              0 responses
              11 views
              0 likes
              Last Post tony_28217  
              Started by flybuzz, Today, 10:33 AM
              1 response
              9 views
              0 likes
              Last Post flybuzz
              by flybuzz
               
              Started by spencerp92, 10-10-2023, 09:56 AM
              4 responses
              308 views
              0 likes
              Last Post flybuzz
              by flybuzz
               
              Started by samish18, Yesterday, 10:13 AM
              1 response
              26 views
              0 likes
              Last Post NinjaTrader_Eduardo  
              Working...
              X