Looking for text box that stays on a chart in same position

I got here years ago and indicator that

A. Started in the same spot as price moves

B. Allowed you to add up to 4 different lines

C. You could color it and adjust colors

D. Nina traders text box it not the same thing

Thanks

If your just looking to draw and display code generated text,
Using SharpDX drawing in OnRender is probably the easiest way:

If your possibly looking for a textbox, you can interact with,
This gets a bit more complex, by placing textbox in UserControl:

Please Be Safe in this Crazy World!
:smiling_face_with_sunglasses:

1 Like

I think he means this:

2 Likes

Yes, that would also work, although you’re limited to the 4 corners and the middle when using Draw.TextFixed.

When using OnRender or TextBox from the links above, you can place the text by pixels wherever you want.

If you need multiple lines in your text from either example, just put \n in the string for a new line:

string s4Line = "This is first line.\nThis is second line.\nThis is 3rd line.\nAnd this is 4th line.";

Please Be Safe in this Crazy World!
:smiling_face_with_sunglasses:

1 Like