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.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.