It appears that they are available to an indicator in OnStateChange=Historical when the indicator
is loaded by itself on a chart.
However, when that same indicator is loaded from a strategy, ChartControl and ChartBars are null.
I think this is a bug (unless you have changed the rules for NT 8 on how/when they can be accessed).
Please explain(document) the rules on when these objects can be safely and consistently accessed.
To demonstrate this issue:
Put the attached indicator(GTestChartControlAccess) on a chart with output window open.
You will see one set of answers.
Remove the indicator.
Load the strategy(GTestStrategyUsingIndicator) on the same chart (which calls AddChartIndicator on the indicator)
and you will see different output.
Thanks,
Gary
Comment