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
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.htmlBertrandNinjaTrader Customer Service
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
-
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 helpwanted, Today, 03:06 AM
|
1 response
7 views
0 likes
|
Last Post Today, 03:35 AM | ||
Started by Brevo, Today, 01:45 AM
|
0 responses
7 views
0 likes
|
Last Post
by Brevo
Today, 01:45 AM
|
||
Started by aussugardefender, Today, 01:07 AM
|
0 responses
5 views
0 likes
|
Last Post Today, 01:07 AM | ||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
242 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
9 responses
384 views
1 like
|
Last Post
by Gavini
Today, 12:29 AM
|
Comment