Indicator · Pine Script v5 · On the chart

V16 Trend Exhaustion Catcher

by snoozie-v

A counter-trend indicator that complements a trend-following sibling.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code558
Settings30inputs
LicenceNone stated
Last update7 months ago13 Mar 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

V16 Trend Exhaustion Catcher looks for fading trends in two ways: four-hour EMAs narrowing together followed by a counter-cross on one hour, or RSI divergence on four hours with a rejection candle. A signal offset can delay entries, volume spikes can be required, and ATR stops, targets, breakeven and trailing rules apply. Exits include trend re-strengthening and a time limit, with a convergence zone background.

Details

Published by

snoozie-v on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Mean reversion, Divergence, Oscillators & momentum

Markets

Crypto

Timeframes

M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
4H EMA Fastint9ema_fast_4h_len
4H EMA Slowint21ema_slow_4h_len
Trend Deadzone %float0.1deadzone_pct
1H EMA Fastint9ema_fast_1h_len
1H EMA Slowint21ema_slow_1h_len
Min Convergence Barsint3min_conv_bars
Max Gap % for Entryfloat0.8max_gap_pct
4H RSI Periodint14rsi_period_4h
Divergence Lookback Barsint5div_lookback
Rejection Wick Ratiofloat0.6wick_ratio
Volume SMA Lengthint20vol_sma_len
Volume Spike Multiplierfloat1.0vol_spike_mult
Show all 30 settings
SettingTypeDefaultVariable
ATR Lengthint14atr_len
Stop Loss Multiplierfloat2.0stop_mult
Take Profit Multiplierfloat2.5tp_mult
1R Multiplier (Breakeven Trigger)float1.0tp_mult_1r
2R Multiplier (Trailing Trigger)float2.0tp_mult_2r
Signal Offset (bars delay)int2signal_offset
Trend Strengthen Exit %float10.0trend_str_exit_pct
Max Hold Bars (1H)int36max_hold_bars
Cooldown Bars (1H)int6cooldown_bars
Enable Breakeven at +1Rbooltrueuse_breakeven
Enable Trailing at +2Rbooltrueuse_trailing
Show TP/SL Linesbooltrueshow_tp_sl_lines
Show Trade Plan Labelsbooltrueshow_trade_labels
Show Dynamic SL Linebooltrueshow_dynamic_sl
Show R-Level Labelsbooltrueshow_partial_labels
Show Convergence Zone Backgroundbooltrueshow_conv_zone
Account Equity ($)float10000account_equity
Daily Loss Limitint3daily_loss_limit
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

8 stars

This indicator detects contrarian inflection points and potential market reversals by combining sentiment, volume, and price action metrics directly on the price chart. It evaluates overbought and oversold conditions with the RSI and Stochastic oscillators, hi

Indicator v5 Oscillators & momentumVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of GCR Inflection Point Scanner

This indicator plots trade entry and exit signals on the price chart by combining Bollinger Bands with optional filter conditions. It calculates standard Bollinger Bands along with RSI, Aroon, and moving average filters. Reversal signals trigger when price bre

Indicator v4 Volatility & bandsOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Bollinger Bands Winner IND [Alorse]
285 stars

Mean Reversion Study is an indicator that identifies trade setups combining exponential moving averages, RSI extremes, and engulfing candlestick patterns. It highlights bullish setups when a bullish engulfing candle forms below the EMA while RSI is oversold, a

Indicator v4 Mean reversionCandlestick patterns
Updated 3 years ago · None stated GitHub repository of Mean Reversion Study
257 stars

This overlay indicator looks for regular price divergences against a set of oscillators, using pivot highs and lows. It compares those pivots with RSI, MACD and its histogram, stochastic, CCI, momentum, OBV, a directional oscillator, volume-weighted MACD, Chai

Indicator v5 DivergenceOscillators & momentum Repaints
Updated 6 weeks ago · None stated GitHub repository of Snag - Best Futures V3

RSI Divergence Scanner

by TradersPost
218 stars

The RSI Divergence Scanner calculates the Relative Strength Index and identifies regular and hidden bullish or bearish divergences against price using pivot high and low points. It plots divergence lines and customizable labels directly on the price chart. Inp

Indicator v6 Oscillators & momentumDivergence
Updated 3 months ago · None stated GitHub repository of RSI Divergence Scanner
147 stars

This indicator combines Bollinger Bands, RSI, Stochastic RSI, and volume spike detection to identify mean-reversion conditions during range-bound market regimes. It calculates Bollinger Band width to identify low-volatility states and triggers buy or sell sign

Indicator v5 Oscillators & momentumVolatility & bands
Updated 6 weeks ago · MIT GitHub repository of BTC Dec 2025 — Range + Gamma Flush

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers