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 script identifies flip conditions when the fastest line crosses through the slower line bundle, filtered by a configurable volume moving average ratio and margin threshold. Users can select preconfigured speed presets or define custom lengths, and optionally require trend or stack confirmation. Because the bar close filter is disabled by default, it repaints on the live bar.
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
bool
true
useVolFilter
Min Volume Ratio
float
1.4
minVolRatio
Volume SMA Length
int
20
volSmaLen
USI Margin
float
1.0
margin
Show all 18 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
Show BUY labels
bool
true
showBuy
Show SHORT labels
bool
true
showShort
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 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 overlay generates buy and sell signals based on Aroon extreme levels combined with optional volume or volatility filters. It calculates Aroon Up and Aroon Down lines using localized high and low lookbacks, generating trade entries when Aroon rea
This indicator plots a volume-weighted average price of the typical price on the chart and colors that line by ADX strength. It draws a standard-deviation envelope around VWAP and tints the fill green when plus DI leads and red when minus DI leads. Triangle ma
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