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
USI Flip + REV-BUY marks USI flip long and short signals when the RSI lines stack, optional volume and bar-close filters pass, and optional stack or slow-trend confirmation is enabled. It also plots PRE-BUY proximity warnings, confirmed pullback-to-EMA bounce buys, and REV-BUY labels after a recent change of character. ATR distances set approach and touch tolerances. USI signals are not limited to closed bars by default.
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
USI Bar Close Only
bool
false
usiBarCloseOnly
USI Volume Filter
bool
true
usiUseVolFilter
USI Min Volume Ratio
float
1.4
usiMinVolRatio
USI Volume SMA Length
int
20
usiVolSmaLen
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
EMA Fast
int
21
emaFastLen
EMA Slow
int
55
emaSlowLen
Swing Left
int
2
swingL
Swing Right
int
1
swingR
Breakout Source
string
Wick
breakoutSource
Structure Logic
string
SMC+Sweep
structureLogic
ChoCH Mode
string
Ping+Verify
chochMode
REV-BUY: ChoCH recency bars
int
5
revRecencyBars
ATR Length
int
14
atrLen
PRE-BUY proximity ATR
float
0.25
preWarnDistATR
BUY touch tolerance ATR
float
0.12
touchTolATR
REV Volume Filter
bool
true
revUseVolFilter
REV Volume SMA Length
int
20
revVolLen
REV Volume Multiplier
float
1.2
revVolMult
REV RSI Filter
bool
true
revUseRsiFilter
RSI Length
int
14
revRsiLen
BUY / PRE-BUY min RSI
int
52
revRsiBuyMin
REV-BUY min RSI
int
48
revRsiRevMin
REV-BUY: require bullish liquidity sweep
bool
true
useSweepFilterForRev
REV signals only on confirmed bar
bool
false
revBarCloseOnly
Show USI BUY
bool
true
showUsiBuy
Show USI SHORT
bool
true
showUsiShort
Show PRE-BUY
bool
true
showPreBuy
Show BUY
bool
true
showBuy
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.
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
This overlay indicator marks call and put setups from EMAs, RSI, MACD, and a SPY volume ratio. A call needs higher highs, RSI above its minimum, rising MACD, above-average proxy volume, and a rising trend EMA; a put reverses those tests. Early markers use an E
LiqSpikeBounceLong Feb2026 is an indicator designed to identify long bounce entries following high-volume liquidation cascades in bearish market contexts. It checks if price is below an exponential moving average, then detects large single-bar drops exceeding
This indicator generates trend-following trade signals on the price chart by combining moving average crossovers with multi-factor filters. It triggers entry alerts when fast and slow EMAs cross in the direction of a baseline trend EMA, confirmed by non-extrem
This overlay indicator plots a SuperTrend using a 10-period ATR with a multiplier of 3, drawing up and down stop lines and a faint trend fill on the price chart. It compares a 9-period EMA with an 18-period EMA and a 12/26/9 MACD against its signal, and it req
Bte Acc is a chart indicator form of the PineCoders Backtesting and Trading Engine. It seeks an entry trigger from a main or alternate entry method, then checks trade direction, filters, date range, ATR readiness, and remaining capital before filling on the ne