OPEN-SOURCE SCRIPT
Обновлено ARVELOV MACD with Zones

This TradingView Pine Script (version 5) is a custom MACD (Moving Average Convergence Divergence) indicator. It calculates the MACD line by subtracting a slow moving average from a fast moving average, using either an EMA or SMA depending on user settings. A signal line—also selectable as an EMA or SMA—is then derived from the MACD, and the histogram plots the difference between the two. The script visually enhances the traditional MACD by coloring the histogram columns dynamically: shades of green for strengthening bullish momentum and shades of red for weakening or strengthening bearish momentum.
Beyond standard MACD plotting, the script adds multiple horizontal reference lines (from ±0.25 up to ±3) and color-filled zones to highlight momentum regions: an orange box for the neutral range (−1 to +1), a red zone for strong bearish momentum (−3 to −1), and a green zone for strong bullish momentum (+1 to +3). It includes alerts and visual dots for key events—when the MACD crosses its signal line (bullish or bearish crossovers) and when the histogram changes slope (rising to falling or vice versa). Altogether, this enhanced MACD aims to make momentum shifts and overextended conditions easier to identify visually and programmatically for alert-based trading strategies.
Beyond standard MACD plotting, the script adds multiple horizontal reference lines (from ±0.25 up to ±3) and color-filled zones to highlight momentum regions: an orange box for the neutral range (−1 to +1), a red zone for strong bearish momentum (−3 to −1), and a green zone for strong bullish momentum (+1 to +3). It includes alerts and visual dots for key events—when the MACD crosses its signal line (bullish or bearish crossovers) and when the histogram changes slope (rising to falling or vice versa). Altogether, this enhanced MACD aims to make momentum shifts and overextended conditions easier to identify visually and programmatically for alert-based trading strategies.
Информация о релизе
This TradingView Pine Script (version 5) is a custom MACD (Moving Average Convergence Divergence) indicator. It calculates the MACD line by subtracting a slow moving average from a fast moving average, using either an EMA or SMA depending on user settings. A signal line—also selectable as an EMA or SMA—is then derived from the MACD, and the histogram plots the difference between the two. The script visually enhances the traditional MACD by coloring the histogram columns dynamically: shades of green for strengthening bullish momentum and shades of red for weakening or strengthening bearish momentum.Beyond standard MACD plotting, the script adds multiple horizontal reference lines (from ±0.25 up to ±3) and color-filled zones to highlight momentum regions: an orange box for the neutral range (−1 to +1), a red zone for strong bearish momentum (−3 to −1), and a green zone for strong bullish momentum (+1 to +3). It includes alerts and visual dots for key events—when the MACD crosses its signal line (bullish or bearish crossovers) and when the histogram changes slope (rising to falling or vice versa). Altogether, this enhanced MACD aims to make momentum shifts and overextended conditions easier to identify visually and programmatically for alert-based trading strategies.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.