OPEN-SOURCE SCRIPT

stelaraX - MACD

67
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.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。