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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    133 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    75 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    117 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    113 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    90 views
    0 likes
    Last Post CarlTrading  
    Working...
    X