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 cmoran13, 04-16-2026, 01:02 PM
|
0 responses
51 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
31 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|
||
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
165 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
100 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
160 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|

Comment