Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Index Outside of the bounds of the array

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

    Index Outside of the bounds of the array

    I have a host/guest Indicator arrangement and I just cannot seem to escape the the Index Outside of the Bounds of the Array error. If I run the guest without the host, it is rock solid. However, when I run the host (which calls the guest) I get these errors:

    Indicator 'Guest': Error on calling 'EventHandlerMarketData' method: Index was outside the bounds of the array.
    Indicator 'Host': Error on calling 'EventHandlerBarsUpdate' method: Object reference not set to an instance of an object


    Interestingly, I am running in Debug with VS and VS does not throw any exception. I feel like this is an issue with my host/guest not being written in a thread safe way but I am not sure. This project is really close to completion after about 6 months of really hard work and I am at the end of my rope trying to debug this. I've got a month and many forum posts wrapped up in trying to debug this. is there anyway someone at NT could just run this for me and tell me what they see?

    #2
    Hello swcooke,

    Thank you for your reply.

    I'd be happy to run it and take a look to see if I can make any debugging suggestions for you. If you'd like to export the scripts, you can send them to platformsupport [at] ninjatrader [dot] com. Please put 2487531 ATTN Kate W. in the subject line. Once I receive it, I will review and see if I can give you some guidance.

    Thanks in advance, I look forward to assisting you further.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    38 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    20 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