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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    307 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    199 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    186 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    275 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    229 views
    0 likes
    Last Post CarlTrading  
    Working...
    X