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 01-13-2009, 06:44 AM   #1
mrlogik
Certified NinjaScript Consultant
 
mrlogik's Avatar
 
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
Default DrawText Carriage Return ?

Hey Guys,

I want to display some text on the chart in a few lines.

For example, suppose at the top right of the chart I want to say in this format:

"1. Good Spread"
"2. Good Resistance Distance"
"3. Etc...."

Basically, I want to print lines of text below one another in a list format. I tried using the C# Carriage Return code to simple make a new line, but that didn't work.

Any way to do it otherwise?

Thanks
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"

PureLogikTrading
mrlogik is offline  
Reply With Quote
Old 01-13-2009, 07:16 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

You can use the NT DrawText() or DrawTextFixed() and then in the string you can just add \n for a new line.
NinjaTrader_Josh is offline  
Reply With Quote
Old 01-13-2009, 11:42 AM   #3
mrlogik
Certified NinjaScript Consultant
 
mrlogik's Avatar
 
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
Default

Thanks Josh
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"

PureLogikTrading
mrlogik is offline  
Reply With Quote
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
Return value is zero billitin Indicator Development 3 10-14-2008 05:15 PM
Return code from Indicatore Owlman Indicator Development 2 10-13-2008 01:21 AM
Cannot add return of SMA() RandyT Indicator Development 1 09-25-2008 06:10 AM
Standard Return Code for Functions arbifox Automated Trading 1 12-13-2007 08:21 PM
Return values for NTOrderStatus() ccooper Automated Trading 2 11-11-2006 11:47 AM


All times are GMT -6. The time now is 11:42 PM.