![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Sep 2011
Posts: 84
Thanks: 42
Thanked 2 times in 2 posts
|
hi - if I need to draw text on a chart and I need the text to be on the far right of the chart and be visible when the chart is scrolled left or right. Can this be done?
Onn |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
|
Hello onnb1,
Yes, it can be done. You can use the DrawTextFixed method to do it. Please refer to our help guide to know more about it http://www.ninjatrader.com/support/h...wtextfixed.htm
Joydeep M.
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Sep 2011
Posts: 84
Thanks: 42
Thanked 2 times in 2 posts
|
thanks but I think I wasn't completely clear. I need the text to be at a certain Y value and control that value. I am plotting lines that are horizontal and I need to label these lines. So I need to have text just above each line and stay there as the chart is scrolled.
hope this makes it more clear, Onn |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
|
Hello onnb1,
Thanks for the clarification. Yes, you can do this by further custom coding using C# methods and unsupported NinjaScript codes (via the Plot override method and methods in unsupported ChartControl class). Unfortunately this is beyond what we can support however you can refer to the CustomPlotSample indicator that comes with NinjaTrader to get an idea of the Plot override.
Joydeep M.
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Joydeep for this post: |
|
|
|
#5 |
|
Member
Join Date: Sep 2011
Posts: 84
Thanks: 42
Thanked 2 times in 2 posts
|
Thanks. The code in the sample helps.
|
|
|
|
|
The following user says thank you to onnb1 for this post: |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Text in plot area | Turtle Trader | Indicator Development | 1 | 01-02-2011 05:13 AM |
| Draw Text+ Value in the chart | Italy | General Programming | 1 | 12-17-2010 07:57 AM |
| Lock text on the right side of chart | symphys | Charting | 13 | 12-08-2010 08:41 AM |
| Any way to draw in the axis area | aslane | Version 7 Beta General Questions & Bug Reports | 1 | 11-10-2009 11:35 PM |
| how to keep drawpoint visible on chart area? | suedeuno | Indicator Development | 4 | 02-17-2009 03:49 AM |