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-27-2008, 09:43 AM   #1
Mauro60
Member
 
Join Date: Jan 2007
Location: Turin, , Italy
Posts: 51
Thanks: 0
Thanked 0 times in 0 posts
Default Line zero change color

Hi, can someone tell me how can I change the color of the line of zero for example an indicator of RSI?
If RSI > 0 is green else red, I have tried in various ways but I could not.
Thanks
Mauro60 is offline  
Reply With Quote
Old 01-27-2008, 01:11 PM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Please see here: http://www.ninjatrader-support.com/v...ead.php?t=3227
NinjaTrader_Dierk is offline  
Reply With Quote
Old 01-28-2008, 12:14 AM   #3
Mauro60
Member
 
Join Date: Jan 2007
Location: Turin, , Italy
Posts: 51
Thanks: 0
Thanked 0 times in 0 posts
Default

Dierk Thanks for your response, I adopted the technique to change the color DataSeries (RSI), but with the zero line there are successful, how can I make?
Excuse my English but it is a machine translation!
Greetings Mauro
Mauro60 is offline  
Reply With Quote
Old 01-28-2008, 05:34 AM   #4
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Sorry, not sure I follow.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 01-28-2008, 10:49 PM   #5
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

You need at least two dataseries plots per line. One for each color as shown in the reference sample.
NinjaTrader_Josh is offline  
Reply With Quote
Old 01-28-2008, 11:42 PM   #6
Mauro60
Member
 
Join Date: Jan 2007
Location: Turin, , Italy
Posts: 51
Thanks: 0
Thanked 0 times in 0 posts
Default

Thank you very much Josh, I knew, but how do I create 2 Dataseries if the number zero is a variable and not a Dataseries or wrong?
The beauty is that I had done the indicator but then I broke the hard disk and now I can not remember how I had done more!
However, thank you for your interest
Mauro60 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
Dynamically change Color GuyFB General Programming 4 03-16-2008 10:12 PM
Change color on dom when live? ct SuperDOM and other Order Entry Windows 5 01-23-2008 12:07 AM
Color Stochastic/2-line Indicator jeremymgp NinjaScript File Sharing Discussion 11 01-05-2008 12:27 PM
Change background color trader2be Indicator Development 1 11-13-2007 09:13 PM
How . . . do I change color of Ray . . . . barrykish@comcast.net Charting 1 08-01-2007 02:24 PM


All times are GMT -6. The time now is 01:24 AM.