NinjaTrader Support Forum  

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

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 06-23-2012, 06:55 AM   #1
stocktraderbmp
Senior Member
 
Join Date: Jun 2011
Location: Ireland
Posts: 184
Thanks: 32
Thanked 20 times in 19 posts
Default [Description("..... new line")]

Hi all;
I want to put a new line in the 'Description' of an indicator. Can this be done?
If so - How?

Thanks;

Ben.
stocktraderbmp is offline  
Reply With Quote
Old 06-23-2012, 11:11 AM   #2
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,199
Thanks: 24
Thanked 1,225 times in 996 posts
Send a message via Skype™ to koganam
Default

Quote:
Originally Posted by stocktraderbmp View Post
Hi all;
I want to put a new line in the 'Description' of an indicator. Can this be done?
If so - How?

Thanks;

Ben.
Use \n. If you are a real purist, you can use \r\n instead.
koganam is offline  
Reply With Quote
Old 06-23-2012, 12:47 PM   #3
stocktraderbmp
Senior Member
 
Join Date: Jun 2011
Location: Ireland
Posts: 184
Thanks: 32
Thanked 20 times in 19 posts
Default

Quote:
Originally Posted by koganam View Post
Use \n. If you are a real purist, you can use \r\n instead.
Thanks for coming back to me K. I was aware of the '\n' for use when using DrawText etc however I can't get it to work for the description of an indicator.

Maybe if I clarify a bit - If I use the traditional - [Description("The RSI is a blah blah blah")] ... I end up with one line of text that runs to a ridiculous length across the screen.
How do I go
[Description("The RSI is a
blah blah blah")]

Thanks again;

Ben.
stocktraderbmp is offline  
Reply With Quote
Old 06-23-2012, 02:48 PM   #4
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,199
Thanks: 24
Thanked 1,225 times in 996 posts
Send a message via Skype™ to koganam
Default

Quote:
Originally Posted by stocktraderbmp View Post
Thanks for coming back to me K. I was aware of the '\n' for use when using DrawText etc however I can't get it to work for the description of an indicator.

Maybe if I clarify a bit - If I use the traditional - [Description("The RSI is a blah blah blah")] ... I end up with one line of text that runs to a ridiculous length across the screen.
How do I go
[Description("The RSI is a
blah blah blah")]

Thanks again;

Ben.
Sounds like you have hit another of the curious quirks of NT. You do not really want to do that, unless you do not mind your NT wrappers generation breaking. See this thread, where I explain it. ref: http://www.ninjatrader.com/support/forum/showthread.php?p=216467#poststop
koganam is offline  
Reply With Quote
The following user says thank you to koganam 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
Line inclination changes when I move it even "Snap Mode" set to "Disabled" IkerCB Miscellaneous Support 10 04-07-2011 01:46 PM
Strategy Placing other "Line" on Chart Trader zeller4 Strategy Development 9 09-27-2010 02:58 PM
summary of "strategy realized" is not equal "account performance, total net profit"" Fragolino Miscellaneous Support 1 02-19-2009 04:12 AM
NT Historical Data File - can I have a "comment" line? kgillis23 Strategy Development 1 01-17-2008 01:59 PM
Line "names" in Indicator Box change to "Line" after modification higler Charting 3 05-02-2007 06:05 AM


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