Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Variable color shading of histogram bars
Collapse
X
-
What do you mean by "shading"? Changing the color of the histogram? If so I wrote an indicator that does this called BollingerPrecentB2 and you can find it here as an example:
However if you are using NT7 there is a new PlotColors[][] method that is better to use, and you can find an example of how to use it here by looking for indicator Bollinger_TripleState_v4NT7:
These will help also:
NT7:
NT6.5:
-
Histogram / oscillator shading
Hi Mountainclimber,
Apologies for not being clear enough. By "shading" I mean color shading each bar of a volume histogram, for example from light to dark red or light to dark green depending on the result of a calculation between trades at bid Vs ask.
by using something like:
HistoBarColor = Color.FromArgb(255, colorValue, colorValue)
Where the 'colourValue' is in this example a ratio of traded volume at Bid Vs Ask that determines the color.
'DaveS' used this in the below example to paint the price bars in this way.
The bit I'm stuck with is to get this to work within the Add() method to plot an indicator / ocillator.
Thanks very much for your sugestions, I'll have a good look at them. And yes I'm using NT7
Cheers,
Stevo
Comment
-
Yeah, bert is correct. Post a bit of code that works that you have seen and show us how you are trying adapt it for your purposes. I haven't done something like that, but it sounds interesting.
I found this link, but don't have time to look into it unless you pay me!
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
601 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
559 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment