Reaction Based Support and Resistance Zones Guide | SG Group
Skip to content
Japanese page

FreeOpen sourcePine Script v6

TradingView Free Indicator

Filter confirmed pivot-high and pivot-low reactions by event quality, cluster nearby events, and study Support-like, Resistance-like, Mixed and Inactive history alongside Local Window Levels.

Price Structure / Reaction Zones
Real chart published on TradingView: Reaction Based Support and Resistance Zones
Real chart image from the published TradingView page. The symbol, timeframe, settings and prices shown are a captured example, not current data or a trading result.
PurposeCluster historical price reactions into zones
Best forUsers auditing how support and resistance candidates form
Primary outputReaction zones, local levels, scores and dashboard
Chart placementPrice-chart overlay
01 — Overview

Keep right-edge zones separate from local historical lines

Confirmed pivot reactions contribute center, half-width, touches, S/R counts, strength, event quality, freshness and invalidation history. The source-verified table contains all 174 inputs, including 81 In-Window Detail controls for the default Local Window Levels and the legacy Segments/Lifecycle comparison layers, which are off by default.

What it visualizes

Major Live or visible-right-edge zones, center lines, role/touch/score/age labels, dashboard, archive and inactive zones, plus short Local Window Levels distributed across the left, center and right of the visible range.

How it works

An event is accepted only after Pivot Right confirms it, then clustering uses Overlap or Center Distance. Auto Hybrid uses Live near the latest bar and Visible Range Research after scrolling into history; research reconstructs when the viewport changes.

Event Quality is a quality score

Reaction contributes 45%, wick 20%, close-away 20% and prominence 15% to a 0-100 score. It is not probability or win rate.

Zone Score summarizes history

Touches, freshness, reaction strength, width penalty and optional quality are combined by weights, with a multiplier after invalidation.

Local Window is a separate layer

Local levels are not right-edge context zones. Short lines, bucketed placement and lines ending before the right edge are expected.

02 — Install and start

Add it to TradingView

Add the public script to a chart and identify every drawing in the default configuration first. Change only one input at a time.

Reaction Based Support and Resistance Zones

Open the public Reaction Based Support and Resistance Zones page and add it to a TradingView chart. No SG Group account is required.

  1. Open the “Use on TradingView” link below.
  2. Select “Use on chart” on TradingView to add the script to your chart.
  3. Open the gear icon, then Settings → Inputs, and observe the default configuration first.
  4. Change one input at a time for the symbol and timeframe you are studying.
Observe the defaults firstChange one input at a timeVerify symbol, timeframe and feed

Prevent misreads when indicators overlap

Overlapping lines, bands, backgrounds or tables can be duplicate drawings of the same kind of information. Never treat visual overlap by itself as stronger evidence or signal agreement. Another support/resistance, pivot or supply/demand study can overlap these zones. Inside this script, Context Zones, Local Window Levels, legacy Event Segments and Lifecycle Trails can also stack at the same prices. Use only layers whose source you can identify.

  • For normal use, start with Historical Detail Engine set to Local Window Levels, Local Window Mode set to Local Levels Only, and In-Window Detail Mode set to Off.
  • When comparing Event Segments or Lifecycle Trails, hide Local Window Levels first and identify each line source.
  • Hide another S/R, pivot or supply/demand study while checking Support-like, Resistance-like, Mixed and center-line drawings.
  • Keep View context visible and do not count Live zones and viewport-reconstructed research as the same alertable event.
03 — How to read it

A practical reading order

Do not turn one value or color into a conclusion. Check the condition, persistence and relationship to price in order.

Check View context first

Identify Auto: Live, Live, Auto: Research or Research @ visible range before comparing zones.

Separate role, touches, score and age

S/R/M/Old, touch count, Zone Score and age are distinct historical attributes. A high score is not future reaction probability.

Identify Local versus Context

Read short Local Window Levels separately from major right-edge zones. Enable legacy Segments or Lifecycle only for deliberate comparison.

Status and display terms

S / Support-like

Confirmed pivot-low reactions dominate; not guaranteed future support.

R / Resistance-like

Confirmed pivot-high reactions dominate; not guaranteed future resistance.

M / Mixed

Support-like and Resistance-like reactions coexist in one cluster.

Old / Inactive

A historical zone invalidated under the selected rule.

Auto: Live / Auto: Research

Live context near the latest bar / reconstructed context at the visible right edge.

Active / No confirmed zones / Warming up

Detection active / no confirmed zone / waiting for required history.

04 — Settings reference

Settings reference

The labels below match the published script’s English Inputs panel. Defaults reflect the public source at the time of review and may change in a later TradingView update.

On small screens, each input is reformatted as a readable stacked card.

Detection

8 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Pivot Left3; 1–20Sets the number of bars required to the left of a pivot candidate.
Pivot Right3; 1–20Sets the number of bars required to the right before a pivot is confirmed.
Reaction Lookback Bars500; 100–5000Sets how many historical bars the live reaction detector examines.
ATR Length14; 1–200Sets the ATR period used to normalize distances, widths, and reaction strength.
Min Reaction (ATR)0.20; 0–5, step 0.05Sets the minimum post-pivot reaction distance in ATR units.
Use Wick FilterOnEnables or disables wick filter.
Min Wick To Body Ratio0.50; 0–10, step 0.1Sets the min wick to body ratio parameter used by Detection.
Use Body Direction FilterOffEnables or disables body direction filter.

Zone Width

6 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Zone Width ModeATR; ATR / Percent / TicksSelects whether zone half-width is defined by ATR, percent, or ticks.
Zone ATR Mult0.25; 0.01–5, step 0.01Sets the multiplier used for zone atr.
Zone Percent0.10; 0.01–5%, step 0.01Sets the zone percent parameter used by Zone Width.
Zone Ticks20; 1–10000Sets the zone ticks parameter used by Zone Width.
Max Zone Width (ATR)1.50; 0.10–10, step 0.1Sets the max zone width (atr) parameter used by Zone Width.
Min Zone Ticks5; 1–1000Sets the min zone ticks parameter used by Zone Width.

Clustering

5 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Merge ModeOverlap; Overlap / Center DistanceSelects whether zones merge by overlap or by center distance.
Merge ATR Mult0.50; 0.01–5, step 0.01Sets the multiplier used for merge atr.
Max Stored Zones40; 5–100Limits how many live-context zones are retained internally.
Prefer Same Role MergeOnGives preference to same role merge.
Allow Mixed ZonesOnAllows or blocks mixed zones.

Scoring

9 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Min Touches To Show2; 1–10Sets the minimum number of recorded reactions required before a zone is shown.
Min Score To Show30; 0–100Sets the minimum 0–100 zone score required for display.
Freshness Half Life Bars120; 10–2000Sets the bar count used for freshness half life bars.
Touch Weight35; 0–100Sets the relative score weight assigned to touch.
Freshness Weight25; 0–100Sets the relative score weight assigned to freshness.
Rejection Weight25; 0–100Sets the relative score weight assigned to rejection.
Width Penalty Weight15; 0–100Sets the relative score weight assigned to width penalty.
Invalidated Score Mult0.35; 0–1, step 0.05Sets the multiplier used for invalidated score.
Quality Weight10; 0–100Sets the relative score weight assigned to quality.

Detection Quality

9 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Detection EngineQuality Weighted; Classic / Quality WeightedSelects classic reaction detection or quality-weighted detection.
Reaction Strength ModeHybrid; Post-Pivot Range / Close Away / HybridSelects how post-pivot reaction strength is measured.
Min Event Quality Score35; 0–100Sets the minimum 0–100 event-quality score accepted by the detector.
Use Pivot Prominence FilterOnEnables or disables pivot prominence filter.
Min Pivot Prominence (ATR)0.10; 0–5, step 0.05Sets the min pivot prominence (atr) parameter used by Detection Quality.
Use Close-Away FilterOffEnables or disables close-away filter.
Min Close-Away (ATR)0.10; 0–5, step 0.05Sets the min close-away (atr) parameter used by Detection Quality.
Min Event Separation Bars3; 0–100Sets the bar count used for min event separation bars.
Same-Swing HandlingUpdate Only; Count Normally / Update Only / IgnoreSelects how repeated events from the same swing are counted or ignored.

Historical Research

6 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Research Max Stored Zones120; 40–300Limits how many zones are retained for visible-range research reconstruction.
Preserve Historical Research ZonesOnSets the preserve historical research zones parameter used by Historical Research.
Research Archive Prune ModeArchive Friendly; Score Freshness / Archive FriendlySelects how research archive prune is calculated or displayed.
Research Show Archive ZonesOnSets the research show archive zones parameter used by Historical Research.
Research Archive Transparency94; 0–100Sets the transparency of research archive.
Research Min Archive Score20; 0–100Sets the research min archive score parameter used by Historical Research.

In-Window Detail

81 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Show In-Window DetailOnShows or hides in-window detail.
In-Window Detail ModeOff; Off / Segments Only / Segments + Right-Edge ZonesSelects how in-window detail is calculated or displayed.
Max In-Window Segments45; 5–120Sets the max in-window segments parameter used by In-Window Detail.
Max Segments Per Window Bucket15; 1–40Sets the max segments per window bucket parameter used by In-Window Detail.
Segment SelectionBalanced Left Center Right; Balanced Left Center Right / Score Only / Recent Within ViewSelects the segment selection setting used by In-Window Detail.
Segment Extension Bars80; 5–1000Sets the bar count used for segment extension bars.
Segment Min Score20; 0–100Sets the segment min score parameter used by In-Window Detail.
Segment Min Quality20; 0–100Sets the segment min quality parameter used by In-Window Detail.
Segment Use FillOffSets the segment use fill parameter used by In-Window Detail.
Segment Transparency78; 0–100Sets the transparency of segment.
Segment Line Width1; 1–3Sets the line width used for segment.
Segment StyleDotted; Solid / Dotted / DashedSelects the segment style setting used by In-Window Detail.
Show Segment LabelsOffShows or hides segment labels.
Segment Label ModeTiny; Tiny / CompactSelects how segment label is calculated or displayed.
In-Window Detail EngineLifecycle Trails; Event Segments / Lifecycle Trails / BothSelects the in-window detail engine setting used by In-Window Detail.
Research CompositionLifecycle Detail + Context Zones; Lifecycle Detail + Context Zones / Lifecycle Detail Only / Event Detail + Context Zones / Event Detail Only / Right-Edge Context OnlySelects where research com is placed.
Max Lifecycle Trails80; 10–180Sets the max lifecycle trails parameter used by In-Window Detail.
Max Trails Per Window Bucket25; 3–60Sets the max trails per window bucket parameter used by In-Window Detail.
Trail SelectionBalanced Left Center Right; Balanced Left Center Right / Score Only / Duration Then ScoreSelects the trail selection setting used by In-Window Detail.
Trail Start PolicyActual Origin Or Visible Left; Actual Origin / Actual Origin Or Visible LeftSelects the trail start policy setting used by In-Window Detail.
Trail End PolicyUntil Invalidation Or State Change; Fixed Bars / Until Invalidation Or State Change / Until Research Right EdgeSelects the trail end policy setting used by In-Window Detail.
Trail Max Bars250; 10–3000Sets the bar count used for trail max bars.
Trail State Change (ATR)0.35; 0.05–5, step 0.05Sets the trail state change (atr) parameter used by In-Window Detail.
Trail Min Duration Bars3; 1–100Sets the bar count used for trail min duration bars.
Trail Min Score15; 0–100Sets the trail min score parameter used by In-Window Detail.
Trail Min Quality15; 0–100Sets the trail min quality parameter used by In-Window Detail.
Show Inactive TrailsOnShows or hides inactive trails.
Trail Transparency72; 0–100Sets the transparency of trail.
Inactive Trail Transparency88; 0–100Sets the transparency of inactive trail.
Trail Line Width1; 1–3Sets the line width used for trail.
Trail StyleDashed; Solid / Dotted / DashedSelects the trail style setting used by In-Window Detail.
Show Trail LabelsOffShows or hides trail labels.
Trail Label ModeTiny; Tiny / CompactSelects how trail label is calculated or displayed.
Context Zone Transparency Boost8; 0–30Sets the context zone transparency boost parameter used by In-Window Detail.
Historical Detail EngineLocal Window Levels; Local Window Levels / Right-Edge Context OnlySelects the historical detail engine setting used by In-Window Detail.
Local Window ModeLocal Levels Only; Local Levels Only / Local Levels + Muted Context / Muted Context OnlySelects how local window is calculated or displayed.
Show Local Window LevelsOnShows or hides local window levels.
Local Detection ProfileBalanced Quality; Exploratory / Balanced Quality / Strict Quality / Very Strict QualitySelects the local detection profile setting used by In-Window Detail.
Local Min Event Quality35; 0–100Sets the local min event quality parameter used by In-Window Detail.
Local Validation ModeWick Or Close-Away; Reaction Only / Wick Or Close-Away / Wick And Close-AwaySelects how local validation is calculated or displayed.
Local Min Wick To Body0.40; 0–10Sets the local min wick to body parameter used by In-Window Detail.
Local Min Close-Away (ATR)0.12; 0–5, step 0.05Sets the local min close-away (atr) parameter used by In-Window Detail.
Local Use Prominence FilterOnSets the local use prominence filter parameter used by In-Window Detail.
Local Min Prominence (ATR)0.10; 0–5, step 0.05Sets the local min prominence (atr) parameter used by In-Window Detail.
Local Min Event Separation Bars4; 0–100Sets the bar count used for local min event separation bars.
Local Same-Swing PolicyMerge Same Swing; Allow All / Merge Same Swing / Ignore Same SwingSelects the local same-swing policy setting used by In-Window Detail.
Local Cluster Confirm ModeCluster Or Strong Single; Any Accepted Event / Cluster Or Strong Single / Cluster OnlySelects how local cluster confirm is calculated or displayed.
Local Min Cluster Reactions2; 1–10Sets the local min cluster reactions parameter used by In-Window Detail.
Local Strong Single Quality70; 0–100Sets the local strong single quality parameter used by In-Window Detail.
Local Preload Bars2000; 0–5000Sets the bar count used for local preload bars.
Local Preload FilterOverlap Window; Overlap Window / Start Within PreloadSelects the local preload filter setting used by In-Window Detail.
Local Level Max Bars180; 10–3000Sets the bar count used for local level max bars.
Local Level End ModeFixed Bars; Fixed Bars / Until Broken Or Max Bars / Until Retouched Or BrokenSelects how local level end is calculated or displayed.
Local Merge ModeMicro Cluster; Every Reaction / Micro ClusterSelects how local merge is calculated or displayed.
Local Merge ATR Mult0.30; 0.01–3, step 0.01Sets the multiplier used for local merge atr.
Local Merge Bars100; 5–1000Sets the bar count used for local merge bars.
Local Min Reactions1; 1–10Sets the local min reactions parameter used by In-Window Detail.
Local Min Score5; 0–100Sets the local min score parameter used by In-Window Detail.
Local Min Quality0; 0–100Sets the local min quality parameter used by In-Window Detail.
Local: Respect Min ReactionOffSets the local: respect min reaction parameter used by In-Window Detail.
Local Min Reaction (ATR)0.00; 0–5, step 0.05Sets the local min reaction (atr) parameter used by In-Window Detail.
Local: Respect Wick FilterOffSets the local: respect wick filter parameter used by In-Window Detail.
Local: Respect Quality Engine GatesOffSets the local: respect quality engine gates parameter used by In-Window Detail.
Max Local Window Levels120; 20–300Sets the max local window levels parameter used by In-Window Detail.
Max Local Levels Per Bucket40; 5–100Sets the max local levels per bucket parameter used by In-Window Detail.
Local Bucket BalanceStrict Left Center Right; Strict Left Center Right / Score OnlySelects the local bucket balance setting used by In-Window Detail.
Local Line Transparency35; 0–100Sets the transparency of local line.
Local Inactive Transparency55; 0–100Sets the transparency of local inactive.
Local Line Width1; 1–3Sets the line width used for local.
Local Line StyleDotted; Solid / Dotted / DashedSelects the line style used for local.
Show Local Level LabelsOffShows or hides local level labels.
Local Context Zone Transparency Boost30; 0–40Sets the local context zone transparency boost parameter used by In-Window Detail.
Local Render ContractDraw All Detected In View; Draw All Detected In View / Balanced SelectionSelects the local render contract setting used by In-Window Detail.
Local Visibility PolicyNever Hide For Clarity; Never Hide For Clarity / Fade Low Priority / Selection BasedSelects the local visibility policy setting used by In-Window Detail.
Local Hard Object Budget420; 50–480Sets the local hard object budget parameter used by In-Window Detail.
Local Overflow PolicyOldest First Across Window; Oldest First Across Window / Round Robin Left Center Right / Score Then TimeSelects the local overflow policy setting used by In-Window Detail.
Clip To Visible Price RangeOffSets the clip to visible price range parameter used by In-Window Detail.
Visible Price Padding (ATR)3.0; 0–50, step 0.5Sets the visible price padding (atr) parameter used by In-Window Detail.
Local Visibility PresetResearch Visible; Research Visible / Publication Soft / Audit StrongSelects the local visibility preset setting used by In-Window Detail.
Local Length ModeScreen Relative; Screen Relative / Fixed Bars / Until BrokenSelects how local length is calculated or displayed.
Local Screen Length %25.0; 1–100%, step 1Sets the local screen length % parameter used by In-Window Detail.

Invalidation

5 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Invalidation ModeClose Beyond; Close Beyond / Two Closes Beyond / ATR BeyondSelects how invalidation is calculated or displayed.
Invalidation ATR Mult0.25; 0–5, step 0.05Sets the multiplier used for invalidation atr.
Keep Invalidated ZonesOnKeeps or removes invalidated zones.
Invalidated Zone Age Bars150; 10–2000Sets the bar count used for invalidated zone age bars.
Allow ReactivationOnAllows or blocks reactivation.

Display

21 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Max Displayed Zones5; 1–20Sets the max displayed zones parameter used by Display.
Show Only Nearby ZonesOffShows or hides only nearby zones.
Nearby ATR Range8.0; 0.5–100, step 0.5Sets the nearby atr range parameter used by Display.
Show Zone FillOnShows or hides zone fill.
Show Center LineOnShows or hides center line.
Show Zone BoundariesOffShows or hides zone boundaries.
Extend Zones RightOnSets the extend zones right parameter used by Display.
Show LabelsOnShows or hides labels.
Label ModeCompact; Compact / Detailed / NoneSelects how label is calculated or displayed.
Show Invalidated ZonesOnShows or hides invalidated zones.
Support Color#26a69aSets the color used for support.
Resistance Color#ef5350Sets the color used for resistance.
Mixed Color#7e8aa0Sets the color used for mixed.
Invalidated Color#9598a1Sets the color used for invalidated.
Zone Transparency85; 0–100Sets the transparency of zone.
Strong Zone Transparency75; 0–100Sets the transparency of strong zone.
Invalidated Transparency93; 0–100Sets the transparency of invalidated.
Strong Zone Score Threshold70; 1–100Sets the activation threshold for strong zone score.
Center Line Width1; 1–4Sets the line width used for center.
Strong Line Width2; 1–4Sets the line width used for strong.
Label Offset Bars5; 1–100Sets the bar count used for label offset bars.

Dashboard

14 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Show DashboardOnShows or hides dashboard.
Dashboard PositionTop Right; Top/Bottom/Middle × Left/Right + Top/Bottom CenterSelects where dashboard is placed.
Dashboard ModeCompact; Compact / DetailedSelects how dashboard is calculated or displayed.
Dashboard Text SizeNormal; Tiny / Small / NormalSets the displayed size of dashboard text.
Right Gap ModeAuto; Auto / Manual / OffSelects how right gap is calculated or displayed.
Manual Right Gap (%)2.0; 0–12%, step 0.25Sets the manual right gap (%) parameter used by Dashboard.
Auto Gap Strength1.0; 0.5–2, step 0.1Sets the auto gap strength parameter used by Dashboard.
Dashboard BackdropHigh Contrast; Soft / High Contrast / TransparentSelects the dashboard backdrop setting used by Dashboard.
Row Stripe Strength8; 0–30Sets the row stripe strength parameter used by Dashboard.
Frame Width1; 0–3Sets the frame width parameter used by Dashboard.
Background Transparency8; 0–100Sets the transparency of background.
Header Transparency18; 0–100Sets the transparency of header.
Border Transparency25; 0–100Sets the transparency of border.
Dashboard Text ColorwhiteSets the color used for dashboard text.

Alerts

4 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Enable AlertsOnEnables or disables alerts.
Confirmed Alerts OnlyOnSets the confirmed alerts only parameter used by Alerts.
Touch Alert ModeFirst Touch From Outside; First Touch From Outside / Any Bar OverlapSelects how touch alert is calculated or displayed.
Touch Alert Cooldown Bars10; 0–500Sets the bar count used for touch alert cooldown bars.

Context Mode

6 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Context ModeAuto Hybrid; Auto Hybrid / Live / Visible Range ResearchSelects live, visible-range research, or automatic hybrid context.
Live Visible Tolerance Bars3; 0–100Sets the bar count used for live visible tolerance bars.
Show Context BadgeOnShows or hides context badge.
Research Lookback Bars500; 100–5000Sets the bar count used for research lookback bars.
Research Render ModeVisible Window; Visible Window / From Zone OriginSelects how research render is calculated or displayed.
Research: Only Zones Active At Right EdgeOnSets the research: only zones active at right edge parameter used by Context Mode.
05 — Alerts

Alerts report events, not decisions

Alerts are state, touch or transition events defined in the public source. They are not trade instructions.

  • New reaction zone confirmed.
  • Existing reaction zone updated.
  • Price touched an active reaction zone.
  • Reaction zone became inactive.
  • Reaction zone reactivated after a confirmed reaction.
  • Alerts are Live-context events; visible-range research reconstruction does not alert.
06 — Limitations and responsible use

Not a buy/sell signal

This tool is for analysis and visualization. It is not investment advice, a trade recommendation, a forecast, or a promise of profit or accuracy. Results depend on inputs, symbol, timeframe, and data feed. You remain responsible for every trading decision.

Confirmed pivots are delayed

A reaction exists only after Pivot Right bars confirm it. Historical pivots must not be treated as immediate signals.

Research depends on the viewport

Visible Range Research and local selection reconstruct with scrolling, zooming, object budget and visible-price rules.

Scores do not predict

Strict profiles can omit useful reactions and Exploratory can add noise. Zones can stop reacting, and score is not win rate.

Important

Touches, freshness, reaction strength, Event Quality and Zone Score are related summaries of the same reaction history. Do not add them as independent trade reasons or convert a zone automatically into an entry, target or stop.

07 — FAQ

Frequently asked questions

Clarify confirmation delay, Zone Score, Live versus Research and the 81 In-Window Detail controls.

Is Reaction Based Support and Resistance Zones free to use?

Yes. It is a free, open-source indicator published by SG Group on TradingView. Review TradingView’s terms and the conditions attached to the public script before reuse or redistribution.

Should I change the settings immediately?

Start with the published defaults and observe the drawings and state changes first. Then change one input at a time for the symbol, timeframe and data feed so you can identify what caused each visual change.

Can I display it with other indicators?

Yes, but similar lines, bands, backgrounds and tables can overlap and obscure their source. Isolate each indicator first and hide duplicate components. Visual overlap alone is not stronger evidence or signal agreement.

Does the display provide trade signals?

No. It is analysis and visualization context consistent with the public description. It does not provide entries, exits, targets, stops, price forecasts, or promises of profit, win rate or accuracy.

Is it a bug when Local Window Levels do not reach the right edge?

No. They are independent, short historical reaction lines inside the visible window and follow their own length and end rules.

Source basis and update policy

This guide is grounded in SG Group’s live catalogue, the script’s published TradingView description, and the user-facing inputs in its open source. Labels and defaults can change after a script update.