Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Price panel histogram
Collapse
X
-
you have to override plot method
or simply use something like DrawLine() between plot1[0] and plot2[0]
plot1.Set(EMA(Close, 8));
plot2.Set(EMA(Close, 21));
Color histo = (plot1[0] > plot2[0] ? Color.Green : Color.Red);
int width = 2
DrawLine(CurrentBar.ToString(), 0, plot1[0], 0, plot2[0], histo, DashStyle.Solid, width);
Hope it helps
Last edited by roonius; 01-08-2009, 08:45 PM.
-
Hi eDanny,
You can also take a look at DrawRegion() for your task - http://www.ninjatrader-support.com/H...rawRegion.html
Comment
-
eDanny,
All three available options have already been discussed in this thread. You need to evaluate and pick one or the other. Using plots or using Draw() have their downsides. If you are unhappy with them only thing you can do is just override the Plot() method. That would require advanced C# that we cannot offer support for if you decide to go down that route.Josh P.NinjaTrader Customer Service
Comment
-
I think DrawLine() would be more efficient method but can't confirm at this time.Originally posted by eDanny View PostResource question. Does DrawRegion() use less resources than DrawLine() in the above scenario? They both draw something each bar so does the region drawn each bar act the same as a line, only fatter?RayNinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
25 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
19 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
182 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
335 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
260 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment