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.
    BrettNinjaTrader Product Management

    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.
        BrettNinjaTrader Product Management

        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.
            BrettNinjaTrader Product Management

            Comment


              #7
              Thank you.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              108 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              55 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              37 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              39 views
              0 likes
              Last Post TheRealMorford  
              Started by Mindset, 02-28-2026, 06:16 AM
              0 responses
              76 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X