I have an indicator I would like to use in a strategy. However, I only seem to be able to access its values when it has been added to a chart, and not when I programmatically create an instance of it. What the indicator does is paint the background of the chart. In my own custom indicator, I can loop through the indicators on a chart to find the 3rd-party indicator and successfully call getBackColor() to detect the background color of the chart. If I create an instance of the same indicator in my code, the background color always returns #00FFFFFF. So a couple of questions -
Is it expected that an indicator that paints the background color of a chart only have value for getBackColor() if it is actually on a chart and not just being newed up programmatically?
It's possible to add an indicator to a chart from a strategy using AddChartIndicator(VOL()). Is it possible then to turn around and find that indicator on the chart and access its properties and methods?
Is there anything special I should do when I create an instance of the 3rd-party indicator such that getBackColor() will return the same values that a "live" instance of the indicator would from a chart?
Thanks,
Gordon

Comment