View Full Version : Drawing Text at the right/left of the chart window?
pbastowski
06-03-2007, 01:04 AM
Hi,
I have been searching through the forum but haven't found the answer.
What I want to do is to draw a text label always at the right side of the chart and keep it there even when the window is scrolled. I can use DrawText with CurrentBar but that only draws the text at the end of the chart, which means that when I scroll the chart to the left the label disappears.
How can I keep the label/text "sticky" at the right edge of the chart window?
Thanks,
Paul
NinjaTrader_Dierk
06-03-2007, 02:51 AM
Sorry, this is not supported at this time.
pbastowski
06-03-2007, 03:13 AM
Dierk,
Thanks for the quick reply.
I found the Pivots indicator which uses a custom Plot() function to achieve exactly what I need - this seems to be able to do it. I guess you are saying that you are not allowed/not contracted to support it at this time.
If there is any doco that you have available or if you can point me to a WEB site that has some doco and more examples of custom Plot() functions I would appreciate it.
For now I will adapt what I can from the Pivots indicator.
Paul
NinjaTrader_Dierk
06-03-2007, 04:43 AM
You are correct, e.g. the Pivots do custom painting routines. However, we do not provide support for that at this time. Microsoft surely has online documentation available on the various Draw.. methods, but we do not provide any NT specific documentation related at this time.
NinjaTrader_Josh
06-04-2007, 05:20 PM
pbastowski: I have some developmental indicators that use custom plot routines. When I get back home I can upload it for you to check out. Feel free to rip and modify the code to achieve what you want.
pbastowski
06-05-2007, 05:07 AM
uacvax: Thank you, I appreciate this.
pbastowski: I have some developmental indicators that use custom plot routines. When I get back home I can upload it for you to check out. Feel free to rip and modify the code to achieve what you want.
NinjaTrader_Josh
06-06-2007, 11:51 AM
Here you go. I finally got around to it.
The multiple time frame concept shown in this indicator won't work with NinjaTrader yet, but you get the idea of how to create the table. Just modify the x and y coordinates to wherever you want the table to appear. Enjoy.
pbastowski
06-07-2007, 09:47 PM
Thank you, much appreciated.
Paul