I have tried to do this but NT grinds to a halt with the number of Draw.Dot or Draw.Text involved. Somehow NT manages to draw a graphic OHLC bar for each bar very quickly, but I cannot get Draw.Dot or Draw.Text to draw fast enough to not end up with task not responding error.
e.g. I have tried...
const int FontSize = 5; NinjaTrader.Gui.Tools.SimpleFont myFont = new NinjaTrader.Gui.Tools.SimpleFont("Wingdings 3", FontSize) { Size = FontSize, Bold = true }; protected override void OnBarUpdate() { Draw.Text(this, CurrentBar+"Stop",true, ",", Time[0], Close[0], 0, Brushes.Red, myFont, TextAlignment.Center, null, null, 1); ...
I think that this is not something we can do with Ninjascript because the Draw.Text and Daw.Dot is too slow.
Comment