A price-chart indicator that tracks market structure at two swing scales, internal and external, with an EMA trend ribbon and optional structure-shift arrows.
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
A dashboard lists modules such as trend strength, swing direction, internal and external structure, pullback quality, momentum score, market phase, trend health, volatility percentile and overall bias with confidence. Each module can be switched off. Dashboard position, size and theme are adjustable, and alert levels can be set for trend strength and confidence.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Internal Swing Length
int
5
iSwingLen
External Swing Length
int
15
eSwingLen
EMA Length
int
50
emaLen
ATR Length
int
14
atrLen
Momentum Length
int
14
momLen
Volatility Percentile Lookback
int
100
volLookbk
Trend Strength Alert Level
int
70
tsAlertLvl
Confidence Alert Level
int
80
cfAlertLvl
Show Dashboard
bool
true
showDash
Position
string
Middle Right
dashPosIn
Size
string
Normal
dashSizeIn
Theme
string
Dark
themeIn
Show all 29 settings
Setting
Type
Default
Variable
Trend Strength
bool
true
showTS
Swing Direction
bool
true
showSD
Internal Structure
bool
true
showIS
External Structure
bool
true
showES
Pullback Quality
bool
true
showPB
Momentum Score
bool
true
showMO
Market Phase
bool
true
showPH
Trend Health
bool
true
showTH
Volatility
bool
true
showVL
Bias & Confidence
bool
true
showBI
Trend Ribbon
bool
true
showRibbon
Structure Shift Arrows
bool
false
showArrows
Bullish
color
color.new(#00c853, 0)
colBull
Bearish
color
color.new(#ff1744, 0)
colBear
Warning
color
color.new(#ff9100, 0)
colWarn
Info
color
color.new(#2979ff, 0)
colInfo
Neutral
color
color.new(#9e9e9e, 0)
colNeut
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.
Apex Trend & Liquidity Master calculates a trend cloud using customizable moving averages expanded by a volatility multiplier directly on the main price chart. It identifies dynamic support and resistance liquidity zones from swing high and low pivots, extendi
The Confluence Suite indicator draws multiple trading signals and tools directly on the price chart. It generates entry and exit signals based on selected modes and filters, with an AI signal classifier rating quality from 1-4. Additional features include smar
Market State Engine classifies the current market into nine states including balance, compression, bull and bear expansion, pullback, exhaustion, and transition. It computes orthogonal axes for structural regime, energy phase, value location relative to adapti
This indicator analyzes market structure and identifies key swing highs, swing lows, and consolidation ranges across multiple timeframes. It automatically adapts swing lengths and consolidation thresholds according to chosen profiles for scalping, intraday, or
This indicator overlays a market structure dashboard on the price chart. It reads up to seven user-selected timeframes, each with an on/off switch and a trend weight, and shows columns for EMA trend, swing highs and lows, structure, order blocks, and fair valu
This indicator plots Smart Money Concepts (SMC) elements directly on the price chart, including higher-timeframe structure breaks, order blocks, and fair value gaps (FVGs). It uses an inducement filter to validate market structure shifts alongside expected hig