Indicator · Pine Script v6 · On the chart

Trend Areas - Support/Resistance

by xLUPOx

This indicator automatically detects and plots support and resistance areas on the price chart.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code992
Settings16inputs
LicenceNone stated
Last update1 year ago10 Oct 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

Trend Areas - Support/Resistance identifies reversal patterns using candlestick spikes, pivot points, and trend analysis while applying noise filtering for small candles. Areas get shaded with customizable colors and can be filtered by width via ATR, fixed pips, or statistical methods. When price breaks through an area it deletes it automatically. Settings control colors, display filter mode, maximum areas, width thresholds, and volatility-based filtering. The script draws filled areas directly on the chart without a separate pane.

Details

Published by

xLUPOx on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Support & resistance, Trend, Candlestick patterns

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
Support Area Color (Red)colorcolor.new(color.red, 80)support_color
Resistance Area Color (Green)colorcolor.new(color.green, 80)resistance_color
Support Border Colorcolorcolor.redsupport_border
Resistance Border Colorcolorcolor.greenresistance_border
Area Display FilterstringSOLO_VISIBILIarea_display_filter
Area Filter ModestringSTDarea_filter_mode
Maximum Areas to Displayint30max_areas
Area Width Filter ModestringATRarea_width_mode
Min Area Width (Pips)float0.0min_area_width_fixed
Min Area Width (ATR %)float50.0min_area_width_atr_mult
Area Width Percentilefloat15.0area_width_percentile
Filter ModestringATR Filterfilter_mode
Show all 16 settings
SettingTypeDefaultVariable
ATR Periodint14atr_period
ATR Multiplierfloat1.0atr_multiplier
Hybrid Percentage (%)float0.15hybrid_percentage
Legacy Noise Filter (%)float10.0legacy_noise_threshold
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

Reversal Breakout System

by TamaraKGreen
46 stars

This indicator detects inside candles inside larger parent candles on the price chart. It plots colored boxes around inside and parent candles, fills them with user-adjustable transparency, draws Fibonacci retracement lines and mother candle range lines, and d

Indicator v6 Candlestick patternsBreakout
Updated 7 weeks ago · None stated GitHub repository of Reversal Breakout System

Pro Pattern Al-Sat

by MeridianAlgo
9 stars

This overlay indicator marks bullish and bearish chart patterns on the price chart and can hide either side. Optional filters require agreement from fast and slow EMAs, Supertrend, and ADX, plus volume, RSI, nearby pivot support or resistance, and a user-defin

Indicator v6 Candlestick patternsTrend
Updated 4 months ago · MIT GitHub repository of Pro Pattern Al-Sat

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

Indicator v6 Candlestick patternsSupport & resistance
Updated yesterday · MIT GitHub repository of Tweezer & Kangaroo Zones [WavesUnchained]
7 stars

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

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Cryptokazancev Strategy Pack

TheStrat Suite

by 345-strategies
5 stars

This indicator implements Rob Smith's TheStrat price action methodology across up to six configurable timeframes. It classifies candles into inside, directional, and outside bars, identifies patterns like hammers, shooters, and failed 2s, and calculates magnit

Indicator v6 Candlestick patternsSupport & resistance Repaints
Updated 2 days ago · MPL-2.0 GitHub repository of TheStrat Suite

Hercules Rewrite

by g-moe
3 stars

Hercules Rewrite is a signal and visual trade management indicator that overlays entry setups directly on the price chart. It detects candle setups based on minimum tick movement and engulfing patterns, filtering entries through parameters like moving averages

Indicator v5 Candlestick patternsTrend
Updated 5 months ago · None stated GitHub repository of Hercules Rewrite

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