Strategy · Pine Script v6 · On the chart

Minervini VCP + SmartMCDX US

by kevinesk

This strategy identifies Volatility Contraction Patterns in US stocks using breakout confirmation with volume surge filters.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code549
Settings40inputs
LicenceNone stated
Last update4 months ago12 Jun 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

Minervini VCP + SmartMCDX US enters on pattern completion when required conditions such as full TPR or VCP squeeze are met and exits via partial profit targets at 5% and 10%, ATR-based stops, breakeven moves, and optional trailing stops. Settings control entry requirements, volume multipliers, buffer percentages, and risk parameters like stop loss and position sizing. It draws trend lines, base patterns, and signals directly on the price chart for US equity trading.

Details

Published by

kevinesk on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Volatility & bands, Volume, Breakout, SMC / ICT / price action

Markets

Stocks

Timeframes

Any timeframe

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
Require Full TPR (7/7) for Entrybooltruereq_tpr
Require VCP Squeeze for Entryboolfalsereq_vcp
Require Volume Surge on Breakoutbooltruereq_vol_surge
Volume Surge Multiplierfloat1.5vol_mult
Breakout Buffer % Above Linefloat0.3bo_buffer_pct
Use ATR-Based Stop Lossbooltrueuse_atr_stop
ATR Stop Multiplierfloat2.0atr_sl_mult
Fallback Hard Stop Loss %float4.5sl_pct
Take Partial Profit (Sell 50% at TP1)booltrueuse_partial_tp
TP1 Target %float5.0partial_tp_pct
Runner Limit at TP2booltrueuse_partial_tp2
TP2 Target %float10.0partial_tp2_pct
Show all 40 settings
SettingTypeDefaultVariable
Move Stop to Break-Evenbooltrueuse_breakeven
Break-Even Trigger %float4.0be_trigger_pct
Use 21-EMA Trailing Stop for Runnerbooltrueuse_trail
Activate Trail After % Profitfloat3.0trail_activation
Min Base Duration (Bars)int15min_base_bars
Require Min VCP Contractionsbooltruereq_contractions
Min Contractions in Baseint2min_contractions
Min Stock Price ($)float5.0min_price_usd
Min Avg Daily Volume (shares)int500000min_avg_vol
Require Banker for Entryboolfalseuse_mcdx_entry
Min Banker % for Entryfloat0.0mcdx_entry_val
Smart Exit: Sell if Banker Dropsboolfalseuse_mcdx_exit
Exit Danger Threshold %float0.0mcdx_exit_val
Require Bull Market (SPY > 200 SMA)booltrueuse_mkt_regime
Require Stock Outperforms SPYbooltrueuse_rs_filter
RS Lookback Period (Bars)int63rs_period
Benchmark Symbol (S&P 500 ETF)symbolAMEX:SPYbm_sym
21 EMA Lengthint21len_ema21
50 SMA Lengthint50len_sma50
150 SMA Lengthint150len_sma150
200 SMA Lengthint200len_sma200
21 EMA Colorcolorcolor.new(color.yellow, 50)c_ema21
50 SMA Colorcolorcolor.bluec_sma50
150 SMA Colorcolorcolor.orangec_sma150
200 SMA Colorcolorcolor.redc_sma200
Table PositionstringTop Lefttable_pos_input
Table SizestringSmalltable_size_input
Dashboard: TPR Condition Breakdown (C1-C7)boolfalseshow_tpr_detail
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

BB and KC Strategy

by hasnocool
106 stars

This strategy identifies breakout momentum by combining Bollinger Bands and Keltner Channels with volume confirmation. It opens long positions when the upper Keltner Channel crosses above the upper Bollinger Band and volume exceeds its moving average. Converse

Strategy v5 Volatility & bandsBreakout
Updated 2 years ago · GPL-3.0 GitHub repository of BB and KC Strategy
105 stars

This overlay strategy looks for gold scalps from break of structure and change of character. It enters long when a bullish break, a bullish character change, and an optional volume filter align, and short on the opposite set. Optional RSI levels can block trad

Strategy v6 SMC / ICT / price actionOscillators & momentum Repaints

VOL/BBW/RSI/15 Strategy

by SammyEnigma
18 stars

This strategy overlays Bollinger Bands on the price chart and trades a long squeeze setup. It enters long when band width is below 0.022 and volume is at least the seven-bar average, using a stop order at the lower band. It places a short order when close cros

Strategy v4 Volatility & bandsVolume
Updated 6 years ago · None stated GitHub repository of VOL/BBW/RSI/15 Strategy

BB Squeeze Breakout

by muammeryldrm42
7 stars

BB Squeeze Breakout is a volatility breakout strategy that identifies consolidation squeezes using Bollinger Band width percentile ranking. When the band width drops below its 25th percentile and price crosses above or below the bands with optional volume conf

Strategy v5 Volatility & bandsBreakout
Updated 3 months ago · MIT GitHub repository of BB Squeeze Breakout

ICT ORB Strategy

by alboogycOdR
6 stars

This strategy backtests opening-range breakouts on the price chart for New York, London, Asia, or a custom session. Simple mode follows the opening-range direction when relative volume is high enough. ICT mode can require a fair value gap, displacement, and an

Strategy v5 BreakoutSMC / ICT / price action Repaints
Updated 7 months ago · None stated GitHub repository of ICT ORB Strategy

Bollinger Squeeze STEPFUN

by eltonaguiar
4 stars

This strategy detects Bollinger Band squeezes by measuring band width against a threshold. It waits for a confirmed breakout in either direction when bands expand, using optional volume confirmation. Long and short signals trigger on breakout after squeeze. Po

Strategy v5 Volatility & bandsBreakout
Updated today · None stated GitHub repository of Bollinger Squeeze STEPFUN

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