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 burtoninlondon, Today, 12:38 AM
        0 responses
        5 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        12 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Yesterday, 07:51 PM
        0 responses
        13 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,982 views
        3 likes
        Last Post jhudas88  
        Working...
        X