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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
598 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
343 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
557 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
557 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment