When using Draw.TextFixed, is the application purposely removing any added spaces to the string? this doesn’t work. Is there any other way to add spaces at the beginning or end of the string here?
Draw.TextFixed(this, mytag, " " + MyString + " ", TextPosition.BottomRight)
@several Someone may have a much simpler answer than mine, but here are two options if nobody else responds with a simpler answer.
If the NinjaScript framework is stripping the ’ ’ character specifically, you could try one of the many other Unicode whitespace characters instead of the ’ ’ character.
If the NinjaScript framework strips all Unicode whitespace characters, you could still accomplish the same visual effect by adding a Windows Presentation Foundation (WPF) Label control to the NinjaScript indicator’s (or strategy’s) “ChartControl” at the same location of the ChartControl you mentioned (BottomRight), and provide the desired number of device-independent pixels to the Label control’s left and/or right margin or padding. That would be a lot more work however, but it would definitely work on NinjaTrader charts that have a “ChartControl”, i.e. live charts and charts in Market Replay, but not Strategy Analyzer back-test charts.