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
KY SMC Indicator marks internal and swing market structure, optional short, intermediate, and long-term swing points, and strong or weak highs and lows. It can draw internal and swing order blocks, filtered by ATR, and optionally colors candles to reflect the structure trend. Settings switch between historical and present structure, label sizes, bullish and bearish visibility, and how many order blocks remain on the chart. The code is flagged for lookahead. It does not place trades or manage exits.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
mode
string
Historical
mode
Enable market structure
bool
false
mt_structure
Show Short Term Swing Points
bool
true
_showST
Show Intermediate Term Swing Points
bool
true
_showIT
Show Long Term Swing Points
bool
true
_showLT
style
string
Colored
style
Color Candles
bool
false
show_trend
Show Internal Structure
bool
true
show_internals
Swing Length
int
5
swing_length
Bullish Structure
string
All
show_ibull
swing_ibull_css
color
#089981
swing_ibull_css
Bearish Structure
string
All
show_ibear
Show all 40 settings
Setting
Type
Default
Variable
swing_ibear_css
color
#f23645
swing_ibear_css
Confluence Filter
bool
false
ifilter_confluence
Internal Label Size
string
Tiny
internal_structure_size
Show Swing Structure
bool
true
show_Structure
Bullish Structure
string
All
show_bull
swing_bull_css
color
#089981
swing_bull_css
Bearish Structure
string
All
show_bear
swing_bear_css
color
#f23645
swing_bear_css
Swing Label Size
string
Small
swing_structure_size
Show Swings Points
bool
false
show_swings
length
int
50
length
Show Strong/Weak High/Low
bool
true
show_hl_swings
Internal Order Blocks
bool
true
show_iob
iob_showlast
int
5
iob_showlast
Swing Order Blocks
bool
false
show_ob
ob_showlast
int
5
ob_showlast
Order Block Filter
string
Atr
ob_filter
Internal Bullish OB
color
color.new(#3179f5, 80)
ibull_ob_css
Internal Bearish OB
color
color.new(#f77c80, 80)
ibear_ob_css
Bullish OB
color
color.new(#1848cc, 80)
bull_ob_css
Bearish OB
color
color.new(#b22833, 80)
bear_ob_css
Equal High/Low
bool
true
show_eq
Bars Confirmation
int
3
eq_len
Threshold
float
0.1
eq_threshold
Label Size
string
Tiny
eq_size
Fair Value Gaps
bool
false
show_fvg
Auto Threshold
bool
true
fvg_auto
Timeframe
timeframe
fvg_tf
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 finds pivot highs and lows on the price chart and compares the last two highs and the last two lows. When the percentage difference between a pair is below the Equal HL threshold, it treats them as equal levels and draws a box. Left and
This indicator plots labels on the TradingView price chart to mark ARK Invest's buy and sell trades for the DE stock. Buy transactions appear in green with X1 or X2 multipliers showing the number of ARK ETFs involved on the same day; sells appear in red. The m
This Pine Script indicator plots a ZigZag on the price chart. It identifies reversal points when price moves more than a set percentage from the last pivot. The script calculates forecasts using zigzag data and labels detected geometric patterns including harm
The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh
Indicatorv6SMC / ICT / price actionSessions & time
This indicator implements the Fractal Model concept to plot market structure shifts, liquidity sweeps, and Change in State of Delivery (CISD) levels. It overlays custom higher-timeframe candle previews, open prices, and time markers directly on the price chart
This indicator calculates pivot highs and pivot lows to detect liquidity sweeps and Swing Failure Patterns. It identifies when price breaks past recent key swing highs or lows within a configurable historical window, then looks for a quick reversal or change i