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 Ashkam, 04-29-2024, 09:28 AM
              4 responses
              43 views
              0 likes
              Last Post Ashkam
              by Ashkam
               
              Started by nightstalker, Yesterday, 02:05 PM
              1 response
              29 views
              0 likes
              Last Post NinjaTrader_Eduardo  
              Started by dcriador, Today, 02:09 PM
              0 responses
              5 views
              0 likes
              Last Post dcriador  
              Started by nicthe, Today, 07:38 AM
              4 responses
              21 views
              0 likes
              Last Post bltdavid  
              Started by cmtjoancolmenero, 04-29-2024, 03:40 PM
              30 responses
              98 views
              0 likes
              Last Post cmtjoancolmenero  
              Working...
              X