Price Action Market Structure Sweeps identifies swing and internal market structure events, including Break of Structure (BOS) and Change of Character (CHoCH).
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
Price Action Market Structure Sweeps overlays key high and low levels across daily, weekly, monthly, and yearly timeframes, while marking equal highs and lows (EQH/EQL) for liquidity sweeps. The script also plots dynamic order blocks with internal buy and sell volume metrics and displays a multi-timeframe trend scanner dashboard directly on the main price chart.
Swing and internal BOS and CHoCH structure detection
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Swing
string
All
show_swing_ms
Internal
string
All
show_internal_ms
internal_r_lookback
int
5
internal_r_lookback
swing_r_lookback
int
50
swing_r_lookback
Market Structure Mode
string
Manual
ms_mode
MTF Scanner
bool
true
show_mtf_str
Show EQH/EQL
bool
false
show_eql
Plotcandle
bool
false
plotcandle_bool
Bar Color
bool
false
barcolor_bool
i_ms_up_BOS
color
#089981
i_ms_up_BOS
i_ms_dn_BOS
color
#f23645
i_ms_dn_BOS
s_ms_up_BOS
color
#089981
s_ms_up_BOS
Show all 40 settings
Setting
Type
Default
Variable
s_ms_dn_BOS
color
#f23645
s_ms_dn_BOS
Day
bool
false
lvl_daily
Week
bool
false
lvl_weekly
Month
bool
false
lvl_monthly
Year
bool
false
lvl_yearly
css_d
color
color.blue
css_d
css_w
color
color.blue
css_w
css_m
color
color.blue
css_m
css_y
color
color.blue
css_y
s_d
string
⎯⎯⎯
s_d
s_w
string
⎯⎯⎯
s_w
s_m
string
⎯⎯⎯
s_m
s_y
string
⎯⎯⎯
s_y
Show Last
bool
true
ob_show
ob_num
int
5
ob_num
Internal Buy/Sell Activity
bool
true
ob_metrics_show
color
color.new(#089981, 50)
css_metric_up
css_metric_dn
color
color.new(#f23645 , 50)
css_metric_dn
Swing Order Blocks
bool
false
ob_swings
color
color.new(color.gray , 90)
css_swing_up
css_swing_dn
color
color.new(color.silver, 90)
css_swing_dn
Filtering
string
None
ob_filter
Mitigation
string
Absolute
ob_mitigation
Positioning
string
Precise
ob_pos
Grayscale
bool
false
use_grayscale
Show Metrics
bool
true
use_show_metric
Show Middle-Line
bool
true
use_middle_line
Hide Overlap
bool
true
use_overlap
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
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
Smart Krypto Futures Daytrade Suite is an all-in-one technical indicator tailored for intraday cryptocurrency trading. It plots higher-timeframe supply and demand zones, Fair Value Gaps with optional mitigation filtering, session VWAP, dynamic moving averages,
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
The Aetherium Institutional Market Resonance Engine is an overlay indicator that combines coherence analysis, institutional liquidity scanning, and cycle resonance to identify market setups. It measures directional market alignment, calculates volume spike clu