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
ML KNN Predictor V2 Enhanced evaluates price position, trend, RSI, volatility, Fair Value Gaps, Support and Resistance levels, and volume to identify similar historical pattern matches. The indicator projects price direction over a customizable prediction horizon, displays target lines and Fair Value Gap boxes on the price chart, and shows real-time predictions with confidence scores in an on-screen dashboard panel.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Historical Lookback Bars
int
100
lookback_bars
K Nearest Neighbors
int
12
k_neighbors
Predict N Bars Ahead
int
10
prediction_horizon
Enable FVG Detection
bool
true
fvg_enabled
Min FVG Size %
float
0.1
fvg_min_size
FVG Lookback
int
50
fvg_lookback
Show FVG Boxes
bool
true
show_fvg_boxes
Enable S/R Detection
bool
true
sr_enabled
Swing Length
int
5
sr_swing_length
Max S/R Levels
int
5
sr_max_levels
Show S/R Lines
bool
true
show_sr_lines
Enable Volume Analysis
bool
true
vol_enabled
Show all 26 settings
Setting
Type
Default
Variable
Volume SMA Period
int
20
vol_period
High Volume Threshold
float
1.5
vol_threshold
Price Position Weight
float
0.12
weight_price
Trend Weight
float
0.12
weight_trend
RSI Weight
float
0.08
weight_rsi
Volatility Weight
float
0.08
weight_volatility
FVG Weight
float
0.20
weight_fvg
S/R Weight
float
0.15
weight_sr
Volume Weight
float
0.15
weight_volume
Show Prediction Panel
bool
true
show_prediction_panel
Panel Position
string
Top Right
panel_position
Show Target Line
bool
true
show_target_line
Show Buy/Sell Signals
bool
true
show_signals
Min Confidence for Signals (%)
int
60
min_confidence
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.
The AI Dynamic Liquidity Engine indicator detects swing highs and lows on the price chart to identify potential liquidity zones. It tracks swing points in arrays and validates each zone by counting proximity tests based on recent price action. When a zone reac
This overlay indicator scans a pasted list of symbols for ICT liquidity sweep patterns using prior swing sweeps. The screening method looks back one, two, or three swings and can list long and short signals in a results table with adjustable rows, position, an
The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh
Indicatorv6SMC / ICT / price actionSessions & time
This indicator identifies fractal-based pivot highs and lows to map out market structure directly on the price chart. It detects bullish and bearish structure breaks, automatically labeling Break of Structure (BOS) and Change of Character (ChoCH) events when p
Apex Trend & Liquidity Master calculates a trend cloud using customizable moving averages expanded by a volatility multiplier directly on the main price chart. It identifies dynamic support and resistance liquidity zones from swing high and low pivots, extendi
The CISD with Fib/Range Extensions and Stats indicator tracks Change in State of Delivery (CISD) level breakouts on the price chart. It detects pullback structures filtered by ATR and volume conditions, then projects future target levels using customizable Fib