- ago
I have an indicator that throws a NullReferenceException from Populate() when trying to access the "Bars" property. This occurs when trying to Load Data in the NeuroLab extension. The indicator plots when dropped on a chart.

So, my question is when is the "Bars" property of IndicatorBase set and by whom?
0
615
Solved
1 Replies

Reply

Bookmark

Sort
Glitch8
 ( 12.05% )
- ago
#1
Bars is an undocumented property for IndicatorBase, it's assigned by the charting system and used internally to keep track of the original BarHistory for purposes of generating Companion Indicators.

If you make the first parameter of your Indicator a BarHistory then you can access that BarHistory "source" from within NeuroLab.
0
Best Answer

Reply

Bookmark

Sort