![]() |
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
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Feb 2010
Posts: 19
Thanks: 7
Thanked 1 time in 1 post
|
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.
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
|
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);
Joydeep M.
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Joydeep for this post: |
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2010
Posts: 19
Thanks: 7
Thanked 1 time in 1 post
|
Thanks. That worked perfectly!
|
|
|
|
|
The following user says thank you to jhowinvest for this post: |
|
![]() |
| Tags |
| fixed text |
| Thread Tools | |
| Display Modes | |
|
|
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 |