Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Is there any problem with caches on NinjaScript??

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

    Is there any problem with caches on NinjaScript??

    int[] numeros={0,1};
    int[4,2] matriz= new int[4,2];

    was programming this code and after compiling it throws an error that I cant declare the lenght of an array in a declaration, ok then I change the code to:

    int[] numeros={0,1};
    int[,] matriz= new int[4,2];

    Now the compilation is succesfull so I add another line (yes Im a begginer) and this time I forgot to CAP the first random on the declaration:

    int[] numeros={0,1};
    int[,] matriz= new int[4,2];
    random rnd = new Random();

    But it throws 2 errors, one referring that he cant find "random" (missing cap) and other that was the same as before (and now has been corrected and the code is fine).

    This is fustrating seems to be some issue with the cache, can I correct this anyhow or is it just a bug in the program?

    Of course after I only change the Random first letter to a CAP it compiles correctly:

    int[] numeros={0,1};
    int[,] matriz= new int[4,2];
    Random rnd = new Random();

    #2
    Hello Luis,

    Thank you for your post.

    I have seen the same item many times myself. Closing and re-opening the file in through Tools > Edit NinjaScript > Indicator/Strategy will resolve this matter.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by techgetgame, Today, 11:42 PM
    0 responses
    6 views
    0 likes
    Last Post techgetgame  
    Started by sephichapdson, Today, 11:36 PM
    0 responses
    1 view
    0 likes
    Last Post sephichapdson  
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,612 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
     
    Working...
    X