I need to run a single strategy on it and need access to the 6 in total indicators. I am using a custom strategy that was initially created with the Strategy Builder.
I use the following to get them using an undocumented feature. The indicators are added in a set sequence so I know what index that are at. If I call the following I get a pointer to the Indicator and the following fails with the CrossAbove test.
AxonStochastic = ChartControl.Indicators[0] as AxonStochastic;
CrossAbove(AxonStochastic.A, AxonStochastic.B, 1);
An exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll but was not handled in user code
Additional information: Index was out of range. Must be non-negative and less than the size of the collection.
Comment