NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 08-20-2012, 12:11 PM   #1
onnb1
Member
 
Join Date: Sep 2011
Posts: 84
Thanks: 42
Thanked 2 times in 2 posts
Default draw text on right side of visible chart area

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
onnb1 is offline  
Reply With Quote
Old 08-20-2012, 12:18 PM   #2
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

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
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 08-20-2012, 12:27 PM   #3
onnb1
Member
 
Join Date: Sep 2011
Posts: 84
Thanks: 42
Thanked 2 times in 2 posts
Default

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
onnb1 is offline  
Reply With Quote
Old 08-20-2012, 12:40 PM   #4
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

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.
NinjaTrader_Joydeep is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Joydeep for this post:
Old 08-20-2012, 12:54 PM   #5
onnb1
Member
 
Join Date: Sep 2011
Posts: 84
Thanks: 42
Thanked 2 times in 2 posts
Default

Thanks. The code in the sample helps.
onnb1 is offline  
Reply With Quote
The following user says thank you to onnb1 for this post:
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 04:12 PM.