Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
ZOrder on Plots/Lines?
Collapse
X
-
Hello,
Although there is the SetZOrder() helper method available for an entire indicator, there is not a way to set the z-order of individual plots within an indicator via NinjaScript. You should be able to accomplish this by separating the plots you wish to be above the others into a separate indicator, then using SetZOrder() on the two indicators within the same panel.Dave I.NinjaTrader Product Management
-
Originally posted by funk101 View PostMy custom indicator has 4 elements, 3 lines and a histogram. Currently the lines are plotted underneath the histogram, I would like them to be on top of the histogram. How is this achieved?
Comment
-
Originally posted by NinjaTrader_Dave View PostHello,
Although there is the SetZOrder() helper method available for an entire indicator, there is not a way to set the z-order of individual plots within an indicator via NinjaScript. You should be able to accomplish this by separating the plots you wish to be above the others into a separate indicator, then using SetZOrder() on the two indicators within the same panel.Last edited by funk101; 11-04-2015, 01:32 PM.
Comment
-
FYI Edge was right, it was the order with which my plots were at. It works like this:
Values[0] will be below Values[1], etc. So in my case I made the histogram Values[0], [1], [2] and the two lines (which I want on top, and which *used to be* [0] and [1]) are now Values[3] and Values[4]. Now the order is correct.
Comment
-
Originally posted by marci02 View PostI have one indicator which is plotting above or on top of price bars. How do I get it to plot behind price bars? Thanks in advance!
If you are the developer of the indicator, you should be able to use the SetZOrder() method to the desired ZOrder level:
MatthewNinjaTrader Product Management
Comment
-
Thanks Matthew!
Is there a way to setup the ZOrder for Plots in an indicator? For example, the Macd indicator has the Macds, connectors, and bands. How would I get the Macds to plot on top of the connectors and on top of the bands? Is there something else besides the ZOrder to set this up? Thanks!
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by TraderG23, 12-08-2023, 07:56 AM
|
9 responses
382 views
0 likes
|
Last Post
by Gavini
Today, 12:29 AM
|
||
Started by oviejo, Today, 12:28 AM
|
0 responses
1 view
0 likes
|
Last Post
by oviejo
Today, 12:28 AM
|
||
Started by pechtri, 06-22-2023, 02:31 AM
|
10 responses
125 views
0 likes
|
Last Post Today, 12:03 AM | ||
Started by judysamnt7, 03-13-2023, 09:11 AM
|
4 responses
59 views
0 likes
|
Last Post
by DynamicTest
Yesterday, 08:25 PM
|
||
Started by ScottWalsh, Yesterday, 06:52 PM
|
4 responses
36 views
0 likes
|
Last Post
by ScottWalsh
Yesterday, 07:40 PM
|
Comment