NinjaTrader ZOrder and Advanced Charting



When to use the ZOrder?
Personal Preference
Cluttered Free Charts
Frequently Asked Questions
What is ZOrder in NinjaTrader and how does it work?
ZOrder in NinjaTrader controls the visual layering of drawn objects, indicators, and chart elements, determining which items appear in front of or behind others. A higher ZOrder value brings an object to the front, while a lower value pushes it behind other elements. This is essential for ensuring that important chart annotations and indicators remain visible and are not obscured by other drawings.
How do I change the ZOrder of an indicator in NinjaTrader?
To change the ZOrder of an indicator in NinjaTrader, you can set the ZOrder property programmatically within your indicator's code, typically in the OnStateChange() method or State.SetDefaults block. You can also adjust layering through the chart's visual properties by right-clicking the indicator and modifying its display settings. Assigning a specific integer value to ZOrder determines its position relative to other chart objects.
Why are my NinjaTrader drawings hidden behind price bars?
If your drawings or indicators are hidden behind price bars, it is likely because their ZOrder value is set lower than that of the price panel's bars. To fix this, increase the ZOrder property of your drawn objects or indicators so they render on top of the price bars. Adjusting ZOrder ensures your custom visuals maintain the correct front-to-back layering on the chart.
What is the default NinjaTrader ZOrder value for custom indicators?
NinjaTrader assigns default ZOrder values to various chart elements, and custom indicators typically receive a default that may place them behind or at the same level as price bars. You can override the default by explicitly setting the ZOrder property in your indicator's code to a higher value. Checking NinjaTrader's documentation for the specific default values of different chart components helps in choosing an appropriate ZOrder.
Can I set ZOrder for draw objects in NinjaScript?
Yes, you can set ZOrder for draw objects in NinjaScript by assigning a value to the ZOrder property of the draw object after it is created. This allows you to control whether a specific line, rectangle, region, or text annotation appears in front of or behind other chart elements. Using ZOrder programmatically gives you precise control over the visual stacking of multiple drawn objects on your NinjaTrader charts.
Frequently Asked Questions
What is ZOrder in NinjaTrader and how does it work?
ZOrder in NinjaTrader controls the visual layering of drawn objects, indicators, and chart elements, determining which items appear in front of or behind others. A higher ZOrder value brings an object to the front, while a lower value pushes it behind other elements. This is essential for ensuring that important chart annotations and indicators remain visible and are not obscured by other drawings.
How do I change the ZOrder of an indicator in NinjaTrader?
To change the ZOrder of an indicator in NinjaTrader, you can set the ZOrder property programmatically within your indicator's code, typically in the OnStateChange() method or State.SetDefaults block. You can also adjust layering through the chart's visual properties by right-clicking the indicator and modifying its display settings. Assigning a specific integer value to ZOrder determines its position relative to other chart objects.
Why are my NinjaTrader drawings hidden behind price bars?
If your drawings or indicators are hidden behind price bars, it is likely because their ZOrder value is set lower than that of the price panel's bars. To fix this, increase the ZOrder property of your drawn objects or indicators so they render on top of the price bars. Adjusting ZOrder ensures your custom visuals maintain the correct front-to-back layering on the chart.
What is the default NinjaTrader ZOrder value for custom indicators?
NinjaTrader assigns default ZOrder values to various chart elements, and custom indicators typically receive a default that may place them behind or at the same level as price bars. You can override the default by explicitly setting the ZOrder property in your indicator's code to a higher value. Checking NinjaTrader's documentation for the specific default values of different chart components helps in choosing an appropriate ZOrder.
Can I set ZOrder for draw objects in NinjaScript?
Yes, you can set ZOrder for draw objects in NinjaScript by assigning a value to the ZOrder property of the draw object after it is created. This allows you to control whether a specific line, rectangle, region, or text annotation appears in front of or behind other chart elements. Using ZOrder programmatically gives you precise control over the visual stacking of multiple drawn objects on your NinjaTrader charts.

NinjaTrader 8 Position Size Calculator: On-Chart Setup

Trade NQ, Copy MNQ: Copy NQ Trades to MNQ in NinjaTrader 8

NinjaTrader Data Feed Not Updating? Quick Fixes

NinjaTrader Risk Per Trade: Risk $500 on Every Trade

NinjaTrader 8.1.8 Review: Should You Upgrade or Wait?

XABCD Pattern Alerts: The Complete Guide for Traders

Risk vs Reward Tool: The 2-Click Upgrade That Ends Guessing

NinjaTrader Faster Last Price Updates on Charts Explained

NinjaTrader 8 Hotkeys: Best Shortcuts for Faster Trading







