A strategy that looks for mean-reversion entries when volume shows exhaustion, using wave comparison, volume rate of change or z-score detection plus several confluence checks, including a higher-timeframe volume ROC.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
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
Volume Exhaustion Strategy (VES) is designed for Renko charts, with Heiken-Ashi supported. Exits use fixed take profit and stop loss in points, a fixed or ATR trail, and an optional breakeven stop. A daily drawdown limit and an average daily range exhaustion filter are included.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Instrument
string
🔷 YM (Dow)
preset
Take Profit (points)
float
40.0
tp_pts_in
Stop Loss (points)
float
40.0
sl_pts_in
Trail Mode
string
Fixed
trail_mode
Trail Fixed (points)
float
40.0
trail_pts_in
ATR Length
int
14
atr_trail_len
ATR Multiplier
float
1.5
atr_trail_mult
Enable Breakeven Stop
bool
true
be_enable
Bricks to Trigger BE
int
3
be_boxes_in
BE Offset (ticks profit)
int
3
be_ticks_in
Trail Activation (bricks)
int
1
trail_activation_bricks
Daily DD Limit ($)
float
3000.0
daily_dd_limit_in
Show all 40 settings
Setting
Type
Default
Variable
Daily Profit Target ($)
float
0.0
daily_pt_limit
Enable ADR Exhaustion Filter
bool
true
enable_adr_filter
ADR Lookback (days)
int
10
adr_length
Exhaustion Threshold (%)
float
80.0
adr_exhaust_pct
Tighten Trail When ADR > 70%
bool
true
adr_tighten_trail
Tighten Threshold (%)
float
70.0
adr_tighten_pct
Min Wave Length (bricks)
int
3
min_wave_len
Detection Method
string
Wave Compare
vol_method
Volume Lookback (bars)
int
20
vol_lookback
Wave Volume Decline % (0=any decline)
float
0.0
wave_decline_pct
ROC Smoothing (bars)
int
5
vol_roc_len
Z-Score Threshold
float
0.3
z_threshold
Wave: Enable Exhaustion Detection
bool
true
wave_use_exhaustion
Wave: Enable Climax Detection
bool
true
wave_use_climax
Wave: Climax Multiplier
float
1.2
wave_climax_mult
Wave: Min Wave Volume (0=off)
float
0.0
wave_min_volume
Higher Timeframe
timeframe
15
mtf_roc_tf
HTF ROC Lookback (bars)
int
20
mtf_roc_lookback
EMA Fast (21)
int
21
ema_fast_len
EMA Mid (34)
int
34
ema_mid_len
EMA Slow (50)
int
50
ema_slow_len
BB Length
int
10
bb_length_in
BB Std Dev Multiplier
float
1.2
bb_mult_in
BB Calculation Timeframe
timeframe
3
bb_tf_in
Upper Band
color
#2962FF
bb_color_up
Lower Band
color
#2962FF
bb_color_lo
Midline
color
color.gray
bb_color_mid
Suppress Signals in BB Squeeze
bool
true
bb_squeeze_filter
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.
This strategy plots Bollinger Bands on the price chart using an EMA or SMA basis and a matching standard-deviation calculation. It enters long when price crosses back above the lower band and short when price crosses back below the upper band. An optional Intr
This strategy runs on the price chart to identify trade entries using volume sequences, specifically tracking consecutive declining volume candles followed by a volume surge at lower price levels. It provides webhook execution support for Zignaly copy trading
This strategy identifies Wyckoff consolidation ranges directly on the price chart to trade potential spring and upthrust events. It calculates highest highs and lowest lows over a customizable lookback period, filtering setups by average volume spikes and ATR
This strategy draws on the price chart and identifies mean-reversion opportunities around daily volume-weighted average price (VWAP) bands. It enters long positions when the price crosses above the lower band while the Relative Strength Index indicates oversol
Plots Donchian Channels and identifies trading setups based on price testing the channel extremes during high volume spikes. In long mode, it places limit buy orders when the low touches the lower Donchian band with volume exceeding a volume moving average mul
This strategy buys near a recent range low when a pin-like candle and a combined amplitude and volume score pass a threshold. Short moving averages with an ATR buffer detect a bearish stack, which raises the required score and tints the chart background. It op