OPEN-SOURCE SCRIPT
Zaktualizowano

EMA Pullback Entry Signals

4 071
EMA Pullback Entry Signals is a tool designed to help traders identify trend continuation opportunities by detecting price pullbacks toward a slow EMA (Exponential Moving Average) during trending conditions.

This indicator combines moving average crossovers, price interaction with EMAs, and optional filtering to improve the timing and quality of trend entries.

Core Features:
Golden Cross / Death Cross Detection

Golden Cross: Fast EMA crossing above Slow EMA

Death Cross: Fast EMA crossing below Slow EMA

Optional X-shaped markers for crossover visualization

Pullback Signal on Slow EMA

Green triangle: Price crosses up through the slow EMA during a bullish trend

Red triangle: Price crosses down through the slow EMA during a bearish trend

Designed to capture continuation entries after a trend pullback

Optional Fast EMA Signals

Green arrow: Price crosses above fast EMA in a bull trend

Red arrow: Price crosses below fast EMA in a bear trend

Helps confirm minor retracements or short-term momentum shifts

Sideways Market Filter

Suppresses signals when the fast and slow EMAs are too close

Prevents entries during low-trend or choppy price action

Cooldown Timer

Enforces a minimum bar interval between signals to reduce overtrading

Helps avoid multiple entries from clustered signals

Custom Alerts

Alerts available for all signal types

Include ticker and timeframe in each alert message

Configurable Settings:
Fast and slow EMA lengths1

Toggle individual signal types (pullbacks, fast EMA crosses, crossovers)

Enable/disable cooldown logic and set bar duration

Sideways market detection sensitivity (EMA proximity threshold)

Primary Use Case
This script is most useful for trend-following traders seeking to enter pullbacks after a trend is established. When the price retraces to the slow EMA and then resumes in the trend direction, it can offer high-quality continuation setups. Works well across timeframes and markets.
Informacje o Wersji
EMA Pullback Entry Signals is a trend-following indicator that helps traders identify high-probability reentry points during established trends. It uses a combination of exponential moving averages (EMAs), price action logic, trend filters, and optional noise suppression to generate clear, actionable signals.

Core Logic and Strategy
The indicator is built around the concept of entering trends on pullbacks, specifically when price interacts with key EMAs.

Trend Direction

A trend is considered bullish when the fast EMA is above the slow EMA.

A trend is considered bearish when the fast EMA is below the slow EMA.

Golden and Death Crosses

Golden Cross: Fast EMA crosses above Slow EMA — potential start of a bull trend.

Death Cross: Fast EMA crosses below Slow EMA — potential start of a bear trend.

These events are marked once and help establish the trend context.

Pullback Detection on Slow EMA

In a bull trend, when the price dips below the slow EMA and then closes back above it, a green triangle is shown to signal a potential long entry.

In a bear trend, when the price rises above the slow EMA and then closes back below it, a red triangle signals a possible short opportunity.

These entries are ideal for traders seeking continuation trades after a retracement.

Fast EMA Confirmations (Optional)

In a bull trend, if the price crosses above the fast EMA, a green arrow is shown.

In a bear trend, if price crosses below the fast EMA, a red arrow is shown.

These minor signals help detect momentum shifts or scalping opportunities.

Sideways Market Filter

If the fast and slow EMAs are very close together (configurable), the market is considered "flat" or "choppy", and signals can be suppressed to avoid false entries during low-trend conditions.

Cooldown Timer

You can limit the frequency of signals using a bar-based cooldown.

This helps reduce clutter and overtrading in fast-moving or volatile markets.


How to Use It
Choose your preferred EMA lengths (e.g., 50/200 for swing trading).

Enable/disable signal types based on your strategy (e.g., only show pullbacks to slow EMA).

Tune the sideways filter to suppress signals in consolidation zones.

Adjust the cooldown period to suit your trading timeframe (e.g., 10 bars for 15min charts).

This tool is designed for:

Swing traders looking for trend reentry setups

Momentum traders seeking fast EMA confirmation

Day traders using EMA structure for intraday filtering

Unlike basic EMA crossover indicators, this script:

Combines multi-layer signal logic (crossovers, trend context, price confirmation)

Implements sideways market filtering to reduce false signals

Offers a cooldown mechanism to avoid repeated entries

Separates trend-start signals (crossovers) from trend-continuation entries (pullbacks)

It is not a clone of built-in or beginner examples — it was built to solve a specific problem: entering trending markets after retracements with visual and alert-based assistance.
Informacje o Wersji
Modified alert messages.
Added Buy/Sell Combo alerts for the Fast and Slow EMAs
Informacje o Wersji
EMA Pullback Entry Signals v4.1.0 — Major Update

Rebuilt from the ground up for crypto traders. Here's everything that changed since v1.0.1:

Upgraded to Pine Script v6

New: Backtested Presets (BTC / ETH Optimized)

BTC Optimized: 50/200 EMA with all filters enabled
ETH Optimized: 20/200 EMA with all filters enabled
Presets lock the full filter configuration to match backtested results — select "Custom" for manual control
New: On-Chart Info Panel

Real-time dashboard showing: active preset, trend direction, EMA spread %, EMA slope, RSI (14), HTF trend, and buy/sell signal count
New: EMA Ribbon Fill

Visual fill between fast and slow EMA — green in uptrend, red in downtrend (toggleable)
New: Trend Background Shading

Subtle green/red background tint based on EMA trend direction (toggleable)
New Signal Filters:

Volume filter — signals only fire when volume exceeds its 20-bar average
Candle confirmation — buys require a bullish close, sells require a bearish close
EMA slope alignment — slow EMA must be sloping in the trend direction (10-bar lookback)
RSI filter — blocks buys above overbought / sells below oversold (optional, auto-enabled by presets)
Higher timeframe trend filter — only take signals when the HTF EMA trend agrees (optional)
Improved Existing Features:

Cooldown hardened to 3 bars (was user-configurable — simpler and backtested)
Sideways threshold changed to percentage input (was raw decimal — now shows as 0.5% instead of 0.005)
Heikin Ashi safe — uses real open in addition to real close for accurate candle confirmation
Fast EMA cross signals now use distinct colors (lime/fuchsia) instead of white/white
Alert messages improved with standardized format including close price
Removed:

Configurable cooldown bar count (fixed at 3 for consistency)
Informacje o Wersji
What's New:

🔒 Require Bar Close Before Signal (NEW)

New filter that prevents signals from appearing on incomplete/forming bars
Eliminates signal flickering on higher timeframes (weekly, monthly)
Enabled by default — signals only fire once the candle is confirmed
Turn it OFF if you want to see real-time signals before the bar closes

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.