Indicator · Pine Script v5 · On the chart

Kavi's Custom Indicators

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.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code260
Settings27inputs
LicenceNone stated
Last update2 years ago3 Feb 2024

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

kavichelvan on GitHub

Code credit

Support and resistance, as written in the script's header

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Support & resistance, Moving averages, SMC / ICT / price action, Breakout

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Show BreaksbooltruetoggleBreaks
Left Bars int15leftBars
Right Barsint15rightBars
Volume Thresholdint20volumeThresh
SMMA 10int10smma_10
SMMA 21int21smma_21
SMMA 50int50smma_50
SMMA 100int100smma_100
SMMA 200int200smma_200
Sourcesourceclosesrc
ZigZag Lengthint9zigzag_len
Show Zigzagbooltrueshow_zigzag
Show all 27 settings
SettingTypeDefaultVariable
Fib Factor for breakout confirmationfloat0.33fib_factor
Text Sizestringsize.tinytext_size
Delete Old/Broken Boxesbooltruedelete_boxes
Colorcolorcolor.new(color.green, 70)bu_ob_color
Border Colorcolorcolor.greenbu_ob_border_color
Text Colorcolorcolor.greenbu_ob_text_color
Colorcolorcolor.new(color.red, 70)be_ob_color
Border Colorcolorcolor.redbe_ob_border_color
Text Colorcolorcolor.redbe_ob_text_color
Colorcolorcolor.new(color.green, 70)bu_bb_color
Border Colorcolorcolor.greenbu_bb_border_color
Text Colorcolorcolor.greenbu_bb_text_color
Colorcolorcolor.new(color.red, 70)be_bb_color
Border Colorcolorcolor.redbe_bb_border_color
Text Colorcolorcolor.redbe_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.

Similar Pine Scripts

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

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · Apache-2.0 GitHub repository of Market Structure with Inducements & Sweeps [LuxAlgo]
24 stars

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

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 11 days ago · Custom licence GitHub repository of Smart Money Concepts [LuxAlgo] Test B
13 stars

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

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MIT GitHub repository of Advanced Order Blocks with Volume

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers