I'm in the process of converting code from NT7 to NT8. I've read some of the reference guides, but I'm stuck with this problem.
In my NT7 code, I have a bunch of text objects as part of `DrawObjects`. At a particular point in the code, I retrieve the object using `DrawObjects["some_text_tag"]` and update the Y position of the object after converting it into IText i.e,
```
IText text = (IText) drawObject;
text.Y = Low[42]; //some numeric type
```
But unfortunately, this does not seem to be possible in NT8. I don't see any explicit `Y` coordinate objects in the text object in the current NT8 documentation (https://ninjatrader.com/support/helpGuides/nt8/text.htm).
I do understand that IText (https://ninjatrader.com/support/help.../nt7/itext.htm) is not available in NT8, so I'm using just `Text` object here. Do I have any other alternative if I want to change the position of these objects?
Edit:
I seem to have another problem with using Brushes. I used just color in the old `DrawText` method in NT7, but in NT8, as per the documentation, I'm supposed to use a Brush object. I tried to do the following, but get few errors (mentioned below):
```
Draw.Text(this, "text-tag", "BUY", 90, 1000, new SolidBrush(Color.LightGreen));
```
Errors:
> The best overloaded method match for 'NinjaTrader.NinjaScript.DrawingTools.Draw.Text(Ni njaTrader.NinjaScript.NinjaScriptBase, string, string, int, double, System.Windows.Media.Brush)' has some invalid arguments
> Argument 6: cannot convert from 'System.Drawing.SolidBrush' to 'System.Windows.Media.Brush
Any help regarding these issues will be very helpful to me.
Thanks!
Comment