NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 07-06-2012, 08:54 AM   #1
jhowinvest
Junior Member
 
Join Date: Feb 2010
Posts: 19
Thanks: 7
Thanked 1 time in 1 post
Default Two Lines of Fixed Text

I am trying to add multiple lines of text to one of the fixed text positions...for example in the upper right of the chart. I have two conditions I am tracking and would like both of them to be displayed in the upper right of the chart. I am currently having to have one of the conditions displayed as fixed text in the upper left and one in the upper right. Just curious if anyone can let me know if this is possible. This would be helpful to know because other indicators like the bar timer are already in the bottom right location so it would be nice to be able to have multiple conditions/indicators be able to be displayed in the same area as fixed text. Any advice would be appreciated.
jhowinvest is offline  
Reply With Quote
Old 07-06-2012, 09:00 AM   #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 jhowinvest,
You can use the new line command to add multiple lines to the DrawTextField. Please refer to the below code to do it.

Code:
this.DrawTextFixed("txt", "Hello\nWorld", TextPosition.TopRight);
Please let me know if I can assist you any further.
NinjaTrader_Joydeep is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Joydeep for this post:
Old 07-06-2012, 09:05 AM   #3
jhowinvest
Junior Member
 
Join Date: Feb 2010
Posts: 19
Thanks: 7
Thanked 1 time in 1 post
Default

Thanks. That worked perfectly!
jhowinvest is offline  
Reply With Quote
The following user says thank you to jhowinvest for this post:
Reply

Tags
fixed text

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
can I set fixed 4 ticks between horizontal grid lines? leontancfa Charting 2 05-16-2013 12:36 PM
Drawing Fixed Text on an indicator kevinh786 Indicator Development 3 02-06-2011 11:36 PM
affix text to horizontal lines? drago1 General Programming 1 11-26-2008 10:55 AM
Text on horizontal lines? Rocky Mtn Trader Charting 8 08-12-2008 04:47 PM
Drawing Text in fixed positions? mazachan General Programming 3 07-06-2007 03:34 PM


All times are GMT -6. The time now is 06:14 AM.