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.
private PTGAccumulationDistribution pv; pv = PTGAccumulationDistribution(14);
So i tried again like this.
private PTGAccumulationDistribution pv; pv = new PTGAccumulationDistribution(); Print(pv.Average);
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.

Comment