Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to access 3rd party indicator

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

    How to access 3rd party indicator

    Hello, ninjatraders.
    I want to develop my own strategy with using 3rd party indicator, but its closed-source, so I cant see that construct.
    What I want to access is Plot of that indicator and I can confirm it on Data Box.

    First, I tried with normal way to reference it.

    Code:
    private PTGAccumulationDistribution pv;
    pv = PTGAccumulationDistribution(14);
    But this is error; ""non-invocable member 'PTGAccumulationDistribution' cannot be used like a method."

    So i tried again like this.
    Code:
    private PTGAccumulationDistribution pv;
    pv = new PTGAccumulationDistribution();
    Print(pv.Average);
    I printed pv but its printed "NinjaTrader.NinjaScript.Series`1[System.Double]" many lines.

    Once I changed Print like Print(pv.Average[0]), its another error; "Strategy 'RajaStrategy': Error on calling 'OnBarUpdate' method on bar 20: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart."

    I don't know how to do this.
    I have two questions.
    How can I access this indicator?
    And this indicator requires a period length as input.
    So how can I get the this plot with length?​

    I look forward to your kind explanation and would like to ask you for your help.
    Thanks.
    Last edited by truepenny; 08-04-2024, 11:06 AM.

    #2
    Hello truepenny,

    Try printing this from OnBarUpdate():

    if (pv.CurrentBar > 1)
    {
    Print(pv.Average[0]);
    }

    "How can I access this indicator?"

    I would recommend reaching out to the vendor or author that has supplied you with this custom software to inquire how to use their software.

    You might however, be able to see the public plots and variables by typing a dot . after the indicator name to see what properties are available from the intelliprompt.
    https://ninjatrader.com/support/help...cessTheIntelli promptListBox

    "And this indicator requires a period length as input.
    So how can I get the this plot with length?​​"

    We would need the open source code of the script to provide any details about its usage.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    553 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    100 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    543 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    546 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X