I use DrawText method twice, once for when the session is inactive
DrawText("PRVnum", "PRV off", -3, PRVol, Color.Black);
and once during every BarUpdate (every tick) to recalculate Volume.
DrawText("PRVnum", "PRV = " + PRVol.ToString(), -4, PRVol+200, Color.Black);
This works and does exactly what is needed - prints the message to the right of the bar. Please see attached picture. Note that barsago is ALWAYS negative and rarely is there a log error (3 out of how many tick updates?). I now realize that this is probably an unexpected usage for ya'll; however it works. The intermittent log message seems to be a bug, and hopefully that can be fixed.
It is important to have the text to the right of the bar to avoid interference (readability) and I have always appreciated the fact that the Ninjatrader code is executed without error on most days.
BTW, if DrawTextFixed printed to the indicator pane I might have used it instead originally, but now I rather like that the Text floats with the Volume bar.
Comment