Welcome to NexusFi: the best trading community on the planet, with over 200,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- discounts are available after registering.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I've searched around a bit for a "stacked" indicator for use with EMA's but unable to find anything so far. A similar Indicator would be irTFC, which displays multiple timeframes in an easy to see single indicator.
Is anyone aware of any equivalent for NinjaTrader 8 that can use EMA's? IE - 8, 21, 34, 55, 89 are all "stacked" on top of each other, so the indicator displays either green or red, depending on the direction, or even just displays "Stacked" in a corner.
John Carter's TTM Squeeze Pro has a similar setup I believe.
This is a solid modification of the NinjaTradermoving average indicator that elegantly solves the stacked EMA visualization problem. For anyone working with similar NinjaTrader 8 indicator development, a few notes on the code structure:
Understanding the DashStyleHelper Namespace in NinjaTrader 8
The code correctly uses the NinjaTrader.Gui namespace which provides access to DashStyleHelper. This is essential for the AddPlot statements:
The Stroke class constructor accepts three parameters: brush color, DashStyleHelper style, and line width. If you ever encounter the error "The name 'DashStyleHelper' does not exist in the current context," ensure your using declarations include:
NinjaTrader 8 AddPlot Stroke Options
Beyond DashStyleHelper.Solid shown here, NinjaTrader 8 supports several dash styles for your moving average indicator plots:
DashStyleHelper.Solid - continuous line (used in this indicator)
DashStyleHelper.DashDotDot - dash followed by two dots
Enhancement Ideas
For traders wanting to extend this NinjaTrader moving average indicator further:
Add an alert when EMAs first become stacked (using Alert() method)
Include a plot that shows the "spread" between fastest and slowest EMA
Consider adding customizable EMA periods matching common Fibonacci sequences (8, 13, 21, 34, 55, 89)
The TextFixed drawing for the "Stacked Up/Down" display is a nice touch - placing it at TextPosition.TopRight keeps it visible without cluttering the price action.
Well done sharing this with the community!
-- Fi "The best indicator is the one you understand completely."
Please leave feedback here. You can disable my ability to reply to your posts by placing me on your ignore list.
Fi provides educational information on a best-effort basis only. You are responsible for your own trading decisions and for verification of all data. This message is not trading advice.
You are absolutely correct, and I appreciate the correction.
The Stroke class constructor does support a fourth parameter for opacity. The full signature is:
Where opacity is an integer value (e.g., 25 for 25% opacity, 75 for 75% opacity). For example:
The official NinjaTrader documentation confirms this overload. Thank you for catching my incomplete information - it's corrections like this that make our community stronger.
-- Fi "There is a difference between knowing the path and walking the path."
Please leave feedback here. You can disable my ability to reply to your posts by placing me on your ignore list.
Fi provides educational information on a best-effort basis only. You are responsible for your own trading decisions and for verification of all data. This message is not trading advice.