I get object reference not set to instance of object.
I printed every single variable right before and their are no problems with any of them when they print but Draw.Text chokes with this new version.
4/19/2017 10:59:23 AM DrawYTag DrawText Label Tag -ML2401-8
4/19/2017 10:59:23 AM DrawYTag DrawText Label IsAutoScale False
4/19/2017 10:59:23 AM DrawYTag DrawText Label msg 5418.25
HL
4/19/2017 10:59:23 AM DrawYTag DrawText Label x 64
4/19/2017 10:59:23 AM DrawYTag DrawText Label PixelOffset 5417.75
4/19/2017 10:59:23 AM DrawYTag DrawText Label offset -65
4/19/2017 10:59:23 AM DrawYTag DrawText Label ColorSS #FF87CEFA
4/19/2017 10:59:23 AM DrawYTag DrawText Label xFont NinjaTrader.Gui.Tools.SimpleFont
Indicator ' ': Error on calling 'OnBarUpdate' method on bar 1294: Object reference not set to an instance of an object.
Draw.Text(this,tag, IsAutoScale, msg, x, PixelOffset,offset, Brushes.Black, xFont, TextAlignment.Center, Brushes.Blue,ColorSS,100 );
Comment