This Pine Script indicator detects and plots price action concepts on the chart, including swing highs and lows, internal market structures, break of structure (BOS), change of character (CHoCH), and EQH/EQL levels.
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 Concepts + Signals & Overlays signals trend shifts with colored BOS and CHoCH markers and optional order blocks showing last five instances plus metrics. The script draws elements directly on the price chart, with settings for MTF scanner directional bias, bar and candle coloring based on structure, and custom levels from daily to yearly. Main inputs adjust lookback periods for swings and internals, structure modes, and display toggles for structures, EQH/EQL, candles, and bar colors. It overlays all features on the main price chart.
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.
This overlay indicator detects tweezer tops and bottoms and kangaroo-tail pin bars, then draws supply and demand zones from those patterns. It scores each zone, decays freshness, merges overlapping zones, and can invalidate a zone after a close-through or afte
This indicator plots Smart Money Concepts and price action components directly on the price chart. It highlights bullish and bearish order blocks, multi-timeframe pivot points, market structure swings with key Fibonacci retracement levels (0.618 and 0.786), zo
This Pine Script indicator plots Smart Money Concepts market structure directly on the price chart. It identifies swing highs and lows, internal market structures, Break of Structure events, Change of Character shifts, and EQH/EQL levels. Breaker blocs are hig
The Price Action Toolkit is an indicator that combines several price action tools on the chart. It calculates the ATR with user-defined length and shows it in a table. It plots multiple Kaufman Adaptive Moving Averages (KAMA) with different lengths and sources
This indicator plots Smart Money Concepts elements on the price chart including internal and swing order blocks, bullish and bearish structures with BOS and CHoCH breaks, fair value gaps, equal highs and lows, and swing points. It can color candles according t
This indicator plots ZigZag lines connecting swing highs and lows to map price structure. It draws candle body and shadow boxes on the price chart and detects CHoCH for potential trend shifts and BOS for continuation signals. The main setting toggles candle di