OPEN-SOURCE SCRIPT
3x EMA/SMA Cross Indicator

# 3x EMA/SMA Cross Indicator
The **3x EMA/SMA Cross Indicator** is a flexible multi-moving-average crossover tool designed for trend analysis, signal confirmation, and market structure visualization.
This indicator allows traders to combine up to **three customizable moving averages** using either **EMA (Exponential Moving Average)** or **SMA (Simple Moving Average)** calculations. Each MA can be individually configured with its own length, type, and color.
It supports:
* Multi-timeframe analysis
* Bullish and bearish crossover detection
* Visual crossover markers
* TradingView alert conditions
## Features
* 3 fully customizable moving averages
* EMA or SMA selection for each MA
* Optional higher timeframe calculations
* Automatic bullish and bearish crossover detection
* Signal markers directly on the chart
* Built-in alert conditions for all MA crosses
* Clean overlay visualization
## Included Cross Signals
The indicator detects:
* MA1 crossing above/below MA2
* MA1 crossing above/below MA3
* MA2 crossing above/below MA3
Bullish and bearish crossover alerts can be used for:
* Trend confirmation
* Entry timing
* Exit signals
* Dynamic support/resistance analysis
## Multi-Timeframe Support
Users can optionally calculate all moving averages from a higher timeframe while viewing a lower timeframe chart.
Leaving the timeframe input empty uses the current chart timeframe.
## Alert Conditions
Included TradingView alerts:
* MA1 crosses above MA2
* MA1 crosses below MA2
* MA1 crosses above MA3
* MA1 crosses below MA3
* MA2 crosses above MA3
* MA2 crosses below MA3
* Any bullish cross
* Any bearish cross
* Any MA crossover
## Best Use Cases
* Trend following strategies
* Golden Cross / Death Cross setups
* Swing trading
* Market regime filtering
* Multi-MA confirmation systems
## Notes
This indicator is designed as a visual and analytical tool and should be combined with proper risk management and additional confirmation methods before making trading decisions.
The **3x EMA/SMA Cross Indicator** is a flexible multi-moving-average crossover tool designed for trend analysis, signal confirmation, and market structure visualization.
This indicator allows traders to combine up to **three customizable moving averages** using either **EMA (Exponential Moving Average)** or **SMA (Simple Moving Average)** calculations. Each MA can be individually configured with its own length, type, and color.
It supports:
* Multi-timeframe analysis
* Bullish and bearish crossover detection
* Visual crossover markers
* TradingView alert conditions
## Features
* 3 fully customizable moving averages
* EMA or SMA selection for each MA
* Optional higher timeframe calculations
* Automatic bullish and bearish crossover detection
* Signal markers directly on the chart
* Built-in alert conditions for all MA crosses
* Clean overlay visualization
## Included Cross Signals
The indicator detects:
* MA1 crossing above/below MA2
* MA1 crossing above/below MA3
* MA2 crossing above/below MA3
Bullish and bearish crossover alerts can be used for:
* Trend confirmation
* Entry timing
* Exit signals
* Dynamic support/resistance analysis
## Multi-Timeframe Support
Users can optionally calculate all moving averages from a higher timeframe while viewing a lower timeframe chart.
Leaving the timeframe input empty uses the current chart timeframe.
## Alert Conditions
Included TradingView alerts:
* MA1 crosses above MA2
* MA1 crosses below MA2
* MA1 crosses above MA3
* MA1 crosses below MA3
* MA2 crosses above MA3
* MA2 crosses below MA3
* Any bullish cross
* Any bearish cross
* Any MA crossover
## Best Use Cases
* Trend following strategies
* Golden Cross / Death Cross setups
* Swing trading
* Market regime filtering
* Multi-MA confirmation systems
## Notes
This indicator is designed as a visual and analytical tool and should be combined with proper risk management and additional confirmation methods before making trading decisions.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.