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
Signals can be filtered by a FRAMA trend channel, a choppiness index, an ATR percentage range and, new in this version, an optional Hurst exponent filter with per-timeframe windows and a trending-only mode. It also offers higher-timeframe bias, fake breakout and liquidity sweep checks, a volatility regime label, partial take profit and adaptive leverage hints, and a signal cooldown.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Enable A Signals (Andean + MFI)
bool
true
enable_a
Enable U Signals (UT Bot)
bool
true
enable_u
Use FRAMA Filter
bool
true
use_frama_filter
Use CHOP Filter
bool
true
use_chop
Use ATR Filter
bool
true
use_atr_f
ATR Period
int
14
atr_period
Min ATR %
float
0.3
atr_min
Max ATR %
float
4.5
atr_max
Use Hurst Filter
bool
false
use_hurst
Hurst Window (1h chart)
int
29
hurst_window_1h
Hurst Window (4h chart)
int
23
hurst_window_4h
Hurst Window (Other TF)
int
23
hurst_window_other
Show all 40 settings
Setting
Type
Default
Variable
Hurst Min Deviation from 0.5
float
0.12
hurst_min_dev
Hurst Mode
string
Trending Only
hurst_mode
Show Hurst Debug Label
bool
false
show_hurst_label
HTF Bias TF
timeframe
D
htf
Signal Cooldown
int
2
cooldown_bars
AI Volatility Regime
bool
true
enable_ai_regime
Fake Breakout Filter
bool
true
enable_fake_break
Liquidity Sweep Filter
bool
true
enable_liq_sweep
Smart Partial TP
bool
true
enable_partial_tp
Enable HTF Bias
bool
true
enable_mtf_bias
Adaptive Leverage
bool
true
enable_adaptive_lev
MFI Length
int
8
mfi_len
AI Training Size
int
800
mfi_training
Andean Length
int
23
and_len
Andean Signal Smoothing
int
6
and_sig_len
Confirmation Window
int
3
lookback
Key Value (Sensitivity)
float
1.0
ut_a
ATR Period
int
10
ut_c
Heikin Ashi Candles
bool
false
ut_h
FRAMA Period (Even value)
int
22
frama_len
Channel Multiplier
float
2.1
frama_mult
Show FRAMA Lines
bool
true
show_frama
FRAMA Up Color
color
color.rgb(0, 255, 120)
f_up_col
FRAMA Down Color
color
color.rgb(255, 50, 50)
f_dn_col
CHOP Length
int
14
chop_length
CHOP Threshold
float
61.8
chop_threshold
Show CHOP Background
bool
true
show_chop_bg
Max Leverage (Limit)
int
10
max_allowed_lev
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 an oscillator in a separate pane. It builds several SuperTrend series across a user-defined factor range and step, using ATR as the band width. On each bar it measures the distance between the close and each SuperTrend output, then groups
The Momentum Setup is a multi-indicator visual tool designed for trend and momentum analysis directly on the price chart. It combines Relative Strength Index (RSI), Money Flow Index (MFI), Commodity Channel Index (CCI), Supertrend, and a 250-bar percentage cha
This indicator uses a Lorentzian distance k-nearest neighbors classification algorithm to predict market direction based on up to five technical features, such as RSI, WaveTrend, CCI, and ADX. It compares current feature values against historical bar patterns
ADX Strategy (original) is an overlay indicator that identifies trend-following trade signals using the Average Directional Index (ADX) combined with a Simple Moving Average filter. A long signal is generated when the ADX rises above a user-defined trend level
Moon Dev Lunar Sniper is a multi-indicator overlay that scores confluence across fast and slow EMAs, RSI, MACD, DMI, and BB width to fire signals only when score meets the minimum threshold. It plots buy and sell signals on the price chart, highlights cosmic b
An overlay indicator that applies a k-nearest-neighbors machine learning classifier using Lorentzian distance to predict price movement. It evaluates historical market features, such as RSI, WaveTrend, CCI, and ADX, to identify similar price-time patterns and