Strategy · Pine Script v6 · On the chart

Minervini VCP + SmartMCDX KLSE v8

by kevinesk

This strategy identifies Minervini Volume Confirmation Patterns fused with Smart Money Concepts for Bursa Malaysia stocks.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code586
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 KLSE v8 plots entry and exit signals with trend lines, boxes and labels directly on the price chart. The strategy enters long positions when volume surge on breakout aligns with optional VCP squeeze or full TPR requirements. It exits using partial profits at TP1 and TP2, moves to breakeven after target, and applies ATR-based or 21 EMA trailing stops. Main settings toggle entry conditions, adjust risk parameters such as stop multipliers and profit targets, and apply KLSE filters for minimum price and average volume. All pattern detection and signals appear on the main price chart. It supports pyramiding with no default stop loss when disabled.

Details

Published by

kevinesk on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

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

Markets

Stocks

Timeframes

M15-H1

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.3vol_mult
[v7] Breakout Buffer % Above Linefloat0.3bo_buffer_pct
[v7] Use ATR-Based Stop Lossbooltrueuse_atr_stop
[v7] ATR Stop Multiplierfloat2.0atr_sl_mult
Fallback Hard Stop Loss %float5.0sl_pct
Take Partial Profit (Sell 50% at TP1)booltrueuse_partial_tp
TP1 Target %float5.0partial_tp_pct
[v7] Runner Limit at TP2booltrueuse_partial_tp2
[v7] 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
[KLSE] Min Base Duration (Bars)int20min_base_bars
[v7] Require Min VCP Contractionsbooltruereq_contractions
[v7] Min Contractions in Baseint2min_contractions
[KLSE] Min Stock Price (RM)float0.50min_price_rm
[KLSE] Min Avg Daily Volume (shares)int200000min_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
[v7] Require Bull Market (FBM KLCI > 200 SMA)booltrueuse_mkt_regime
[v7] Require Stock Outperforms FBM KLCIbooltrueuse_rs_filter
[v7] RS Lookback Period (Bars)int63rs_period
[KLSE] Benchmark Symbol (FBM KLCI)symbolMYX:FBMKLCIbm_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