OPEN-SOURCE SCRIPT

Best Entry Swing MASTER v3 PUBLIC (S.S)

111
Strategy Description (English)
Best Entry Swing MASTER v3 – Quality Mode

The Best Entry Swing MASTER v3 is a structured swing trading and trend-following strategy designed to identify high-probability long and short entries during directional markets.
It combines three core setup types commonly used by momentum and breakout traders:

Breakout (BO)

Pullback Reversal (PB)

Volatility Contraction Pattern (VCP)

The strategy applies multiple layers of confirmation, including multi-EMA trend structure, volatility contraction, volume filters, and an optional market regime filter.
It is suitable for swing trading on higher timeframes (4H, Daily), as well as medium-term trend continuation setups.

Core Concepts
1. Trend Structure

A trend is considered valid when:

Uptrend: Price > EMA20 > EMA50 > EMA100

Downtrend: Price < EMA20 < EMA50 < EMA100

In addition, a simple but effective trend-strength metric is calculated using the percentage spread between EMA20 and EMA100.
This helps avoid signals during sideways or low-volatility environments.

2. Market Regime Filter

The market environment is determined using a higher timeframe benchmark (default: SPY on Daily).

Only long trades are allowed in bullish market conditions

Only short trades in bearish conditions

This significantly reduces false signals in counter-trend conditions.

Entry Logic
Breakout (BO)

A long breakout triggers when:

Price closes above the highest high of the lookback period

Volume exceeds its 20-period average

Trend and market regime confirm

(Optional A+ mode): true volatility contraction is required

Similar logic applies for short breakdowns.

Pullback (PB)

A pullback entry triggers after:

At least two corrective candles

A strong reversal candle (close above previous high for long)

Volume confirmation

Price interacts with EMA20

This structure models classical trend-reentry conditions.

Volatility Contraction Pattern (VCP)

A VCP entry triggers when:

True range contracts over multiple bars

Price holds near the breakout zone

Volume contracts

Trend and market regime are aligned

This setup aims to capture explosive continuation moves.

Quality Modes

The strategy offers two modes:

Balanced Mode

Moderate signal frequency

Broader trend-strength allowance

Suitable for more active traders

A+ Only Mode

Strict confirmation requirements

Only high-quality setups with multiple confluences

Designed to avoid low-probability trades entirely

Risk Management

Risk is managed using an ATR-based stop and target:

Long SL = Close − ATR × 1.5

Long TP = Close + ATR × 3

(Equivalent logic for short positions)

This provides a balanced reward-to-risk profile and avoids overly tight stops.

Early Entry Signals (Optional)

The script offers optional “Early Entry” markers that highlight when a setup is forming but not yet confirmed.
These are not entry signals and are disabled by default for public use.

Intended Use

This strategy is designed for:

Swing trading

Momentum continuation

Trend-following

Multi-day to multi-week trades

It performs best on:

4H

Daily

High-liquidity equities, indices, and futures

Disclaimer

This script is intended for educational and research purposes.
Past performance does not guarantee future results.
Always backtest thoroughly and use appropriate risk management.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.