OPEN-SOURCE SCRIPT

SUPERTREND RIBBON

1 649
supertrend ribbon

supertrend ribbon is a confirmed trend ribbon built from multiple supertrend bands. it is designed to show a clean, stable, and readable market direction directly on the chart.

instead of allowing each band to change color separately, the ribbon uses one master trend state. this keeps the full ribbon in one confirmed color and helps avoid visual fragmentation, false flips, and noisy mid-trend breaks.

the goal is simple: show whether the market is in a confirmed bullish or bearish trend, while keeping the chart clean and easy to read.

---

main concept

the indicator uses 8 supertrend bands with different factors.

each band can be bullish or bearish.
the script counts how many bands are aligned in the same direction.
when enough bands confirm a new direction, the full ribbon changes trend.

this creates a more stable trend filter than a single supertrend line, because the ribbon does not flip on every small price movement.

---

what the indicator shows

trend ribbon
the ribbon shows the dominant trend state.
green means confirmed bullish trend.
red means confirmed bearish trend.

band lines
the internal band lines can be displayed to see the full structure of the ribbon.

ribbon fill
the fill between the bands makes the trend easier to read visually.

core line
the core line gives a fast reference for the main trend path.

confirmed flip markers
markers appear only when a trend flip is confirmed.

trend background tint
a soft background color can be enabled to show the current trend regime.

dashboard
the dashboard shows the current trend, the number of aligned bands, flip requirements, fast core direction, and early long / short validity.

---

inputs guide

atr period
sets the atr period used by the supertrend bands.
a lower value makes the ribbon more reactive.
a higher value makes the ribbon smoother and more stable.

base factor
sets the starting supertrend factor.
a lower value keeps the ribbon closer to price.
a higher value makes the ribbon wider and more filtering.

factor step
sets the spacing between the 8 supertrend bands.
a lower value makes the bands tighter.
a higher value makes the ribbon wider.

bands to confirm a flip
sets how many bands must confirm a new direction before the ribbon changes color.
a higher value reduces false flips.
a lower value makes the ribbon faster.

confirm for n bars
sets how many bars the confirmation condition must remain valid before the trend flips.
1 is faster.
2 or 3 is stricter and can reduce whipsaws.

show band lines
shows or hides the internal ribbon lines.

show ribbon fill
shows or hides the fill between the bands.

core glow
enables a glow effect around the core line.

show core line
shows or hides the main core line.

show confirmed flip markers
shows or hides confirmed trend flip markers.

trend background tint
enables or disables the soft trend background.

show dashboard
shows or hides the dashboard.

dashboard position
sets the dashboard position on the chart.

bull
sets the bullish trend color.

bear
sets the bearish trend color.

accent / transition
sets the accent color used for dashboard and transition information.

neutral
sets the neutral text and information color.

---

how to use the indicator

the ribbon is best used as a trend filter.

when the ribbon is green, the market is in a confirmed bullish trend.
in this condition, long setups have priority.

when the ribbon is red, the market is in a confirmed bearish trend.
in this condition, short setups have priority.

the ribbon should not be used as a standalone entry signal.
its main purpose is to help avoid trading against the dominant trend.

---

beginner tutorial

1. add the indicator to the chart.

2. start with the default settings.

3. look at the ribbon color.

4. if the ribbon is green, focus mainly on long opportunities.

5. if the ribbon is red, focus mainly on short opportunities.

6. avoid buying when the ribbon is red.

7. avoid selling when the ribbon is green.

8. use confirmed flip markers to identify confirmed trend changes.

9. use the dashboard to check how many bands are aligned.

10. combine the ribbon with market structure, volume, support and resistance, order blocks, liquidity zones, and proper risk management.

---

simple usage example

if price is above the ribbon and the ribbon is green, the market is in a bullish trend.

a trader can wait for price to pull back toward the ribbon, then look for a bullish reaction before considering a long setup.

if price is below the ribbon and the ribbon is red, the market is in a bearish trend.

a trader can wait for price to pull back toward the ribbon, then look for a bearish rejection before considering a short setup.

---

order block filter example

a bullish order block is stronger when the ribbon is green.

a bearish order block is stronger when the ribbon is red.

if a long setup appears while the ribbon is red, the setup is more risky.

if a short setup appears while the ribbon is green, the setup is more risky.

the ribbon can therefore be used as a confirmation filter before taking early entries.

---

beginner settings

atr period: 10
base factor: 1.0
factor step: 0.4
bands to confirm a flip: 6
confirm for n bars: 1
show band lines: on
show ribbon fill: on
show core line: on
show confirmed flip markers: on
trend background tint: personal preference
show dashboard: on

this setup gives a balanced mix of reactivity and stability.

---

stricter settings

bands to confirm a flip: 7
confirm for n bars: 2 or 3

this setup reduces false flips, but trend changes appear later.

---

faster settings

bands to confirm a flip: 5
confirm for n bars: 1

this setup reacts faster, but it can create more false flips in choppy markets.

---

important notes

the ribbon shows a trend regime, not a guaranteed entry signal.

the best use is to trade in the direction of the ribbon.

confirmed flips are more reliable than fast color changes.

a green ribbon means long setups have better context.

a red ribbon means short setups have better context.

risk management is required on every trade.

supertrend ribbon is designed to make trend direction clear, reduce visual noise, and help traders stay aligned with the dominant market structure.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.