This may not be NT issue, but I am just asking if anyone has seen this error before.
Thanks!
Error on calling 'OnBarUpdate' method for indicator 'Myindicator' on bar 55: Object reference not set to an instance of an object.
Code snippet:
#region Variables
// Wizard generated variables
....
private Queue deltaVol;
....
protected override void Initialize()
{
Queue<double> deltaVol = new Queue<double>();
}
And, the error is when the code is at this line:
deltaVol.Enqueue( (double) Math.Abs(VolSell - VolBuy) );

Comment