Indicator · Pine Script v5 · On the chart

Volume-based Support and Resistance Zones V2

by ivansoft

An indicator on the price chart that draws support and resistance zones from bars with unusually high volume, measured against a volume moving average threshold.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code923
Settings40inputs
LicenceNone stated
Last update1 year ago1 Mar 2025

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

Zones can come from the chart timeframe and several higher timeframes, each with its own number of zones, colours, line or zone display, and alert choice. Lines can show high and low and open and close levels, extend to the next zone or to the right, and carry timeframe labels. Style and width are adjustable.

Details

Published by

ivansoft on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Support & resistance, Volume

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.

Topics

pinescripttradingvew

Settings

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

SettingTypeDefaultVariable
Extend all S/R Zones to Next ZonebooltrueExtendLines1
Extend active S/R Zones to Rightbooltrueext_active
Show Time Frame Label?booltrueShowLabel
Label LocationstringRightlabel_loc
  Right Label Offsetint15label_offset
Show High/Low Line     booltrueshow_HL
Show Open/Close Linebooltrueshow_close
Line Style (H/L)stringSolidLineStyleHLInput
  Line Width (H/L)int1LineWidthHLInput
Line Style (O/C)stringSolidLineStyleCloseInput
  Line Width (O/C)int1LineWidthCloseInput
Display Lines Only, With Zones, or Disable     stringS/R ZonesTF1_Menu
Show all 40 settings
SettingTypeDefaultVariable
Time Frame 1stringChartTF1_input
Volume MA - Thresholdint6TF1_VolMA1Input
Number of Zones Backint30TF1_NumZones
Extend S/R Zones to RightboolfalseTF1_extRight
Resistance Lines Colorcolorcolor.new(color.red, 20)TF1_ResLinesColor
Resistance Zone Colorcolorcolor.new(color.red, 90)TF1_ResZoneColor
       Support Lines Colorcolorcolor.new(color.lime, 20)TF1_SupLinesColor
        Support Zone Colorcolorcolor.new(color.lime, 90)TF1_SupZoneColor
AlertsstringNoneTF1_Alerts
Display Lines Only, With Zones, or Disable     stringS/R ZonesTF2_Menu
Time Frame 2string4hTF2_input
Volume MA - Thresholdint6TF2_VolMA1Input
Number of Zones Backint30TF2_NumZones
Extend S/R Zones to RightboolfalseTF2_extRight
Resistance Lines Colorcolorcolor.new(color.fuchsia, 20)TF2_ResLinesColor
Resistance Zone Colorcolorcolor.new(color.fuchsia, 90)TF2_ResZoneColor
       Support Lines Colorcolorcolor.new(color.green, 20)TF2_SupLinesColor
        Support Zone Colorcolorcolor.new(color.green, 90)TF2_SupZoneColor
AlertsstringNoneTF2_Alerts
Display Lines Only, With Zones, or Disable     stringS/R ZonesTF3_Menu
Time Frame 3stringDTF3_input
Volume MA - Thresholdint6TF3_VolMA1Input
Number of Zones Backint30TF3_NumZones
Extend S/R Zones to RightboolfalseTF3_extRight
Resistance Lines Colorcolorcolor.new(color.orange, 20)TF3_ResLinesColor
Resistance Zone Colorcolorcolor.new(color.orange, 90)TF3_ResZoneColor
       Support Lines Colorcolorcolor.new(color.blue, 20)TF3_SupLinesColor
        Support Zone Colorcolorcolor.new(color.blue, 90)TF3_SupZoneColor
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 overlay indicator draws a fixed-range volume profile on the price chart, splitting traded activity into up and down volume at each price level. It also plots a sentiment profile, a developing point of control, and value-area high and low around a configur

Indicator v5 VolumeSupport & resistance
Updated 2 months ago · MIT GitHub repository of Volume Profile and Indicator by DGT

MGIC-tracker

by Allen1212
303 stars

The MGIC-tracker is a TradingView indicator that overlays ARK Invest trade records onto stock price charts. It plots buy and sell labels at the exact timestamp of each transaction, showing share volume and ETF weight. Users select a specific ETF type via setti

Indicator v4 Support & resistanceVolume
Updated 2 years ago · None stated GitHub repository of MGIC-tracker
228 stars

Comprehensive Volume Profile is an overlay indicator that calculates and plots volume distribution across specified time ranges such as daily sessions, weekly, monthly, or custom bar lengths. It identifies key structural price levels including the Point of Con

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Comprehensive Volume Profile

Moon Dev GEX Arrows

by moondevonyt
92 stars

This overlay indicator plots option strike walls and an optional session VWAP on the price chart for SPY or ES. It spaces major strikes by the selected instrument, draws a set number of strikes on each side, and marks wall-trap and sweep events after a cooldow

Indicator v5 Support & resistanceSessions & time
Updated 2 months ago · Custom licence GitHub repository of Moon Dev GEX Arrows

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