OPEN-SOURCE SCRIPT
stelaraX - MACD

stelaraX – MACD
stelaraX – MACD is a classic momentum and trend-following indicator based on the relationship between two exponential moving averages. It is designed to visualize trend direction, momentum strength, and potential reversal points in a clear and uncluttered way.
This indicator is part of the stelaraX ecosystem, focused on clean technical analysis and AI-supported chart evaluation.
stelarax.com
Core logic
The MACD is calculated using three user-defined parameters:
* fast moving average period
* slow moving average period
* signal line smoothing period
The indicator consists of:
* the MACD line, calculated as the difference between the fast and slow EMA
* the signal line, which is an EMA of the MACD line
* the histogram, representing the difference between MACD and signal line
Momentum increases when the histogram expands and decreases when it contracts. Crossovers between the MACD line and the signal line highlight potential trend shifts.
Visualization
The script plots:
* the MACD line
* the signal line
* a color-coded histogram
Histogram bars adapt their color dynamically:
* green tones for positive momentum
* red tones for negative momentum
* brighter colors when momentum is increasing
* softer colors when momentum is weakening
A zero baseline is plotted to clearly separate bullish and bearish momentum phases.
Use case
This indicator is intended for:
* momentum and trend analysis
* identifying trend continuation and exhaustion
* confirming price action and breakout signals
* divergence observation between price and momentum
For traders looking to combine classical indicators with modern AI-driven chart analysis, additional tools are available at stelarax.com
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
stelaraX – MACD is a classic momentum and trend-following indicator based on the relationship between two exponential moving averages. It is designed to visualize trend direction, momentum strength, and potential reversal points in a clear and uncluttered way.
This indicator is part of the stelaraX ecosystem, focused on clean technical analysis and AI-supported chart evaluation.
stelarax.com
Core logic
The MACD is calculated using three user-defined parameters:
* fast moving average period
* slow moving average period
* signal line smoothing period
The indicator consists of:
* the MACD line, calculated as the difference between the fast and slow EMA
* the signal line, which is an EMA of the MACD line
* the histogram, representing the difference between MACD and signal line
Momentum increases when the histogram expands and decreases when it contracts. Crossovers between the MACD line and the signal line highlight potential trend shifts.
Visualization
The script plots:
* the MACD line
* the signal line
* a color-coded histogram
Histogram bars adapt their color dynamically:
* green tones for positive momentum
* red tones for negative momentum
* brighter colors when momentum is increasing
* softer colors when momentum is weakening
A zero baseline is plotted to clearly separate bullish and bearish momentum phases.
Use case
This indicator is intended for:
* momentum and trend analysis
* identifying trend continuation and exhaustion
* confirming price action and breakout signals
* divergence observation between price and momentum
For traders looking to combine classical indicators with modern AI-driven chart analysis, additional tools are available at stelarax.com
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.