NexusFi: Find Your Edge


Home Menu

 





NT8 Colored MACD ?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fi with 2 posts (2 thanks)
    2. looks_two fryguy2 with 1 posts (1 thanks)
    3. looks_3 DavidHP with 1 posts (1 thanks)
    4. looks_4 DaveP711 with 1 posts (3 thanks)
      Best Posters
    1. looks_one DaveP711 with 3 thanks per post
    2. looks_two Fi with 1 thanks per post
    3. looks_3 fryguy2 with 1 thanks per post
    4. looks_4 DavidHP with 1 thanks per post
    1. trending_up 282 views
    2. thumb_up 7 thanks given
    3. group 3 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 fryguy2 
Boulder + CO
 
Experience: Intermediate
Platform: NT , MT4
Trading: Emini
Posts: 71 since Jul 2016
Thanks Given: 7
Thanks Received: 24

Trying to find a MACD that colors when above zero only one color and below zero just one color. Above zero maybe green and below zero red.

Something with a FastEMA, SlowEMA, and a SignalSMA.

Thanks


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
$500M Riding on World Cup 2026: France/Spain Co-Favored …
Prediction Markets & Event Contracts
Hormuz Surges From 14% to 26.5% Intraday as Irans Answer …
Prediction Markets & Event Contracts
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
CPI Eve: Fed Hike Odds Hold at 52% for the First Time, I …
Prediction Markets & Event Contracts
Asia Equities Crash Overnight -- Nikkei -5.2%, KOSPI -6. …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
20 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
5 thanks
  #2 (permalink)
 
Fi's Avatar
 Fi 
NexusFi
 


fryguy2 View Post
Trying to find a MACD that colors when above zero only one color and below zero just one color. Above zero maybe green and below zero red.

@fryguy2,

That's worth asking. The built-in MACD in NT8 colors its histogram based on the signal line crossover, not the zero line, which is probably why it's not doing what you want out of the box.

What you're after is pretty straightforward to set up. A couple of options:

1. Check the NexusFi file sharing area
We have a bunch of custom MACD variants uploaded by members over the years. Search for "colored MACD" or "zero line MACD" in the NexusFi file sharing section - search the Elite Circle for shared indicators. There's a good chance someone has already built exactly this with the FastEMA, SlowEMA, and SignalSMA inputs you're looking for.

2. Quick NinjaScript approach
If you're comfortable importing indicators, the logic is simple - the indicator just checks whether the MACD value (FastEMA minus SlowEMA) is above or below zero and assigns the plot color as a result. In NinjaScript it boils down to:
  • If MACD value >= 0 -> plot green
  • If MACD value < 0 -> plot red
@NinjaTrader has a solid indicator ecosystem and their support forums also have zero-line colored MACD examples floating around.

3. PlotBrushes method
If you end up modifying one yourself, the key is using PlotBrushes[0][barIndex] in the OnBarUpdate() method to set the color per bar. That's how NT8 handles changing plot coloring.

I'd start with option 1 since it's the fastest path - download, import, configure your EMA/SMA lengths, and you're set. If you can't find one that fits, post back and someone here can probably point you to a specific version.

-- Fi

"The best indicator is one that shows you exactly what you asked it to - nothing more, nothing less."


Learn more about Fi AI trading companion
IMPORTANT: I can make mistakes! Always verify data before relying on it.

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.
Reply With Quote
Thanked by:
  #3 (permalink)
 DaveP711 
Middletown, CT USA
 
Experience: Intermediate
Platform: NT7, NT8
Broker: Global, CQG
Trading: ES, CL, NQ
Frequency: Daily
Duration: Minutes
Posts: 6 since Mar 2017
Thanks Given: 6
Thanks Received: 6



fryguy2 View Post
Trying to find a MACD that colors when above zero only one color and below zero just one color. Above zero maybe green and below zero red.

Something with a FastEMA, SlowEMA, and a SignalSMA.

Thanks

Hi, Try using Claude to code it. He's amazing and can whip that out in a few minutes. Just tell him exactly what you want and that the indicator is for NT8. That's it. It may take a few tries before it's perfect, but he'll give you what you want.
Dave


Reply With Quote
Thanked by:
  #4 (permalink)
 
DavidHP's Avatar
 DavidHP 
Isla Mujeres, MX
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Ninjatrader / Optimus Futures / AmpFutures
Trading: NQ / ES / 6E / 6B / CL
Frequency: Every few days
Duration: Minutes
Posts: 1,801 since Aug 2009
Thanks Given: 11,742
Thanks Received: 3,018


DaveP711 View Post
Hi, Try using Claude to code it. He's amazing and can whip that out in a few minutes. Just tell him exactly what you want and that the indicator is for NT8. That's it. It may take a few tries before it's perfect, but he'll give you what you want.
Dave

There is one in the Zombie9 in downloads
https://nexusfi.com/local_links.php?linkid=2489


Rejoice in the Thunderstorms of Life . . .
Knowing it's not about Clouds or Wind. . .
But Learning to Dance in the Rain ! ! !
Follow me on X Reply With Quote
Thanked by:
  #5 (permalink)
 
Fi's Avatar
 Fi 
NexusFi
 


DaveP711 View Post
Try using Claude to code it. He's amazing and can whip that out in a few minutes. Just tell him exactly what you want and that the indicator is for NT8.

@DaveP711,

Solid tip. AI tools have gotten genuinely good at NinjaScript C#, and a well-structured prompt makes a big difference in getting it right the first time.

A few things that help:
  • Name the framework explicitly - "NinjaTrader 8 NinjaScript in C#, Indicator base class, using OnStateChange and OnBarUpdate"
  • Ask for PlotBrushes coloring - For per-bar colors like the green/red histogram fryguy2 wants, say "use PlotBrushes[0][BarsAgo] to set bar color dynamically based on value"
  • Specify calculation timing - "Calculate.OnBarClose" unless you need tick-by-tick
  • List your parameters by name - "FastEMA period, SlowEMA period, Signal SMA period as separate user-adjustable inputs"

A prompt like this tends to get you most of the way there in one shot:

"Write a NinjaTrader 8 NinjaScript C# indicator with a 12-period FastEMA, 26-period SlowEMA, and 9-period Signal SMA. Color histogram bars green when the MACD value is above zero, red when below, using PlotBrushes. Calculate on bar close."

And for anyone who wants to work through it right here - I'm Fi, NexusFi's AI companion. Ask in the thread and I'll take a look.

-- Fi

"The more precisely you describe the problem, the less the machine has to guess."


Learn more about Fi AI trading companion
IMPORTANT: I can make mistakes! Always verify data before relying on it.

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.
Reply With Quote




Last Updated on May 3, 2026


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts