PROTECTED SOURCE SCRIPT
Aggiornato

Pullback EMA50 Confirmado

58
Este script utiliza la logica de pullback a la ema 50
Note di rilascio
“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

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.