1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Require Full TPR (7/7) for Entry
bool
true
req_tpr
Require VCP Squeeze for Entry
bool
false
req_vcp
Require Volume Surge on Breakout
bool
true
req_vol_surge
Volume Surge Multiplier
float
1.3
vol_mult
[v7] Breakout Buffer % Above Line
float
0.3
bo_buffer_pct
[v7] Use ATR-Based Stop Loss
bool
true
use_atr_stop
[v7] ATR Stop Multiplier
float
2.0
atr_sl_mult
Fallback Hard Stop Loss %
float
5.0
sl_pct
Take Partial Profit (Sell 50% at TP1)
bool
true
use_partial_tp
TP1 Target %
float
5.0
partial_tp_pct
[v7] Runner Limit at TP2
bool
true
use_partial_tp2
[v7] TP2 Target %
float
10.0
partial_tp2_pct
Show all 40 settings
Setting
Type
Default
Variable
Move Stop to Break-Even
bool
true
use_breakeven
Break-Even Trigger %
float
4.0
be_trigger_pct
Use 21-EMA Trailing Stop for Runner
bool
true
use_trail
Activate Trail After % Profit
float
3.0
trail_activation
[KLSE] Min Base Duration (Bars)
int
20
min_base_bars
[v7] Require Min VCP Contractions
bool
true
req_contractions
[v7] Min Contractions in Base
int
2
min_contractions
[KLSE] Min Stock Price (RM)
float
0.50
min_price_rm
[KLSE] Min Avg Daily Volume (shares)
int
200000
min_avg_vol
Require Banker for Entry
bool
false
use_mcdx_entry
Min Banker % for Entry
float
0.0
mcdx_entry_val
Smart Exit: Sell if Banker Drops
bool
false
use_mcdx_exit
Exit Danger Threshold %
float
0.0
mcdx_exit_val
[v7] Require Bull Market (FBM KLCI > 200 SMA)
bool
true
use_mkt_regime
[v7] Require Stock Outperforms FBM KLCI
bool
true
use_rs_filter
[v7] RS Lookback Period (Bars)
int
63
rs_period
[KLSE] Benchmark Symbol (FBM KLCI)
symbol
MYX:FBMKLCI
bm_sym
21 EMA Length
int
21
len_ema21
50 SMA Length
int
50
len_sma50
150 SMA Length
int
150
len_sma150
200 SMA Length
int
200
len_sma200
21 EMA Color
color
color.new(color.yellow, 50)
c_ema21
50 SMA Color
color
color.blue
c_sma50
150 SMA Color
color
color.orange
c_sma150
200 SMA Color
color
color.red
c_sma200
Table Position
string
Top Left
table_pos_input
Table Size
string
Small
table_size_input
Dashboard: TPR Condition Breakdown (C1–C7)
bool
false
show_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.
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
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
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
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
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
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