Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

variables

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

    variables

    Hello,

    is it possible that I can use only 9 variables in my NinjaScript Coding? It seems that variables higher than 9 are not accepted?

    Thanks
    Tony

    #2
    Hi Tony,

    There is not a restriction on number of variables. Can you please post the file for the script you're having trouble with, and the steps you're trying to take to add additional variables.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Ryan,

      there is nothing special in the script As soon as I add eg Variable11 I get an error message when compiling. All works fine when using variables1 ....... 9


      {Variable9 = 0;
      Variable11 = 0;}

      Thanks
      Tony



      Originally posted by NinjaTrader_RyanM View Post
      Hi Tony,

      There is not a restriction on number of variables. Can you please post the file for the script you're having trouble with, and the steps you're trying to take to add additional variables.

      Comment


        #4
        Those are the built in user variables. Yes there are only 10 of those but can make as many of your own variables as you want. Best practice is declare in variables region any variables that you plan on using in your script.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        68 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        41 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        24 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        27 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        54 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X