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
Each score is weighted by a rolling record of that approach's recent agreement with price, and the weighted total must pass an adaptive threshold, a minimum number of agreeing approaches and a gap since the last signal before a buy or sell arrow is drawn. It also labels candlestick and chart patterns, flags volume regime shifts and offers a dashboard table on the price chart.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
RSI Length
int
9
rsi_len
Overbought Level
int
70
rsi_ob
Oversold Level
int
30
rsi_os
Mid-Range Multiplier
float
0.45
rsi_mid_mul
RSI Base Weight
float
0.15
rsi_w_init
Volume MA Length
int
10
vol_len
Spike Multiplier
float
1.5
vol_spike_mul
Volume Base Weight
float
0.12
vol_w_init
VWAP Deviation Band
float
1.0
vwap_dev_mul
Enable Momentum Override
bool
true
vwap_mom_flip
VWAP Base Weight
float
0.12
vwap_w_init
Fast EMA
int
9
ema_fast_len
Show all 40 settings
Setting
Type
Default
Variable
Slow EMA
int
21
ema_slow_len
EMA Base Weight
float
0.14
ema_w_init
MACD Fast Length
int
12
macd_fast
MACD Slow Length
int
26
macd_slow
MACD Signal Length
int
9
macd_signal
MACD Base Weight
float
0.15
macd_w_init
BB Length
int
20
bb_len
BB Std Dev Multiplier
float
2.0
bb_mult
BB Base Weight
float
0.14
bb_w_init
Enable Volume Intelligence
bool
true
vi_enabled
Use Footprint Data (Premium)
bool
true
vi_use_fp
Footprint Ticks Per Row
int
100
vi_ticks
Value Area %
int
70
vi_va_pct
Delta Smoothing Length
int
14
vi_delta_len
Cum. Delta Lookback
int
20
vi_cd_len
Regime Detection Length
int
10
vi_regime_len
Delta Z-Score Threshold
float
1.5
vi_zscore_th
VolIntel Base Weight
float
0.18
vi_w_init
Show Regime Shift Labels
bool
true
vi_show_labels
Accuracy Lookback (bars)
int
20
ml_lookback
Learning Rate
float
0.06
ml_learn_rate
Outcome Check (bars later)
int
3
ml_outcome_bars
Enable ML Weight Adaptation
bool
true
ml_enabled
Signal Threshold (0–1)
float
0.38
sig_threshold
Min Bars Between Signals
int
7
sig_min_gap
Min Strategies Agreeing
int
4
sig_min_agree
Adaptive Threshold (volatility)
bool
true
sig_adaptive
Show Dashboard
bool
false
show_dash
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.
Volume Weighted Distance applies statistical and machine learning distance metrics between source prices and their rolling mean, weighted by volume, to identify local trend reversals. Users can select from Manhattan, Euclidean, Mahalanobis, Cosine Similarity,
This overlay indicator classifies candlestick shapes using body, wick, and range sizes, then filters them with volume, RSI, MACD, and exponential moving averages. A hammer needs a long lower wick, a small bearish body, RSI below 30, and elevated prior volume.
Overlay indicator that classifies candles into seven families: momentum blast, range expansion, gap and go, trend accelerant, trapdoor reversal, exhaustion spike and gap and recover. Each family uses ATR multiples, body-to-range ratios and volume against its a
This indicator uses a two-dimensional k-nearest-neighbours model on scaled oscillator values to classify the current bar as buy, sell, or hold from similar historical states. Users select RSI, ROC, CCI, momentum, or all of them, and set the neighbour count, fa
The ML Decision Tree Classifier uses rule-based decision tree logic to evaluate trend, momentum, volume, and MACD indicators for market direction classification. It calculates exponential moving averages, relative strength index values, volume relative to a mo
This indicator measures directional momentum by evaluating candlestick body proportions and volume over a user-defined lookback window. It computes the ratio of candle body to total range, weights the cumulative value by volume and absolute body size, and dete