Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Background Color
Collapse
X
-
Background Color
I put together a little indicator that changes the background color (backcolor=) for bars that occur during a specified period of the day, based on parameters. What I would like to do is allow someone to choose their own background color from the Indicators panel, like a normal plotted indicator, but I'm not really doing a plot here. Any suggestions?Tags: None
-
imported post
Take a look at the source code for VolumeProfile indicator.
Pay attention to the following:
Color variables under the Variables section Color properties under the properties section
- You need to include a property that exposes the color variable
- You need to include a property that serializes the color
RayNinjaTrader Customer Service
Comment
-
Some what of a follow up question. I am using BackColorAll and this paints the entire chart. Is there a way of limiting the painting of the background to just the panel that the indicator is running in? If my indicator is running in panel 2, I just want the background area of panel 2 painted. Right now I get panel 1 and 2 painted.
Comment
-
Have you tried the property BackColor ?
See this link - http://www.ninjatrader-support.com/H...BackColor.htmlRayNinjaTrader Customer Service
Comment
-
From what you are saying it seems like I need an indicator that utilizes BackColor on my charts for when I run a strategy for it to paint anything. What I was hoping for was to be able to call the BackColor() from within my strategy without having to go to an indicator. I just wanted to paint the bars where my strategy entered and where it exited to make it stand out more.Josh P.NinjaTrader Customer Service
Comment
-
Hallo, I'm resolving this:
My main chart for manual trading is NQ. I want to change background of this chart in depence of NYSE TICK, e.g. Tick is > 900, I want to change backcolor to green, TICK is < -900, backcolor has to be red. I have read here that it's not possible to create indicator depending on two different instruments. So I tried to create strategy, but it doesn't work. How to join strategy to chart?
Thanks
maitreja
if(BarsInProgress == 1){
if(Close[0] < -900 ){
BackColorAll = Color.Red;
}
else if(Close[0] > 900){
BackColorAll = Color.Green;
}
}
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
602 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
347 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
559 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment