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 indicator, select all of the template text and paste. Press Save and give it a name.
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
Minervini VCP + SmartMCDX — Phase 2 Patterns plots O'Neil cheat entries after a minimum base and pullback with a short resumption, counts consecutive Ryan tight closes, and labels high tight flags and bull flags from bar and pullback limits. A table suggests share size from portfolio value, position caps, risk percent and stop distance, and flags prices extended beyond a breakout. Display toggles control the dashboard and each marker.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Min Base Duration for Cheat
int
15
oneil_min_base_bars
Cheat Trigger: Pullback Min %
float
8.0
oneil_pullback_pct
Bars to confirm cheat resumption
int
3
oneil_resume_bars
Tight close threshold (% from prior close)
float
1.0
ryan_tight_pct
Min consecutive tight closes
int
5
ryan_min_tight
HTF (High Tight Flag) max base bars
int
10
zng_htf_bars
HTF max pullback %
float
25.0
zng_htf_max_pull
Bull Flag bars
int
15
zng_flag_bars
Bull Flag max pullback %
float
15.0
zng_flag_pull
Portfolio Value (RM)
float
30000.0
portfolio_rm
Max Position %
float
10.0
max_pos_pct
Target Position %
float
7.0
tgt_pos_pct
Show all 19 settings
Setting
Type
Default
Variable
Risk per Trade %
float
1.0
risk_pct
Stop Distance %
float
5.0
stop_pct
FOMO if > N% above breakout
float
1.0
fomo_extend
Show v9 Dashboard
bool
true
show_table
Plot Cheat Entry markers
bool
true
show_cheat
Plot Tight Closure count
bool
true
show_tight
Plot Zanger pattern label
bool
true
show_zanger_lbl
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 indicator plots a four-pole Gaussian channel on the price chart. It filters close prices into a yellow midline and filters true range to place equal green and red bands. A long marker prints when price crosses above the upper band and the daily Bitcoin cl
This indicator adapts Michael Chalek's Dual Thrust trading concept to plot breakout levels and overlay bands directly on the price chart. It calculates lookback ranges based on historical price action and provides two algorithmic variations along with multiple
This indicator classifies the market into gamma regime types (negative gamma trend, positive gamma mean-reversion, or transition) by calculating a composite score based on daily ATR ratios, session VWAP crossover frequencies, and opening range displacement. It
This indicator uses a Hidden Markov Model (HMM) framework combined with an adaptive dual moving average engine and Directional Movement Index (DMI) features to identify market regimes (bullish, bearish, or ranging/chop). It calculates regime probabilities on e
This indicator calculates standardized trend strength and historical volatility to estimate position sizes. It computes the differences between three user-defined EMAs standardized by price using MACD logic, while historical volatility is derived from the stan
Ghost Channels fits dynamic parallel trend channels over a configurable lookback window using linear regression or pivot swing methods. It layers confirmation signals onto the channel geometry, detecting candlestick pattern reactions at the rails, volume-confi