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.
FreeOpen sourcePine Script v6
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.
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.
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.
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.
Reaction contributes 45%, wick 20%, close-away 20% and prominence 15% to a 0-100 score. It is not probability or win rate.
Touches, freshness, reaction strength, width penalty and optional quality are combined by weights, with a multiplier after invalidation.
Local levels are not right-edge context zones. Short lines, bucketed placement and lines ending before the right edge are expected.
Add the public script to a chart and identify every drawing in the default configuration first. Change only one input at a time.
Open the public Reaction Based Support and Resistance Zones page and add it to a TradingView chart. No SG Group account is required.
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.
Do not turn one value or color into a conclusion. Check the condition, persistence and relationship to price in order.
Identify Auto: Live, Live, Auto: Research or Research @ visible range before comparing zones.
S/R/M/Old, touch count, Zone Score and age are distinct historical attributes. A high score is not future reaction probability.
Read short Local Window Levels separately from major right-edge zones. Enable legacy Segments or Lifecycle only for deliberate comparison.
Confirmed pivot-low reactions dominate; not guaranteed future support.
Confirmed pivot-high reactions dominate; not guaranteed future resistance.
Support-like and Resistance-like reactions coexist in one cluster.
A historical zone invalidated under the selected rule.
Live context near the latest bar / reconstructed context at the visible right edge.
Detection active / no confirmed zone / waiting for required history.
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.
| Input label | Default / options | What it controls and when to adjust it |
|---|---|---|
Pivot Left | 3; 1–20 | Sets the number of bars required to the left of a pivot candidate. |
Pivot Right | 3; 1–20 | Sets the number of bars required to the right before a pivot is confirmed. |
Reaction Lookback Bars | 500; 100–5000 | Sets how many historical bars the live reaction detector examines. |
ATR Length | 14; 1–200 | Sets the ATR period used to normalize distances, widths, and reaction strength. |
Min Reaction (ATR) | 0.20; 0–5, step 0.05 | Sets the minimum post-pivot reaction distance in ATR units. |
Use Wick Filter | On | Enables or disables wick filter. |
Min Wick To Body Ratio | 0.50; 0–10, step 0.1 | Sets the min wick to body ratio parameter used by Detection. |
Use Body Direction Filter | Off | Enables or disables body direction filter. |
| Input label | Default / options | What it controls and when to adjust it |
|---|---|---|
Zone Width Mode | ATR; ATR / Percent / Ticks | Selects whether zone half-width is defined by ATR, percent, or ticks. |
Zone ATR Mult | 0.25; 0.01–5, step 0.01 | Sets the multiplier used for zone atr. |
Zone Percent | 0.10; 0.01–5%, step 0.01 | Sets the zone percent parameter used by Zone Width. |
Zone Ticks | 20; 1–10000 | Sets the zone ticks parameter used by Zone Width. |
Max Zone Width (ATR) | 1.50; 0.10–10, step 0.1 | Sets the max zone width (atr) parameter used by Zone Width. |
Min Zone Ticks | 5; 1–1000 | Sets the min zone ticks parameter used by Zone Width. |
| Input label | Default / options | What it controls and when to adjust it |
|---|---|---|
Merge Mode | Overlap; Overlap / Center Distance | Selects whether zones merge by overlap or by center distance. |
Merge ATR Mult | 0.50; 0.01–5, step 0.01 | Sets the multiplier used for merge atr. |
Max Stored Zones | 40; 5–100 | Limits how many live-context zones are retained internally. |
Prefer Same Role Merge | On | Gives preference to same role merge. |
Allow Mixed Zones | On | Allows or blocks mixed zones. |
| Input label | Default / options | What it controls and when to adjust it |
|---|---|---|
Min Touches To Show | 2; 1–10 | Sets the minimum number of recorded reactions required before a zone is shown. |
Min Score To Show | 30; 0–100 | Sets the minimum 0–100 zone score required for display. |
Freshness Half Life Bars | 120; 10–2000 | Sets the bar count used for freshness half life bars. |
Touch Weight | 35; 0–100 | Sets the relative score weight assigned to touch. |
Freshness Weight | 25; 0–100 | Sets the relative score weight assigned to freshness. |
Rejection Weight | 25; 0–100 | Sets the relative score weight assigned to rejection. |
Width Penalty Weight | 15; 0–100 | Sets the relative score weight assigned to width penalty. |
Invalidated Score Mult | 0.35; 0–1, step 0.05 | Sets the multiplier used for invalidated score. |
Quality Weight | 10; 0–100 | Sets the relative score weight assigned to quality. |
| Input label | Default / options | What it controls and when to adjust it |
|---|---|---|
Detection Engine | Quality Weighted; Classic / Quality Weighted | Selects classic reaction detection or quality-weighted detection. |
Reaction Strength Mode | Hybrid; Post-Pivot Range / Close Away / Hybrid | Selects how post-pivot reaction strength is measured. |
Min Event Quality Score | 35; 0–100 | Sets the minimum 0–100 event-quality score accepted by the detector. |
Use Pivot Prominence Filter | On | Enables or disables pivot prominence filter. |
Min Pivot Prominence (ATR) | 0.10; 0–5, step 0.05 | Sets the min pivot prominence (atr) parameter used by Detection Quality. |
Use Close-Away Filter | Off | Enables or disables close-away filter. |
Min Close-Away (ATR) | 0.10; 0–5, step 0.05 | Sets the min close-away (atr) parameter used by Detection Quality. |
Min Event Separation Bars | 3; 0–100 | Sets the bar count used for min event separation bars. |
Same-Swing Handling | Update Only; Count Normally / Update Only / Ignore | Selects how repeated events from the same swing are counted or ignored. |
| Input label | Default / options | What it controls and when to adjust it |
|---|---|---|
Research Max Stored Zones | 120; 40–300 | Limits how many zones are retained for visible-range research reconstruction. |
Preserve Historical Research Zones | On | Sets the preserve historical research zones parameter used by Historical Research. |
Research Archive Prune Mode | Archive Friendly; Score Freshness / Archive Friendly | Selects how research archive prune is calculated or displayed. |
Research Show Archive Zones | On | Sets the research show archive zones parameter used by Historical Research. |
Research Archive Transparency | 94; 0–100 | Sets the transparency of research archive. |
Research Min Archive Score | 20; 0–100 | Sets the research min archive score parameter used by Historical Research. |
| Input label | Default / options | What it controls and when to adjust it |
|---|---|---|
Show In-Window Detail | On | Shows or hides in-window detail. |
In-Window Detail Mode | Off; Off / Segments Only / Segments + Right-Edge Zones | Selects how in-window detail is calculated or displayed. |
Max In-Window Segments | 45; 5–120 | Sets the max in-window segments parameter used by In-Window Detail. |
Max Segments Per Window Bucket | 15; 1–40 | Sets the max segments per window bucket parameter used by In-Window Detail. |
Segment Selection | Balanced Left Center Right; Balanced Left Center Right / Score Only / Recent Within View | Selects the segment selection setting used by In-Window Detail. |
Segment Extension Bars | 80; 5–1000 | Sets the bar count used for segment extension bars. |
Segment Min Score | 20; 0–100 | Sets the segment min score parameter used by In-Window Detail. |
Segment Min Quality | 20; 0–100 | Sets the segment min quality parameter used by In-Window Detail. |
Segment Use Fill | Off | Sets the segment use fill parameter used by In-Window Detail. |
Segment Transparency | 78; 0–100 | Sets the transparency of segment. |
Segment Line Width | 1; 1–3 | Sets the line width used for segment. |
Segment Style | Dotted; Solid / Dotted / Dashed | Selects the segment style setting used by In-Window Detail. |
Show Segment Labels | Off | Shows or hides segment labels. |
Segment Label Mode | Tiny; Tiny / Compact | Selects how segment label is calculated or displayed. |
In-Window Detail Engine | Lifecycle Trails; Event Segments / Lifecycle Trails / Both | Selects the in-window detail engine setting used by In-Window Detail. |
Research Composition | Lifecycle Detail + Context Zones; Lifecycle Detail + Context Zones / Lifecycle Detail Only / Event Detail + Context Zones / Event Detail Only / Right-Edge Context Only | Selects where research com is placed. |
Max Lifecycle Trails | 80; 10–180 | Sets the max lifecycle trails parameter used by In-Window Detail. |
Max Trails Per Window Bucket | 25; 3–60 | Sets the max trails per window bucket parameter used by In-Window Detail. |
Trail Selection | Balanced Left Center Right; Balanced Left Center Right / Score Only / Duration Then Score | Selects the trail selection setting used by In-Window Detail. |
Trail Start Policy | Actual Origin Or Visible Left; Actual Origin / Actual Origin Or Visible Left | Selects the trail start policy setting used by In-Window Detail. |
Trail End Policy | Until Invalidation Or State Change; Fixed Bars / Until Invalidation Or State Change / Until Research Right Edge | Selects the trail end policy setting used by In-Window Detail. |
Trail Max Bars | 250; 10–3000 | Sets the bar count used for trail max bars. |
Trail State Change (ATR) | 0.35; 0.05–5, step 0.05 | Sets the trail state change (atr) parameter used by In-Window Detail. |
Trail Min Duration Bars | 3; 1–100 | Sets the bar count used for trail min duration bars. |
Trail Min Score | 15; 0–100 | Sets the trail min score parameter used by In-Window Detail. |
Trail Min Quality | 15; 0–100 | Sets the trail min quality parameter used by In-Window Detail. |
Show Inactive Trails | On | Shows or hides inactive trails. |
Trail Transparency | 72; 0–100 | Sets the transparency of trail. |
Inactive Trail Transparency | 88; 0–100 | Sets the transparency of inactive trail. |
Trail Line Width | 1; 1–3 | Sets the line width used for trail. |
Trail Style | Dashed; Solid / Dotted / Dashed | Selects the trail style setting used by In-Window Detail. |
Show Trail Labels | Off | Shows or hides trail labels. |
Trail Label Mode | Tiny; Tiny / Compact | Selects how trail label is calculated or displayed. |
Context Zone Transparency Boost | 8; 0–30 | Sets the context zone transparency boost parameter used by In-Window Detail. |
Historical Detail Engine | Local Window Levels; Local Window Levels / Right-Edge Context Only | Selects the historical detail engine setting used by In-Window Detail. |
Local Window Mode | Local Levels Only; Local Levels Only / Local Levels + Muted Context / Muted Context Only | Selects how local window is calculated or displayed. |
Show Local Window Levels | On | Shows or hides local window levels. |
Local Detection Profile | Balanced Quality; Exploratory / Balanced Quality / Strict Quality / Very Strict Quality | Selects the local detection profile setting used by In-Window Detail. |
Local Min Event Quality | 35; 0–100 | Sets the local min event quality parameter used by In-Window Detail. |
Local Validation Mode | Wick Or Close-Away; Reaction Only / Wick Or Close-Away / Wick And Close-Away | Selects how local validation is calculated or displayed. |
Local Min Wick To Body | 0.40; 0–10 | Sets the local min wick to body parameter used by In-Window Detail. |
Local Min Close-Away (ATR) | 0.12; 0–5, step 0.05 | Sets the local min close-away (atr) parameter used by In-Window Detail. |
Local Use Prominence Filter | On | Sets the local use prominence filter parameter used by In-Window Detail. |
Local Min Prominence (ATR) | 0.10; 0–5, step 0.05 | Sets the local min prominence (atr) parameter used by In-Window Detail. |
Local Min Event Separation Bars | 4; 0–100 | Sets the bar count used for local min event separation bars. |
Local Same-Swing Policy | Merge Same Swing; Allow All / Merge Same Swing / Ignore Same Swing | Selects the local same-swing policy setting used by In-Window Detail. |
Local Cluster Confirm Mode | Cluster Or Strong Single; Any Accepted Event / Cluster Or Strong Single / Cluster Only | Selects how local cluster confirm is calculated or displayed. |
Local Min Cluster Reactions | 2; 1–10 | Sets the local min cluster reactions parameter used by In-Window Detail. |
Local Strong Single Quality | 70; 0–100 | Sets the local strong single quality parameter used by In-Window Detail. |
Local Preload Bars | 2000; 0–5000 | Sets the bar count used for local preload bars. |
Local Preload Filter | Overlap Window; Overlap Window / Start Within Preload | Selects the local preload filter setting used by In-Window Detail. |
Local Level Max Bars | 180; 10–3000 | Sets the bar count used for local level max bars. |
Local Level End Mode | Fixed Bars; Fixed Bars / Until Broken Or Max Bars / Until Retouched Or Broken | Selects how local level end is calculated or displayed. |
Local Merge Mode | Micro Cluster; Every Reaction / Micro Cluster | Selects how local merge is calculated or displayed. |
Local Merge ATR Mult | 0.30; 0.01–3, step 0.01 | Sets the multiplier used for local merge atr. |
Local Merge Bars | 100; 5–1000 | Sets the bar count used for local merge bars. |
Local Min Reactions | 1; 1–10 | Sets the local min reactions parameter used by In-Window Detail. |
Local Min Score | 5; 0–100 | Sets the local min score parameter used by In-Window Detail. |
Local Min Quality | 0; 0–100 | Sets the local min quality parameter used by In-Window Detail. |
Local: Respect Min Reaction | Off | Sets the local: respect min reaction parameter used by In-Window Detail. |
Local Min Reaction (ATR) | 0.00; 0–5, step 0.05 | Sets the local min reaction (atr) parameter used by In-Window Detail. |
Local: Respect Wick Filter | Off | Sets the local: respect wick filter parameter used by In-Window Detail. |
Local: Respect Quality Engine Gates | Off | Sets the local: respect quality engine gates parameter used by In-Window Detail. |
Max Local Window Levels | 120; 20–300 | Sets the max local window levels parameter used by In-Window Detail. |
Max Local Levels Per Bucket | 40; 5–100 | Sets the max local levels per bucket parameter used by In-Window Detail. |
Local Bucket Balance | Strict Left Center Right; Strict Left Center Right / Score Only | Selects the local bucket balance setting used by In-Window Detail. |
Local Line Transparency | 35; 0–100 | Sets the transparency of local line. |
Local Inactive Transparency | 55; 0–100 | Sets the transparency of local inactive. |
Local Line Width | 1; 1–3 | Sets the line width used for local. |
Local Line Style | Dotted; Solid / Dotted / Dashed | Selects the line style used for local. |
Show Local Level Labels | Off | Shows or hides local level labels. |
Local Context Zone Transparency Boost | 30; 0–40 | Sets the local context zone transparency boost parameter used by In-Window Detail. |
Local Render Contract | Draw All Detected In View; Draw All Detected In View / Balanced Selection | Selects the local render contract setting used by In-Window Detail. |
Local Visibility Policy | Never Hide For Clarity; Never Hide For Clarity / Fade Low Priority / Selection Based | Selects the local visibility policy setting used by In-Window Detail. |
Local Hard Object Budget | 420; 50–480 | Sets the local hard object budget parameter used by In-Window Detail. |
Local Overflow Policy | Oldest First Across Window; Oldest First Across Window / Round Robin Left Center Right / Score Then Time | Selects the local overflow policy setting used by In-Window Detail. |
Clip To Visible Price Range | Off | Sets the clip to visible price range parameter used by In-Window Detail. |
Visible Price Padding (ATR) | 3.0; 0–50, step 0.5 | Sets the visible price padding (atr) parameter used by In-Window Detail. |
Local Visibility Preset | Research Visible; Research Visible / Publication Soft / Audit Strong | Selects the local visibility preset setting used by In-Window Detail. |
Local Length Mode | Screen Relative; Screen Relative / Fixed Bars / Until Broken | Selects how local length is calculated or displayed. |
Local Screen Length % | 25.0; 1–100%, step 1 | Sets the local screen length % parameter used by In-Window Detail. |
| Input label | Default / options | What it controls and when to adjust it |
|---|---|---|
Invalidation Mode | Close Beyond; Close Beyond / Two Closes Beyond / ATR Beyond | Selects how invalidation is calculated or displayed. |
Invalidation ATR Mult | 0.25; 0–5, step 0.05 | Sets the multiplier used for invalidation atr. |
Keep Invalidated Zones | On | Keeps or removes invalidated zones. |
Invalidated Zone Age Bars | 150; 10–2000 | Sets the bar count used for invalidated zone age bars. |
Allow Reactivation | On | Allows or blocks reactivation. |
| Input label | Default / options | What it controls and when to adjust it |
|---|---|---|
Max Displayed Zones | 5; 1–20 | Sets the max displayed zones parameter used by Display. |
Show Only Nearby Zones | Off | Shows or hides only nearby zones. |
Nearby ATR Range | 8.0; 0.5–100, step 0.5 | Sets the nearby atr range parameter used by Display. |
Show Zone Fill | On | Shows or hides zone fill. |
Show Center Line | On | Shows or hides center line. |
Show Zone Boundaries | Off | Shows or hides zone boundaries. |
Extend Zones Right | On | Sets the extend zones right parameter used by Display. |
Show Labels | On | Shows or hides labels. |
Label Mode | Compact; Compact / Detailed / None | Selects how label is calculated or displayed. |
Show Invalidated Zones | On | Shows or hides invalidated zones. |
Support Color | #26a69a | Sets the color used for support. |
Resistance Color | #ef5350 | Sets the color used for resistance. |
Mixed Color | #7e8aa0 | Sets the color used for mixed. |
Invalidated Color | #9598a1 | Sets the color used for invalidated. |
Zone Transparency | 85; 0–100 | Sets the transparency of zone. |
Strong Zone Transparency | 75; 0–100 | Sets the transparency of strong zone. |
Invalidated Transparency | 93; 0–100 | Sets the transparency of invalidated. |
Strong Zone Score Threshold | 70; 1–100 | Sets the activation threshold for strong zone score. |
Center Line Width | 1; 1–4 | Sets the line width used for center. |
Strong Line Width | 2; 1–4 | Sets the line width used for strong. |
Label Offset Bars | 5; 1–100 | Sets the bar count used for label offset bars. |
| Input label | Default / options | What it controls and when to adjust it |
|---|---|---|
Show Dashboard | On | Shows or hides dashboard. |
Dashboard Position | Top Right; Top/Bottom/Middle × Left/Right + Top/Bottom Center | Selects where dashboard is placed. |
Dashboard Mode | Compact; Compact / Detailed | Selects how dashboard is calculated or displayed. |
Dashboard Text Size | Normal; Tiny / Small / Normal | Sets the displayed size of dashboard text. |
Right Gap Mode | Auto; Auto / Manual / Off | Selects how right gap is calculated or displayed. |
Manual Right Gap (%) | 2.0; 0–12%, step 0.25 | Sets the manual right gap (%) parameter used by Dashboard. |
Auto Gap Strength | 1.0; 0.5–2, step 0.1 | Sets the auto gap strength parameter used by Dashboard. |
Dashboard Backdrop | High Contrast; Soft / High Contrast / Transparent | Selects the dashboard backdrop setting used by Dashboard. |
Row Stripe Strength | 8; 0–30 | Sets the row stripe strength parameter used by Dashboard. |
Frame Width | 1; 0–3 | Sets the frame width parameter used by Dashboard. |
Background Transparency | 8; 0–100 | Sets the transparency of background. |
Header Transparency | 18; 0–100 | Sets the transparency of header. |
Border Transparency | 25; 0–100 | Sets the transparency of border. |
Dashboard Text Color | white | Sets the color used for dashboard text. |
| Input label | Default / options | What it controls and when to adjust it |
|---|---|---|
Enable Alerts | On | Enables or disables alerts. |
Confirmed Alerts Only | On | Sets the confirmed alerts only parameter used by Alerts. |
Touch Alert Mode | First Touch From Outside; First Touch From Outside / Any Bar Overlap | Selects how touch alert is calculated or displayed. |
Touch Alert Cooldown Bars | 10; 0–500 | Sets the bar count used for touch alert cooldown bars. |
| Input label | Default / options | What it controls and when to adjust it |
|---|---|---|
Context Mode | Auto Hybrid; Auto Hybrid / Live / Visible Range Research | Selects live, visible-range research, or automatic hybrid context. |
Live Visible Tolerance Bars | 3; 0–100 | Sets the bar count used for live visible tolerance bars. |
Show Context Badge | On | Shows or hides context badge. |
Research Lookback Bars | 500; 100–5000 | Sets the bar count used for research lookback bars. |
Research Render Mode | Visible Window; Visible Window / From Zone Origin | Selects how research render is calculated or displayed. |
Research: Only Zones Active At Right Edge | On | Sets the research: only zones active at right edge parameter used by Context Mode. |
Alerts are state, touch or transition events defined in the public source. They are not trade instructions.
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.
A reaction exists only after Pivot Right bars confirm it. Historical pivots must not be treated as immediate signals.
Visible Range Research and local selection reconstruct with scrolling, zooming, object budget and visible-price rules.
Strict profiles can omit useful reactions and Exploratory can add noise. Zones can stop reacting, and score is not win rate.
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.
Clarify confirmation delay, Zone Score, Live versus Research and the 81 In-Window Detail controls.
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.
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.
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.
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.
No. They are independent, short historical reaction lines inside the visible window and follow their own length and end rules.
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.