Strategy · Pine Script v5 · On the chart

Volume Breakout Strategy

by kanylbullen

This strategy identifies breakouts using Keltner Channels combined with volume spike filters, ADX trend strength, RSI thresholds, and an optional EMA trend direction filter.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code205
Settings23inputs
LicenceNone stated
Last update6 days ago22 Oct 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 Breakout Strategy triggers long entries when price crosses above the upper channel and short entries when price crosses below the lower channel during matching trend conditions. Risk controls feature an ATR-based stop loss, breakeven triggers, and trailing stops. User settings allow adjusting leverage, position compounding, indicator filters, and configuring JSON webhook messages for external execution.

Details

Published by

kanylbullen on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

Breakout, Trend, Volatility & bands, Oscillators & momentum

Markets

Crypto

Timeframes

M15-H1, H4 and above

Risk Notes

  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time

Settings

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

SettingTypeDefaultVariable
Long Entry JSONtext{"action": "open_long", "ticker": "ETHUSD"}msg_long_entry
Long Exit JSONtext{"action": "close_long", "ticker": "ETHUSD"}msg_long_exit
Short Entry JSONtext{"action": "open_short", "ticker": "ETHUSD"}msg_short_entry
Short Exit JSONtext{"action": "close_short", "ticker": "ETHUSD"}msg_short_exit
Use Compounding?booltrueuse_compounding
Equity % per Tradefloat50.0equity_pct
Fixed Margin (if Compounding OFF)float500fixed_cash
Leverage (x)int2leverage
Keltner Lengthint22kc_len
Keltner Multiplierfloat2.0kc_mult
Trade with 200 EMA Trend Onlybooltrueuse_trend_ema
Trend EMA Lengthint220ema_len
Show all 23 settings
SettingTypeDefaultVariable
Use ADX Filterbooltrueuse_adx
Min ADX Valueint20adx_thresh
Require Volume Spikebooltrueuse_vol_filter
Volume Average Lengthint18vol_len
RSI Lengthint14rsi_len
ATR Lengthint14atr_len
Stop Loss (ATR Multiplier)float4.0sl_multiplier
Breakeven Trigger (%)float1.5bk_activation
Use Trailing Stopbooltrueuse_trail
Start Trailing after % Gainfloat3.0trail_start
Trailing Offset %float1.0trail_offset
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

16 stars

This strategy trades Donchian channel breakouts on the price chart and exits on a shorter Donchian channel. It sizes each unit from a percentage of equity and an ATR-based initial stop, then adds units as price moves a set ATR distance, up to a maximum unit co

Strategy v6 TrendBreakout
Updated 11 months ago · None stated GitHub repository of Seykota Alt 16: Anti-Chop Filters

GEO P Momentum Strategy

by newsfriend
2 stars

Implements a rule-based momentum trading strategy that detects Bollinger Band challenges followed by synchronized trendline or range breakouts on the price chart. Entries trigger under configurable strictness modes using multi-timeframe Tide and Wave alignment

Strategy v6 Oscillators & momentumVolatility & bands
Updated 8 weeks ago · None stated GitHub repository of GEO P Momentum Strategy

This strategy evaluates multi-factor breakout confluence using a customized scoring system on the price chart. It checks Minervini-style Volatility Contraction Pattern trend templates, TTM squeeze volatility compression, volume dry-up with OBV accumulation, mo

Strategy v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnSovereign Breakout Confluence V6
6 stars

This strategy identifies high-volatility expansion bars by comparing the high-low range to a moving average plus standard deviation threshold. When range expansion occurs, it checks momentum over a specified lookback period. It opens a long position if the cur

Strategy v5 Volatility & bandsOscillators & momentum
Updated 1 year ago · None stated GitHub repository of TradersPost High-Low Range 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