Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

multidimensional arrays

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

    multidimensional arrays

    Hello .
    I have a problem with multidimensional arrays

    I created an indicator with this multidimensional array:
    public double[ , ] Candles1 = new double[2,1000] ;
    and the indicator works fine in all aspects.
    when I tried to include it in an Strategy ( I did it several times before)
    1. Compiles everything well.
    2. when I try to start the strategy in the chart. Ninjatrader, shows the Message attached, saying that "... Multidimensional Arrays are not supported"

    any Suggestion will be appreciated.
    Attached Files

    #2
    Hello juglar,

    Thank you for your post.

    Please try a fresh database. Following the instructions below will allow to create a new database and save your current database.
    • Shutdown NinjaTrader and Go to the Start Menu
    • Select My Documents--> NinjaTrader 7--> DB--> NinjaTrader.SDF.
    • Right click on NinjaTrader.SDF and select "Rename." *Name it "OLDNinjaTrader.SDF."
    • Then restart the software and NinjaTrader will create a fresh database file to use

    If the error continues can you advise if you are passing the multidimensional array as public variable? Also please attach any relevant code to the multidimensional array.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    46 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    14 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X