by kavichelvan· code credited to Support and resistance
A chart overlay combining pivot-based support and resistance lines, five smoothed moving averages (10, 21, 50, 100 and 200), and a zigzag with order block and breaker block boxes.
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
Break labels appear when price crosses a pivot level with a volume-oscillator filter, and wick labels mark bull or bear wick breaks. Alerts exist for broken support and resistance. Pivot levels are confirmed only after the right-hand bars have formed, so they lag.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Show Breaks
bool
true
toggleBreaks
Left Bars
int
15
leftBars
Right Bars
int
15
rightBars
Volume Threshold
int
20
volumeThresh
SMMA 10
int
10
smma_10
SMMA 21
int
21
smma_21
SMMA 50
int
50
smma_50
SMMA 100
int
100
smma_100
SMMA 200
int
200
smma_200
Source
source
close
src
ZigZag Length
int
9
zigzag_len
Show Zigzag
bool
true
show_zigzag
Show all 27 settings
Setting
Type
Default
Variable
Fib Factor for breakout confirmation
float
0.33
fib_factor
Text Size
string
size.tiny
text_size
Delete Old/Broken Boxes
bool
true
delete_boxes
Color
color
color.new(color.green, 70)
bu_ob_color
Border Color
color
color.green
bu_ob_border_color
Text Color
color
color.green
bu_ob_text_color
Color
color
color.new(color.red, 70)
be_ob_color
Border Color
color
color.red
be_ob_border_color
Text Color
color
color.red
be_ob_text_color
Color
color
color.new(color.green, 70)
bu_bb_color
Border Color
color
color.green
bu_bb_border_color
Text Color
color
color.green
bu_bb_text_color
Color
color
color.new(color.red, 70)
be_bb_color
Border Color
color
color.red
be_bb_border_color
Text Color
color
color.red
be_bb_text_color
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 indicator detects break of structure from confirmed pivot highs and lows and groups the bars between state changes into clusters. It plots blue and orange boxes and polylines of normalized closes in a separate pane, with optional moving averages on those
This indicator tracks smart money market structure directly on the price chart. It calculates dual-period swing highs and swing lows to detect Changes of Character (CHoCH), Breaks of Structure (BOS), inducements, and liquidity sweeps. When structural levels ar
The CISD with Fib/Range Extensions and Stats indicator tracks Change in State of Delivery (CISD) level breakouts on the price chart. It detects pullback structures filtered by ATR and volume conditions, then projects future target levels using customizable Fib
This indicator maps Smart Money Concepts (SMC) market structure directly onto the price chart. It detects internal and swing structure breaks (BOS and CHoCH), tracks bullish and bearish order blocks, identifies fair value gaps (FVG), highlights equal highs and
This indicator combines Centered Triangular Moving Average (TMA) bands offset by Average True Range (ATR) with Smart Money Concepts (SMC) market structure analysis on the price chart. It calculates upper, center, and lower bands alongside swing and internal ma
This script identifies and visualizes bullish and bearish order blocks on the price chart. It detects low-volatility consolidation ranges followed by breakout moves accompanied by high trading volume. Users can select between Simple, Relative, or Weighted volu