Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    43 views
    0 likes
    Last Post jeronymite  
    Started by frankthearm, Today, 09:08 AM
    4 responses
    9 views
    0 likes
    Last Post frankthearm  
    Started by yertle, Today, 08:38 AM
    5 responses
    15 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by adeelshahzad, Today, 03:54 AM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by bill2023, Yesterday, 08:51 AM
    6 responses
    27 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X