Indicator · Pine Script v6 · On the chart

V19 (15M) + V21 (4H) Hybrid

by snoozie-v

A single indicator that combines two systems and enables each only on its own timeframe.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code654
Settings38inputs
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

On a fifteen-minute chart it runs a volatility squeeze breakout using an ATR percentile and a regime filter. On a four-hour chart it runs a VWAP mean reversion with standard deviation bands. Each part has its own settings for stops, early stop moves, trailing and filters, and a label shows which system is active, or warns when the chart timeframe is unsupported.

Details

Published by

snoozie-v on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Breakout, Mean reversion, Volatility & bands

Markets

Crypto

Timeframes

M15-H1, H4 and above

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
V19 Squeeze Lookback (bars)int102v19_lookback
V19 Squeeze Percentileint35v19_sq_pctile
V19 ATR Mult (1R)float5.0v19_atr_mult
V19 Early Stop Movebooltruev19_early_be
V19 BE Trigger (fraction of 1R)float0.75v19_be_trig
V19 BE Destination (R units)float-0.5v19_be_dest
Enable Regime Filterbooltruev19_use_regime
Allow: Uptrend + High Volbooltruev19_allow_ut_high
Allow: Uptrend + Normal Volbooltruev19_allow_ut_norm
Allow: Uptrend + Low Volboolfalsev19_allow_ut_low
Allow: Downtrend + High Volbooltruev19_allow_dt_high
Allow: Downtrend + Normal Volbooltruev19_allow_dt_norm
Show all 38 settings
SettingTypeDefaultVariable
Allow: Downtrend + Low Volboolfalsev19_allow_dt_low
Allow: Ranging + High Volbooltruev19_allow_rg_high
Allow: Ranging + Normal Volbooltruev19_allow_rg_norm
Allow: Ranging + Low Volboolfalsev19_allow_rg_low
V21 VWAP Period (0=auto)int0v21_vwap_inp
V21 SD Entry (0=auto)float0.0v21_sd_inp
V21 ATR Stop Mult (0=auto)float0.0v21_atr_inp
V21 ATR Vol Max % (0=auto)float0.0v21_vol_max_inp
V21 Min VWAP Dist (0=auto)float0.0v21_min_vwap_inp
V21 ATR Vol Min %float0.5v21_vol_min
V21 Enable Regime Filterbooltruev21_use_regime
V21 Allow Longs in Downtrendboolfalsev21_allow_lt_long
V21 Allow Shorts in Uptrendboolfalsev21_allow_ut_short
V21 Early BE Trigger (R frac)float0.75v21_early_be_trig
V21 Early BE Dest (R frac back)float0.5v21_early_be_dest
ATR Periodint14atr_period
V19 ATR Trail Mult (runner)float5.0atr_trail_mult
V21 ATR Trail Mult (runner)float5.0v21_trail_mult
Enable Longsbooltrueenable_longs
Enable Shortsbooltrueenable_shorts
Account Equity ($)float10000.0account_equity
Risk % per tradefloat3.0risk_pct
Show Entry/Exit Labelsbooltrueshow_labels
Show V21 VWAP Bandsbooltrueshow_bands
Show V19 Squeeze Rangebooltrueshow_squeeze
Show R-Level Linesbooltrueshow_targets
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

Bollinger Bands Signals

by techteam92
1 stars

This indicator calculates custom Bollinger Bands using one of four selectable moving averages, defaulting to VIDYA. It plots the upper band, lower band, and basis line directly on the price chart, with a filled background between the outer bands. Buy and sell

Indicator v5 Volatility & bandsMoving averages
Updated 1 year ago · None stated GitHub repository of Bollinger Bands Signals

RSI %B on Chart

by zhuzp98
1 stars

This indicator plots the Relative Strength Index (RSI) and its Bollinger Band percentage bandwidth (%B) deviation directly on the price chart. It calculates RSI from a user-defined source and length, applies an EMA, and derives the %B deviation using a configu

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of RSI %B on Chart

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]

Raschke Patterns

by TradersPost
218 stars

This overlay indicator marks Linda Raschke short-term bar setups on the price chart. It flags Turtle Soup and Turtle Soup plus one false breakouts of a prior extreme, 80-20 bars, inside bars, failed inside-bar breakouts, outside up and down bars, NR4 and NR7 c

Indicator v6 Candlestick patternsBreakout Repaints
Updated 3 months ago · None stated GitHub repository of Raschke Patterns

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