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 bortz, 11-06-2023, 08:04 AM
        47 responses
        1,610 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        9 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        19 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        6 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        16 views
        0 likes
        Last Post Javierw.ok  
        Working...
        X