Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

3rd Party Indicator Error in Strategy

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

    3rd Party Indicator Error in Strategy

    I'm trying to incorporate a 3rd party indicator into my strategy. However, it throws the following error: Indicator 'TDU Price Action Indicator': Error on calling 'OnStateChange' method: Object reference not set to an instance of an object."

    Here's where it's blowing up in the strategy. Any thoughts as to why?

    else if (State == State.DataLoaded)
    {
    TDUPriceAction1 = TDUPriceAction(Close, @"09:30", @"16:15");
    }

    #2
    Hello shildebrand324,

    Thank you for your post.

    Our ability to troubleshoot issues with incorporating third party indicators into NinjaScript strategies is fairly limited; since this is from a 3rd party vendor we wouldn't have access to their code or the indicator itself for testing.

    I would recommend reaching out to the vendor you've obtained the indicator from, as they would be best able to let you know if the indicator is possible to reference from NinjaScript and if so, how you'd need to set that up. I'm guessing there's likely something faulty in your inputs for the indicator, but since I am unable to test it, I can't say that for sure. The vendor would be able to give better feedback on that than we would.

    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    46 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X