on my indicator, inside OnStateChange() State.Configure, I have a line of code like that:
Draw.TextFixed(this, "mytext1","Test Message", TextPosition.BottomRight, ChartControl.Properties.ChartText, ChartControl.Properties.LabelFont, Brushes.Transparent, Brushes.Transparent, 0);
and that is working fine.
The problem arise if I try to use that indicator as "Input Series" for another indicator (let's say for SMA...it doesn't make difference).
The second indicator crashes with the following message:
"Indicator 'fxMSTIndicator': Error on calling 'OnStateChange' method: Object reference not set to an instance of an object."
After some troubleshooting I found that the line of code that generate the problem is Draw.TextFixed...but in that line the only referenced object is this; how could "this" be an invalid reference?
Thanks.
Comment