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 Hwop38, 05-04-2026, 07:02 PM
|
0 responses
164 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
318 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
246 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
350 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
179 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment