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 > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 12-20-2008, 04:05 AM   #1
anmir55
Member
 
Join Date: Nov 2008
Posts: 56
Thanks: 4
Thanked 0 times in 0 posts
Default Color for background

Hello, it is possible to change the color for background of the indicator only and not the chart?

Thank you
anmir55 is offline  
Reply With Quote
Old 12-20-2008, 09:46 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

What would you consider the background of an indicator to be?
NinjaTrader_Ray is offline  
Reply With Quote
Old 12-20-2008, 10:57 AM   #3
anmir55
Member
 
Join Date: Nov 2008
Posts: 56
Thanks: 4
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Ray View Post
What would you consider the background of an indicator to be?

[
anmir55 is offline  
Reply With Quote
Old 12-20-2008, 12:14 PM   #4
VTtrader
Senior Member
 
Join Date: Feb 2008
Location: www.integratedtradingtech.com
Posts: 270
Thanks: 1
Thanked 79 times in 64 posts
Default

This link should help you:
http://www.ninjatrader-support.com/H...html?BackColor
VTtrader is offline  
Reply With Quote
Old 12-20-2008, 01:21 PM   #5
anmir55
Member
 
Join Date: Nov 2008
Posts: 56
Thanks: 4
Thanked 0 times in 0 posts
Default

Thank you VTtrader
anmir55 is offline  
Reply With Quote
Old 12-29-2008, 02:37 PM   #6
anmir55
Member
 
Join Date: Nov 2008
Posts: 56
Thanks: 4
Thanked 0 times in 0 posts
Default

I tried to put BackColor = Color.PaleGreen, but I didnt know where and how? in which line...

Could you help me?

Thank you
anmir55 is offline  
Reply With Quote
Old 12-29-2008, 02:42 PM   #7
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

Inside the OnBarUpdate method. Whenever you want to change the color you will call it. It will change the background color for that particular bar you are on.
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
DOM Background Color fredjone Suggestions And Feedback 3 02-26-2009 04:06 AM
background color safetrading Indicator Development 2 12-19-2008 10:41 AM
Background Color BradB Indicator Development 26 11-18-2008 10:57 AM
Reading background color? Burga1 General Programming 9 02-15-2008 10:04 AM
Color of background on chart edgeliner General Programming 1 11-20-2007 04:32 AM


All times are GMT -6. The time now is 11:45 AM.