I am developing a strategy in strategy builder but a I have the following error:
Indicator 'ADXVMAColorBand': Error on calling 'OnStateChange' method: Object reference not set to an instance of an object.
The indicator is displayed in the chart perfectly, only have problems when I create a simple strategy using it.
I attached the code and the indicator.
Thanks,
Comment