OPEN-SOURCE SCRIPT
Nova Capital MACD

Nova Capital MACD is a momentum oscillator based on the classic MACD calculation, enhanced with a clean 4-state histogram and optional signal labels.
Core calculation:
MACD Line = Fast MA − Slow MA
Signal Line = MA(MACD Line, Signal Length)
Histogram = MACD Line − Signal Line
Features in this version:
4-state histogram coloring (positive/negative + rising/falling) to visualize momentum changes more clearly.
Optional confirmed-bar behavior (signals trigger only on closed bars).
Optional zero-line directional filter:
Long labels only when MACD is below 0.
Short labels only when MACD is above 0.
Built-in alert conditions for Long/Short events.
How to use:
Watch histogram state changes for momentum transitions.
A Long label appears on MACD crossing above the Signal line (optionally below 0).
A Short label appears on MACD crossing below the Signal line (optionally above 0).
Note: This indicator is not a complete trading system. Use risk management and confirm signals with market context.
Core calculation:
MACD Line = Fast MA − Slow MA
Signal Line = MA(MACD Line, Signal Length)
Histogram = MACD Line − Signal Line
Features in this version:
4-state histogram coloring (positive/negative + rising/falling) to visualize momentum changes more clearly.
Optional confirmed-bar behavior (signals trigger only on closed bars).
Optional zero-line directional filter:
Long labels only when MACD is below 0.
Short labels only when MACD is above 0.
Built-in alert conditions for Long/Short events.
How to use:
Watch histogram state changes for momentum transitions.
A Long label appears on MACD crossing above the Signal line (optionally below 0).
A Short label appears on MACD crossing below the Signal line (optionally above 0).
Note: This indicator is not a complete trading system. Use risk management and confirm signals with market context.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Nova Capital | Pulso Nova. Educación financiera aplicada a mercados digitales.
Financial education applied to digital markets.
Financial education applied to digital markets.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Nova Capital | Pulso Nova. Educación financiera aplicada a mercados digitales.
Financial education applied to digital markets.
Financial education applied to digital markets.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.