Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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 Graci117, Today, 11:40 PM
|
0 responses
5 views
0 likes
|
Last Post
by Graci117
Today, 11:40 PM
|
||
Started by BIOK.NT, Today, 01:56 PM
|
2 responses
11 views
0 likes
|
Last Post
by BIOK.NT
Today, 11:39 PM
|
||
Started by i2ogu3, Today, 11:31 PM
|
0 responses
4 views
0 likes
|
Last Post
by i2ogu3
Today, 11:31 PM
|
||
Started by RDTrader16, Today, 10:19 PM
|
0 responses
9 views
0 likes
|
Last Post
by RDTrader16
Today, 10:19 PM
|
||
Started by gemify, 03-08-2023, 08:02 AM
|
9 responses
150 views
0 likes
|
Last Post
by culpepper
Today, 10:14 PM
|
Comment