OPEN-SOURCE SCRIPT
EMA-RSI Indicator [FGL]

EMA-RSI Indicator
The EMA-RSI Indicator is a trend-following indicator designed to identify high-probability pullback opportunities by combining Multi-Timeframe Exponential Moving Averages (EMA) with RSI Momentum Confirmation.
Instead of generating signals on every trend change, this indicator waits for price to retrace back to the fast EMA while the overall trend and momentum remain aligned.
Features
Multi-Timeframe EMA Trend Detection
Multi-Timeframe RSI Momentum Filter
Pullback Entry Signals
Buy & Sell Alerts
Simple and Clean Chart Visualization
How It Works:
1. Trend Detection (EMA)
The indicator uses two EMAs from different timeframes:
EMA 1 (Fast EMA) – Lower timeframe
EMA 2 (Slow EMA) – Higher timeframe
This helps filter trades in the direction of the dominant market trend.
2. Momentum Confirmation (RSI)
Momentum is confirmed using the RSI and its Moving Average from a selectable timeframe.
This additional filter helps reduce false signals during weak market conditions.
3. Pullback Detection
A signal is generated only when the previous candle touches the Fast EMA.
The candle must:
Cross the Fast EMA (High above EMA and Low below EMA)
Have a relatively small range (default: ≤ 10 price units)
This approach aims to identify healthy pullbacks instead of chasing impulsive price movements.
Alerts:
The indicator includes three built-in alerts:
Buy Alert
Sell Alert
Buy & Sell Alert
These alerts can be used for TradingView notifications.
Recommended Markets
Gold (XAUUSD)
It is recommended to use proper risk management and combine this indicator with support/resistance, market structure, or price action analysis before entering a trade.
The EMA-RSI Indicator is a trend-following indicator designed to identify high-probability pullback opportunities by combining Multi-Timeframe Exponential Moving Averages (EMA) with RSI Momentum Confirmation.
Instead of generating signals on every trend change, this indicator waits for price to retrace back to the fast EMA while the overall trend and momentum remain aligned.
Features
Multi-Timeframe EMA Trend Detection
Multi-Timeframe RSI Momentum Filter
Pullback Entry Signals
Buy & Sell Alerts
Simple and Clean Chart Visualization
How It Works:
1. Trend Detection (EMA)
The indicator uses two EMAs from different timeframes:
EMA 1 (Fast EMA) – Lower timeframe
EMA 2 (Slow EMA) – Higher timeframe
This helps filter trades in the direction of the dominant market trend.
2. Momentum Confirmation (RSI)
Momentum is confirmed using the RSI and its Moving Average from a selectable timeframe.
This additional filter helps reduce false signals during weak market conditions.
3. Pullback Detection
A signal is generated only when the previous candle touches the Fast EMA.
The candle must:
Cross the Fast EMA (High above EMA and Low below EMA)
Have a relatively small range (default: ≤ 10 price units)
This approach aims to identify healthy pullbacks instead of chasing impulsive price movements.
Alerts:
The indicator includes three built-in alerts:
Buy Alert
Sell Alert
Buy & Sell Alert
These alerts can be used for TradingView notifications.
Recommended Markets
Gold (XAUUSD)
It is recommended to use proper risk management and combine this indicator with support/resistance, market structure, or price action analysis before entering a trade.
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.