PROTECTED SOURCE SCRIPT
Telah dikemas kini Pullback EMA50 Confirmado

Este script utiliza la logica de pullback a la ema 50
Nota Keluaran
“Pullback EMA50 Confirmed [RSI+MACD+ROC+EMA Cross+S/R+FVG] + Alerts”Script Objective
This script is designed to identify high-probability BUY and SELL signals based on pullbacks to the EMA50, confirmed by up to four technical indicators, and further enhanced by market structure confluences such as dynamic support/resistance and Fair Value Gaps (FVGs).
It displays visual labels and sends real-time alerts only when ideal conditions are met.
Core Logic Overview
EMA50 as the main reference
The script calculates a 50-period Exponential Moving Average (EMA50).
You can choose whether to use the chart timeframe or a higher timeframe (HTF).
A pullback is detected when:
Price comes close to EMA50 (within X pips), or
The previous candle touches or crosses EMA50.
2. Technical Confirmations (up to 4 total)
Signals are validated only if a minimum number of confirmations is met (set via minConfirmations). The available confirmations:
Confirmation BUY Condition SELL Condition
RSI RSI > 50 RSI < 50
MACD MACD Line > Signal Line MACD Line < Signal Line
Volume ROC Volume ROC > 0 Volume ROC < 0
EMA 9 vs EMA 20 Cross EMA9 crosses above EMA20 EMA9 crosses below EMA20
You can require 2 to 4 confirmations.
3. Trend Direction
To avoid trading against the trend:
BUY signals are only allowed when EMA50 is sloping upward.
SELL signals require EMA50 to be sloping downward.
4. Dynamic Support and Resistance
Detected via pivot highs and lows.
The script keeps track of the most recent support or resistance.
If the current price is close to one of these zones (within proximity), it is marked as a zone of confluence.
5. Fair Value Gaps (FVGs)
FVGs are imbalances between 3 candles:
Bullish FVG: low[2] > high[0]
Bearish FVG: high[2] < low[0]
If the current price is inside this gap zone, it counts as a confluence.
Signal Logic and Labels
BUY Signal Requirements:
Pullback to EMA50 detected.
Bullish candle (close > open).
Price is above EMA50.
EMA50 is rising.
Minimum confirmations met (2–4).
SELL Signal Requirements:
Pullback to EMA50 detected.
Bearish candle (close < open).
Price is below EMA50.
EMA50 is falling.
Minimum confirmations met.
Dynamic Label Colors
Condition Label Color
BUY without confluence Lime Green
BUY with confluence Gold
SELL without confluence Red
SELL with confluence White
Confluence is true if the signal aligns with:
A nearby support (BUY) or resistance (SELL)
An active FVG zone
Alerts
Real-time alerts are triggered once per candle close (alert.freq_once_per_bar_close), with custom messages showing:
Symbol
Timeframe
Type of signal
Number of confirmations
Customization Options
Users can adjust:
EMA timeframe (use current chart or higher)
Proximity range to EMA/S/R/FVG
Number of required confirmations (from 2 to 4)
Minimum bars between signals
Strengths of This Script
Accurate signals by combining price action (pullback) + indicator confluence
Trend-filtered logic reduces false signals
Market structure awareness (S/R + FVG) boosts confidence
Alert-ready for automation or mobile notifications
Clean visualization, no chart clutter
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.