I've written the simplest of indicators as follows:
protected override void OnBarUpdate()
{
if(insert condition here)
{
PlaySound("Alert1.wav");
}
It worked perfectly yesterday but today it won't work and I'm getting the following error message:
Error on calling 'OnBarUpdate' method for indicator xxx on bar 0: Object reference not set to an instance of an object.
I'm at a loss here as it compiles fine and worked like a charm yesterday.

Comment