Strategy · Pine Script v6 · On the chart

Volume Exhaustion Strategy (VES)

by iyoshikawa

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.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv6current
Lines of code1,606
Settings40inputs
LicenceNone stated
Last update5 months ago31 May 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 strategy, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

iyoshikawa on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Mean reversion, Volume

Markets

Indices

Timeframes

M15-H1

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)
  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time
  • The strategy can add several entries in the same direction

Settings

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

SettingTypeDefaultVariable
Instrumentstring🔷 YM (Dow)preset
Take Profit (points)float40.0tp_pts_in
Stop Loss (points)float40.0sl_pts_in
Trail ModestringFixedtrail_mode
Trail Fixed (points)float40.0trail_pts_in
ATR Lengthint14atr_trail_len
ATR Multiplierfloat1.5atr_trail_mult
Enable Breakeven Stopbooltruebe_enable
Bricks to Trigger BEint3be_boxes_in
BE Offset (ticks profit)int3be_ticks_in
Trail Activation (bricks)int1trail_activation_bricks
Daily DD Limit ($)float3000.0daily_dd_limit_in
Show all 40 settings
SettingTypeDefaultVariable
Daily Profit Target ($)float0.0daily_pt_limit
Enable ADR Exhaustion Filterbooltrueenable_adr_filter
ADR Lookback (days)int10adr_length
Exhaustion Threshold (%)float80.0adr_exhaust_pct
Tighten Trail When ADR > 70%booltrueadr_tighten_trail
Tighten Threshold (%)float70.0adr_tighten_pct
Min Wave Length (bricks)int3min_wave_len
Detection MethodstringWave Comparevol_method
Volume Lookback (bars)int20vol_lookback
Wave Volume Decline % (0=any decline)float0.0wave_decline_pct
ROC Smoothing (bars)int5vol_roc_len
Z-Score Thresholdfloat0.3z_threshold
Wave: Enable Exhaustion Detectionbooltruewave_use_exhaustion
Wave: Enable Climax Detectionbooltruewave_use_climax
Wave: Climax Multiplierfloat1.2wave_climax_mult
Wave: Min Wave Volume (0=off)float0.0wave_min_volume
Higher Timeframetimeframe15mtf_roc_tf
HTF ROC Lookback (bars)int20mtf_roc_lookback
EMA Fast (21)int21ema_fast_len
EMA Mid (34)int34ema_mid_len
EMA Slow (50)int50ema_slow_len
BB Lengthint10bb_length_in
BB Std Dev Multiplierfloat1.2bb_mult_in
BB Calculation Timeframetimeframe3bb_tf_in
Upper Bandcolor#2962FFbb_color_up
Lower Bandcolor#2962FFbb_color_lo
Midlinecolorcolor.graybb_color_mid
Suppress Signals in BB Squeezebooltruebb_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.

Similar Pine Scripts

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

Strategy v4 Volatility & bandsMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Bollinger Bands Strategy with Intraday Intensity Index
13 stars

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

Strategy v5 VolumeVolatility & bands
Updated 1 year ago · None stated GitHub repository of Ruckard Voladder A002

Wyckoff Phase

by muammeryldrm42
7 stars

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

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · MIT GitHub repository of Wyckoff Phase
4 stars

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

Strategy v6 Mean reversionSessions & time
Updated 2 months ago · MIT GitHub repository of NQ VWAP Reversion [trugurpala]
3 stars

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

Strategy v4 Mean reversionVolatility & bands
Updated 4 years ago · CC0-1.0 GitHub repository of Greeffer's Long Strategy

More strategys

Trade Your Charts With a Regulated Broker

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

Compare brokers