Supertrend Transition Framework Guide | SG Group
Skip to content
Japanese page

FreeOpen sourcePine Script v6

TradingView Free Indicator

Calculate Fast, Base and Slow ATR Supertrend profiles and organize direction agreement, ATR distance to the Base boundary, Pressure, recent flips, touches, cascades, trail slope and ATR drift.

Trend / ATR boundary
Real chart published on TradingView: Supertrend Transition Framework
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.
PurposeContext around Supertrend transitions
Best forATR-boundary distance and history study
Primary outputThree trails, table and optional events
Chart placementPrice-chart overlay
01 — Overview

Move from one flip line to three-profile transition context

Base is the primary visible trail, with Fast 7×2, Base 10×3 and Slow 21×4 as starting defaults. Agreement requires at least two valid profiles. Base-boundary proximity is mapped to a 0–100 Pressure score.

What it visualizes

Fast/Base/Slow trails, Compact through Detailed tables, optional tint, Base-flip or all-event labels, State, Fingerprint, Transition context, Agreement, Boundary distance and Flip age.

How it works

Each profile maintains its ATR bands and direction. Agreement Score averages the enabled direction signs. Pressure inversely scales Base trail distance in ATR units and is proximity, not flip probability.

Agreement needs two profiles

A valid Base and at least one additional valid profile are required; otherwise the table says Need 2+ valid profiles.

Distance and Pressure

Boundary distance is absolute close-to-Base-trail distance divided by Base ATR. Higher Pressure only means nearer.

Flip, touch and cascade

Flip age, rising-edge boundary touch and same-direction flips inside the cascade window are recorded separately.

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.

Supertrend Transition Framework

Open the public Supertrend Transition Framework 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. A standard Supertrend, ATR stop, Keltner channel and all three profiles can duplicate stepped trails and reference lines. Preserve the default Base-only view until every source is identified.

  • Keep Show line off for Fast and Slow at first and identify the Base profile alone.
  • If several trails are needed, separate Color, Width and Transparency and temporarily hide another Supertrend.
  • Do not combine background tint or event labels with another background or label study until sources are clear.
  • Do not count trail overlap or Full cascade as several independent trade reasons.
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.

Verify Base and profile count

Resolve Need profiles, Need base profile and Warming up before reading State.

Separate agreement from distance

Direction agreement and proximity are different axes. High Pressure is not a flip forecast.

Read history as history

Flip age, last touch and partial/full cascade describe recent events, not the next direction.

Status and display terms

Upward / Downward agreement

At least two valid profiles agree beyond the threshold; not a forecast.

Mixed profiles

Valid profile directions do not satisfy an agreement threshold.

Boundary distance

Absolute close-to-Base-trail distance in Base ATR units.

High / Moderate / Low pressure

Proximity to the Base boundary; high is not flip probability.

Partial / Full cascade

Some / all valid profiles flipped into the Base direction inside the lookback.

Rising / Falling / Flat trail

Slope of the Base trail itself, distinct from price momentum.

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.

Calculation

4 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Band sourcehl2Price series used to center the ATR bands.
Flip sourceclosePrice series used to confirm Supertrend direction flips.
Confirm events on bar closetrueRestricts event qualification to confirmed bar closes.
Use automatic warm-uptrueAutomatically waits for the active calculation lengths to warm up.

Fast profile

7 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
EnabletrueEnables the Fast Supertrend profile.
ATR length7 | min: 1ATR length for the Fast profile.
Multiplier2.0 | min: 0.1 | step: 0.1ATR multiplier for the Fast profile.
Show linefalseShows the Fast trail line.
Color#787B86Fast trail line color.
Width1 | range: 1–4Fast trail line width.
Transparency40 | range: 0–100Fast trail transparency.

Base profile

7 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
EnabletrueEnables the anchor Base Supertrend profile.
ATR length10 | min: 1ATR length for the Base profile.
Multiplier3.0 | min: 0.1 | step: 0.1ATR multiplier for the Base profile.
Show linetrueShows the Base trail line.
Color#2962FFBase trail line color.
Width2 | range: 1–4Base trail line width.
Transparency0 | range: 0–100Base trail transparency.

Slow profile

7 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
EnabletrueEnables the Slow Supertrend profile.
ATR length21 | min: 1ATR length for the Slow profile.
Multiplier4.0 | min: 0.1 | step: 0.1ATR multiplier for the Slow profile.
Show linefalseShows the Slow trail line.
Color#B2B5BESlow trail line color.
Width1 | range: 1–4Slow trail line width.
Transparency40 | range: 0–100Slow trail transparency.

Structure thresholds

11 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Agreement threshold60 | range: 0–100Agreement-score threshold for upward or downward agreement.
Pressure ATR window2.0 | min: 0.1 | step: 0.1ATR-distance window mapped to the 0–100 pressure score.
High pressure threshold70 | range: 0–100Threshold for High boundary pressure and its event.
Boundary touch tolerance ATR0.15 | min: 0 | step: 0.05ATR-distance tolerance for a boundary touch.
Cascade lookback20 | range: 1–200Lookback within which aligned flips form a cascade.
Trail slope lookback5 | min: 1Bars used to measure Base-trail slope.
Trail slope flat threshold %0.02 | min: 0 | step: 0.01Percent-change threshold treated as a flat trail.
ATR drift lookback10 | min: 1Bars used to measure Base-ATR drift.
ATR drift threshold %5.0 | min: 0 | step: 0.5Percent threshold separating rising, falling, and steady ATR input.
Minimum state bars for event1 | range: 1–20Required state persistence before a state event.
Event cooldown bars0 | range: 0–50Cooldown between final events.

Display

10 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Show context tabletrueShows the context table.
Table layoutCompact | options: Compact, Standard, DetailedSelects Compact, Standard, or Detailed table content.
Table positionTop right padded | options: Top right padded, Top right, Top center, Middle right, Bottom right, Bottom centerSelects table position; padded adds top-right spacing.
Table text sizeNormal | options: Tiny, Small, Normal, LargeSets table body text size.
Label modeOff | options: Off, Base flips, All eventsSelects which confirmed event labels appear on the chart.
Show background tintfalseShows a state-based background tint.
One event per bartrueLimits final output to the highest-priority event per bar.
Maximum event labels50 | range: 10–200Maximum event labels retained on the chart.
Show realtime statustrueShows confirmed/realtime status in the table.
Show bar status in compact layoutfalseAdds the bar-status row to Compact layout.

Context table style

9 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Header text sizeNormal | options: Tiny, Small, Normal, LargeSets table-header text size.
Frame width1 | range: 0–5Table frame width.
Border width1 | range: 0–5Table cell-border width.
Alternating rowstrueUses alternating row backgrounds.
State row highlighttrueHighlights the current State row.
Top right padded spacing2 | range: 0–8Spacing used by Top right padded placement.
Fixed cell sizingfalseUses explicit cell sizing instead of automatic sizing.
Label/value width0 | range: 0–30Fixed label/value cell width; zero leaves it automatic.
Row/header height0 | range: 0–10Fixed row/header height; zero leaves it automatic.

Visual customization

14 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Positive structure color#26A69APositive/upward structure color.
Negative structure color#EF5350Negative/downward structure color.
Neutral structure color#B2B5BEMixed or neutral structure color.
Active trail color#FFA726Active Base-trail highlight color.
Table background#1E222D | transparency: 10Table background color and transparency.
Table header background#2A2E39 | transparency: 0Table-header background color and transparency.
Table text color#D1D4DCTable body text color.
Table alt row background#2A2E39 | transparency: 40Alternate-row background color and transparency.
Table state highlight#2962FF | transparency: 70State-row highlight color and transparency.
Table border color#363A45Table border color.
Table frame color#363A45Table frame color.
Fill / tint transparency90 | range: 0–100Fill and background-tint transparency.
Label transparency10 | range: 0–100Event-label transparency.
Label text color#FFFFFFEvent-label text color.
05 — Alerts

Alerts report events, not decisions

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

  • Base Supertrend flipped upward or downward.
  • Profiles reached upward/downward agreement or became mixed.
  • Boundary pressure reached threshold, Boundary touch observed and Cascade context changed.
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.

Trails lag

ATR boundaries derive from past price. Agreement can persist, unwind or flip.

Pressure is not probability

Higher means closer to the active boundary, not greater risk, flip probability or a recommended stop.

Defaults are not optimized

ATR length, Multiplier, Band source and Flip source materially change each boundary.

Important

Base trail, Agreement, Pressure and Cascade are related outputs from the same ATR-boundary family. Do not count them as independent trade signals or turn the line into an order.

07 — FAQ

Frequently asked questions

Clarify Agreement, Pressure, touches, cascades and non-optimized defaults.

Is Supertrend Transition Framework 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.

Does High boundary pressure mean a flip is likely?

No. It only maps current proximity to the Base boundary onto 0–100. It is not flip probability, risk size or a recommended stop.

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.