Strategy · Pine Script v6 · On the chart

Kell + Minervini VCP Backtest

by mirkothepirko

Implements a strategy combining Oliver Kell's Cycle of Price Action with Mark Minervini's Volatility Contraction Pattern (VCP).

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code270
Settings18inputs
LicenceCustom licence
Last update3 months ago10 Jul 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

Kell + Minervini VCP Backtest identifies breakout setups such as wedge pops and EMA crossbacks aligned with EMA 10/20/50/200 and an optional Minervini Trend Template. Long entries trigger when price contracts in ATR and expands on above-average volume. Exits execute via an initial stop 3% below the 10 EMA (with an 8% hard stop cap), a 20% take profit target, or trailing wedge-drop and EMA 50 breaks.

Details

Published by

mirkothepirko on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Trend, Breakout, Moving averages, Volatility & bands

Markets

Stocks

Timeframes

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
EMA 10 (Kell Primär)int10ema10_len
EMA 20 (Kell Primär)int20ema20_len
EMA 50 (Trend/Trail)int50ema50_len
EMA 200 (Langfrist)int200ema200_len
Minervini Trend Template (SMA 50/150/200)booltrueuse_tt
Volumen Avg (Bars) — Minervini: 50 Tageint50vol_len
Ausbruch-Volumen Multiplikator (140%+)float1.4vol_mult
ATR Kontraktion Schwellefloat0.7atr_ratio
RSI Längeint14rsi_len
RSI Exhaustion Schwelleint78rsi_ext_min
Stop Loss % unter EMA10 (Kell: below 10 EMA)float3.0stop_pct
Max Verlust % — Hard Stop (O'Neil)float8.0max_loss
Show all 18 settings
SettingTypeDefaultVariable
Profit Ziel % (Minervini: 1. Take-Profit 20%)float20.0profit_pct
Start Jahrint2022from_year
Start Monatint1from_month
Start Tagint1from_day
Hintergrundfarbenbooltrueshow_bg
Info-Tabellebooltrueshow_table
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

106 stars

This strategy runs on the price chart and enters long when a fast simple moving average crosses above a slow one, and short on the opposite cross, while closing the other side. Entries also need ATR above a filter, a pullback check, a minimum candle-body chang

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 9:22 5 MIN 15 MIN BANKNIFTY

均线突破交易系统

by tangly1024
76 stars

This strategy trades long breakouts of a fast and a slow moving average on the price chart. It opens a long position when price crosses above either average, using a percentage of equity as size. It reduces the position by a set share when the high reaches the

Strategy v5 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of 均线突破交易系统
16 stars

This strategy plots Donchian channels, trailing stops, and profit targets directly on the price chart. It enters breakout trades using a 55-bar Donchian channel and sizes positions according to an ATR-based risk percentage per unit. The system adds units as pr

Strategy v6 TrendBreakout
Updated 11 months ago · None stated GitHub repository of Seykota Alt 10: Profit Targets
4 stars

This strategy executes trend-following trades based on Bollinger Band breakouts confirmed by a long-term moving average filter. A long position opens when the price crosses above the upper Bollinger Band, provided the band spread meets a minimum threshold and

Strategy v5 Volatility & bandsTrend
Updated 2 years ago · None stated GitHub repository of Bollinger Trend - Strategy V1
4 stars

The Keltner Channel Strategy is a breakout system plotted directly on the main price chart. It calculates upper and lower channel bands around an exponential or simple moving average using ATR, True Range, or bar range multiplied by a specified factor. A long

Strategy v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Keltner Channel 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