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 > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 11-13-2007, 08:16 PM   #1
trader2be
Member
 
Join Date: Nov 2007
Posts: 63
Thanks: 0
Thanked 0 times in 0 posts
Default Change background color

I am looking for code samples on how to change the background color of the indicator window, e.g. change to green when RSI < 30, change to red when RSI > 80, leave white otherwise.
trader2be is offline  
Reply With Quote
Old 11-13-2007, 09:13 PM   #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

Please look at these links. http://www.ninjatrader-support.com/H...BackColor.html
http://www.ninjatrader-support.com/H...kColorAll.html

Code:
if (RSI(14, 3)[0] < 30)
    BackColor = Color.Green;
NinjaTrader_Josh 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
Background Color BradB Indicator Development 26 11-18-2008 10:57 AM
Volume Bars color-coded according to Price change Lost Trader Indicator Development 6 10-23-2007 11:15 PM
HMA (Hull Moving Average) color change Mexie Indicator Development 13 10-21-2007 08:58 AM
How . . . do I change color of Ray . . . . barrykish@comcast.net Charting 1 08-01-2007 02:24 PM
Chart Background Color NinjaTrader_Josh General Programming 1 07-15-2007 03:36 PM


All times are GMT -6. The time now is 03:39 AM.