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
The indicator overlays signals on the main chart, combining volume filter thresholds, OBV divergence analysis, anticipation proximity markers, and momentum pre-CHoCH alerts. Signal generation can be tailored using preset speed profiles ranging from fast to macro, alongside customizable volume ratios, hysteresis margins, and trend stack filters to highlight bullish and bearish setups.
Six-tier RSI speed presets ranging from fast to macro lookbacks
Market structure Change of Character CHoCH visual signals
Volume ratio filtering and OBV divergence detection
Anticipation proximity and momentum pre-CHoCH markers
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
USI Preset
string
Fast (7/6/4/3/2/1)
usiPreset
USI Length (L0 — slowest / Blue)
int
13
usiLen0_c
Length 1 of USI (L1 / Green)
int
11
usiLen1_c
Length 2 of USI (L2 / Yellow)
int
7
usiLen2_c
Length 3 of USI (L3 / Orange)
int
5
usiLen3_c
Length 4 of USI (L4)
int
4
usiLen4_c
Length 5 of USI (L5 — fastest / Red)
int
2
usiLen5_c
Bar Close Only
bool
false
barCloseOnly
Volume Filter (USI Flip)
bool
true
useVolFilterUsi
Min Volume Ratio
float
1.4
minVolRatio
Volume SMA Length
int
20
volSmaLen
USI Margin
float
1.0
margin
Show all 40 settings
Setting
Type
Default
Variable
Relaxed Flip (visual cycle)
bool
false
useFlipCycle
Flip Cycle Lookback (bars)
int
3
flipCycleBars
Require strong stack confirmation
bool
false
useStrongStack
Require slow trend confirmation
bool
false
useSlowTrendFilter
Enable Anticipation signals
bool
true
ms_useAnticipation
Proximity %
float
0.15
ms_proxPct
Show Anticipation markers
bool
true
ms_showAnticipation
Enable Momentum Pre-CHoCH
bool
true
ms_useMomentum
RSI Length
int
7
ms_rsiLen
RSI Divergence lookback
int
5
ms_rsiDivBars
Volume spike multiplier
float
1.5
ms_volMulti
Show Momentum Pre-CHoCH markers
bool
true
ms_showMomentum
Enable OBV Divergence
bool
true
obv_useObvDiv
OBV Divergence lookback
int
10
obv_divBars
OBV Smoothing (SMA)
int
5
obv_smaLen
Show OBV Divergence markers
bool
true
obv_showMarkers
Show BEST Bullish CHoCH
bool
true
showBestBullChoch
Show BEST Bearish CHoCH
bool
true
showBestBearChoch
Show Sweep/Reclaim dots
bool
false
showSweepDots
Show raw bullish CHoCH
bool
false
showRawChoch
Debug
bool
false
showDebug
Swing Left
int
2
swingL
Swing Right
int
1
swingR
Swing max age bars
int
100
swingMaxAge
Breakout Source
string
Wick
breakoutSource
ChoCH Mode
string
Ping+Verify
chochMode
Require sweep/reclaim for CHoCH ping
bool
true
requireSweepOrReclaim
Require volume for CHoCH
bool
true
useVolFilterChoch
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 overlay indicator looks for regular price divergences against a set of oscillators, using pivot highs and lows. It compares those pivots with RSI, MACD and its histogram, stochastic, CCI, momentum, OBV, a directional oscillator, volume-weighted MACD, Chai
This indicator detects regular and hidden divergences across multiple technical factors plotted directly on the price chart. It evaluates price highs and lows against peaks and troughs identified by a five-bar fractal mechanism on RSI, RSI Stochastic, MACD, re
This indicator marks RSI divergences only when price trades beyond daily VWAP standard-deviation bands. It compares recent RSI extremes with price highs and lows over a lookback window, and it treats a divergence as valid only while RSI stays beyond overbought
This indicator builds a momentum score from the rate of change of close, using a lookback that expands or contracts with ATR relative to its standard deviation. It divides that rate of change by price standard deviation, scales the result, and weights it by vo
Nexural QWAP calculates a volume-weighted average price combined with a cumulative volume delta order flow engine directly on the main price chart. It analyzes market structure by detecting volume absorption, liquidity sweeps, price-CVD divergence, stacked imb
Capital41 Confluence Core plots an EMA or SMA on the price chart and combines its direction with RSI, Williams %R, and a liquidity-sweep check into long and short confluence signals. Signal strictness is Strict, Standard, or Loose, which changes how far the os