OPEN-SOURCE SCRIPT
Zaktualizowano

RIFTS Tap & Break Sniper [NICK789]

2 148

RIFTS Tap & Break Sniper [NICK789]

The RIFTS Tap & Break Sniper indicator is built around one core price-action idea:

Price creates or leaves behind a reaction zone, later returns to tap or reject from that zone, and then confirms direction by printing a BOS or CHoCH.

RIFTS stands for:

**R** — Reaction Zones
**I** — Imbalance Gaps
**F** — Flip / Structure Confirmation
**T** — Tap & Break Logic
**S** — Sniper Scoring

Together, these describe the full process used by the script: price creates or leaves behind a zone, returns to tap or reject from it, then confirms direction through BOS or CHoCH before the setup is scored and plotted as a Sniper or Sniper+ signal.

The script is designed to help traders identify tap-and-break structures where a zone reaction and a market-structure break occur together. Instead of showing zones by themselves or structure breaks by themselves, RIFTS connects both steps into one workflow:

1. Price creates a Reaction Block or Imbalance Gap.
2. Price returns to tap the zone.
3. Price rejects from the zone.
4. Price confirms direction with BOS or CHoCH.
5. The script scores the setup and plots a Sniper or Sniper+ signal.

🔶 USAGE

RIFTS identifies two main zone types:

Reaction Blocks
Imbalance Gaps

A setup begins when price creates one of these zones. The script then watches for price to return to the zone and either tap or reject from it.

A bullish setup develops when price interacts with a bullish zone and then confirms upward movement through a bullish structure break.

A bearish setup develops when price interacts with a bearish zone and then confirms downward movement through a bearish structure break.

The signal is not based on the zone alone. The main purpose is to find moments where zone interaction and structure confirmation align.

🔹 Reaction Blocks

Reaction Blocks are candle-based zones created after price displaces away from the previous candle.

A bullish Reaction Block forms when a bullish candle closes above the previous candle’s high while the previous candle was bearish.

A bearish Reaction Block forms when a bearish candle closes below the previous candle’s low while the previous candle was bullish.

The script marks the previous candle range as the reaction area. This area becomes important if price later returns to it and reacts.

The Zone Candle Body % setting controls how strong the displacement candle must be before a Reaction Block is created. Higher values require stronger candle bodies and reduce weaker zones.

🔹 Imbalance Gaps

Imbalance Gaps are created when price moves quickly and leaves an untraded gap between the current candle and the candle two bars back.

A bullish Imbalance Gap forms when the current low is above the high from two candles ago.

A bearish Imbalance Gap forms when the current high is below the low from two candles ago.

These gaps represent fast price movement. If price later returns to the gap, the script monitors whether price reacts from that area and then breaks structure.

🔹 Tap and Reaction Logic

After a Reaction Block or Imbalance Gap is created, the script tracks whether price comes back into the zone.

A zone is considered tapped when price trades back inside the zone.

A bullish reaction occurs when price taps a bullish zone and then closes upward out of that zone.

A bearish reaction occurs when price taps a bearish zone and then closes downward out of that zone.

The reaction candle must pass the selected quality filters:

Reject Body %
Reject Range ATR

These filters help avoid weak touches where price enters a zone but does not show enough rejection strength.

🔹 BOS and CHoCH Confirmation

The script tracks swing highs and swing lows using the Structure Swing Length setting.

When price closes above the last confirmed swing high, the script detects a bullish structure break.

When price closes below the last confirmed swing low, the script detects a bearish structure break.

The structure break is classified as either BOS or CHoCH.

BOS means Break of Structure. It represents continuation in the current structure direction.

CHoCH means Change of Character. It represents a break against the previous market bias and may suggest a possible directional shift.

CHoCH and BOS lines are drawn on the chart so users can see exactly which structure level was broken.

🔶 SIGNAL MODES

The Sniper Confirmation setting controls how strict the setup must be before a signal appears.

Reaction Only

A signal can appear when price reacts from a valid zone. This is the fastest mode because it does not require a BOS or CHoCH confirmation.

Tap + Structure

A signal requires price to tap a valid zone and then break structure in the signal direction.

Reaction + Structure

A signal requires both a valid zone reaction and a BOS or CHoCH confirmation. This mode is designed for traders who want zone rejection and structure confirmation together.

🔹 Structure Trigger Type

The Structure Trigger Type setting controls which structure events can trigger signals.

Both
Allows both BOS and CHoCH.

CHoCH Only
Only allows change-of-character signals.

BOS Only
Only allows break-of-structure signals.

This lets traders focus on reversal-style setups, continuation-style setups, or both.

🔶 SNIPER SCORE

Each setup receives a score based on the conditions that are present.

The score can include:

Zone tap or zone reaction
BOS or CHoCH confirmation
Fresh reaction timing
Optional volume confirmation
Optional EMA trend confirmation

A Sniper signal appears when the setup reaches the minimum score threshold.

A Sniper+ signal appears when the setup reaches the higher Sniper+ threshold.

The score is a confluence model. It does not predict guaranteed profit. It simply shows how many of the script’s conditions are aligned.

🔹 Volume Filter

When enabled, the Volume Filter requires current volume to be above a selected moving average multiplier.

Volume MA Length controls the volume average.

Volume Multiplier controls how much stronger current volume must be compared with the average.

This filter can help reduce signals during weaker volume conditions.

🔹 EMA Trend Filter

When enabled, the EMA Trend Filter checks whether price is on the correct side of the selected EMA.

Bullish signals require price to be above the EMA.

Bearish signals require price to be below the EMA.

This filter is optional and can be used when traders want signals to align with broader trend direction.

🔶 TRADE PLAN GUIDE

When a Sniper or Sniper+ signal appears, the script can draw a simple trade plan guide.

Entry is based on the signal candle close.

Stop loss is placed beyond the reaction zone with an optional ATR buffer.

TP1, TP2, and TP3 are calculated using the selected R multiples.

The trade plan is only a visual guide. It does not place trades, manage trades, or act as a strategy tester.

🔶 VISUAL DISPLAY

The script can display:

Bullish and bearish Reaction Blocks
Bullish and bearish Imbalance Gaps
CHoCH and BOS structure lines
Sniper and Sniper+ markers
Latest Entry / SL / TP guide
Master alert and separate bull/bear alert conditions

Used zones and overlapping same-side zones are visually cleaned up to keep the chart easier to read.

🔶 SETTINGS

Core Zones

Show Zones
Toggles the display of Reaction Blocks and Imbalance Gaps.

Reaction Blocks
Enables or disables Reaction Block detection.

Imbalance Gaps
Enables or disables Imbalance Gap detection.

Hide Broken Zones
Removes invalidated zones from the chart.

Max Stored Zones
Controls how many zones are stored and tracked.

Zone Candle Body %
Sets the minimum candle body percentage required to create a zone.

Sniper Logic

Sniper Confirmation
Chooses Reaction Only, Tap + Structure, or Reaction + Structure.

Structure Swing Length
Controls the swing pivot length used for BOS and CHoCH detection.

Structure Trigger Type
Chooses whether BOS, CHoCH, or both can trigger signals.

Reaction Valid Bars
Controls how long a zone reaction remains valid for confirmation.

Confirm Signal On Candle Close
When enabled, signals only appear after the candle closes.

Quality Filters

ATR Length
Controls the ATR used for rejection and stop-buffer calculations.

Reject Body %
Sets the minimum body size required for a valid rejection candle.

Reject Range ATR
Sets the minimum candle range relative to ATR for rejection quality.

Require Break Displacement
Requires BOS/CHoCH candles to pass body and ATR strength filters.

Break Body %
Sets the minimum body size required for a valid structure break.

Break Range ATR
Sets the minimum candle range relative to ATR for a valid structure break.

Score Filters

Use Volume Filter
Requires volume confirmation before allowing signals.

Volume MA Length
Controls the moving average used for volume comparison.

Volume Multiplier
Controls how strong current volume must be compared with its average.

Use EMA Trend Filter
Requires signals to align with the EMA trend filter.

EMA Trend Length
Controls the EMA used for trend filtering.

Show Sniper+ Only
Hides normal Sniper signals and only shows Sniper+ signals.

Min Sniper Score
Minimum score required for a normal Sniper signal.

Sniper+ Score
Minimum score required for a Sniper+ signal.

Visuals

Show CHoCH/BOS Lines
Toggles structure lines on the chart.

Max Structure Lines
Controls how many structure lines remain visible.

Show Latest Entry / SL / TP
Toggles the trade plan guide.

RR Lines Bars Ahead
Controls how far the trade plan guide extends to the right.

TP1 R, TP2 R, TP3 R
Controls the risk-multiple targets.

SL ATR Buffer
Adds an ATR-based buffer beyond the reaction zone for the stop guide.

Alerts

The script includes alert conditions for:

Master Sniper signal
Bull Sniper
Bear Sniper
Bull Sniper+
Bear Sniper+

A dynamic master alert option is also available for traders who want alert messages that include symbol, timeframe, close price, and score.

🔶 HOW TO READ THE SIGNALS

A bullish Sniper signal means price has interacted with a bullish zone and passed the selected confirmation rules.

A bearish Sniper signal means price has interacted with a bearish zone and passed the selected confirmation rules.

A Sniper+ signal means the setup reached the higher score threshold.

BOS labels can help identify continuation-style structure breaks.

CHoCH labels can help identify possible shift or reversal-style structure breaks.

The Entry / SL / TP guide is only for planning and should be adjusted to each trader’s own risk management.

🔶 IMPORTANT NOTES

This script is a confluence and visualization tool. It does not guarantee future price movement.

Signals are based on reaction zones, zone taps, rejection candles, and BOS/CHoCH structure breaks.

Swing structure requires confirmed pivots, so BOS and CHoCH lines appear only after the selected swing length confirms the structure point.

Lower timeframes may produce more frequent signals and more noise.

Higher timeframes may produce fewer but cleaner structure events.

Best results usually come from combining the script with higher timeframe context, market session awareness, and proper risk control.
Informacje o Wersji
added candle colour
Informacje o Wersji
v1.1 Update

After testing RIFTS across more charts, I added cleaner zone handling and more flexible CHoCH/BOS confirmation.

New features:
• Classic / Responsive / Major structure confirmation modes
• Optional Close or Wick structure break source
• Optional zone cleanup controls
• Cleaner CHoCH/BOS labels
• Opposite Zone Guard for warning or blocking signals into active opposing zones

Classic mode keeps the original RIFTS behaviour, while Responsive and Major give traders more control over timing and context.

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.