OPEN-SOURCE SCRIPT
Atualizado Ribbon Conviction System

Ribbon Conviction System — Trend, Flow, Value and Adaptive Stop
Overview
This is a single decision-support system for intraday traders. It answers three questions on one chart: which way is the trend, how much conviction is behind the current move, and where a logical trailing stop sits. A moving-average ribbon defines direction, a conviction score from 0 to 100% grades every signal, and an adaptive volatility stop marks risk. The components are designed to work together as one filtered signal, not as a loose collection of separate indicators.
Why these components are combined
A moving-average crossover on its own fires constantly in sideways markets and gives no sense of whether a cross is meaningful. Each part added here exists to fix a specific weakness of the part before it, so the result is one filtered signal rather than several indicators stacked on a chart.
Ribbon (direction). Five Fibonacci-length averages — 8, 13, 21, 34, 55 — using a mix of Hull, EMA and Kaufman Adaptive Moving Average (KAMA). The KAMA anchors deliberately flatten in choppy conditions, so the ribbon stops giving direction when there is no trend. Weakness it leaves open: a crossover can still fire on a weak, low-conviction move.
Conviction score (filter). Instead of taking every crossover, each signal is graded 0–100% by blending four independent readings of the same bar, chosen because they measure different things rather than repeat each other:
Buy/sell flow — net buying versus selling pressure, inferred from lower-timeframe price-and-volume behaviour.
Effort vs move — how far price travelled for the volume spent; absorption and churn are penalised.
Trend quality — Kaufman Efficiency Ratio: directional travel divided by total path, separating trend from noise.
Price location — is price on the right side of value? Blends session VWAP slope, a swing-anchored VWAP, the session volume-profile value area (VAH/VAL/POC), and the prior session's VWAP and unfilled POC.
A flow-toxicity proxy (VPIN-style) then lowers the score when flow looks one-sided and unstable. Weakness it leaves open: all four readings come from the chart timeframe, so they can agree for the wrong reason.
Higher-timeframe agreement (independent confirmation). The same volatility-stop direction is computed on 3×, 5× and 15× the chart timeframe and folded in as a multiplier, not a fifth blended input. It is kept separate precisely because it is the one genuinely independent check on the chart-timeframe score: full agreement raises conviction, disagreement lowers it.
Adaptive volatility stop (risk). A Chande-style volatility stop whose ATR period and multiplier adapt through the Efficiency Ratio, so the stop tightens in clean trends and widens in chop. This turns the tool from "where is the signal" into "where is my risk if I take it."
How they work together
Direction (ribbon) decides the side. The conviction score decides whether a crossover on that side is worth showing and how strongly. Higher-timeframe agreement scales that conviction up or down. The adaptive stop shows the exit reference. Every signal is the product of all four stages working in sequence.
What it plots
The five-average ribbon with shaded bands; the 55 line is the bold trend-reference band.
Signal badges at qualifying crossovers, labelled with the band crossed and the conviction percent (for example "21 65%").
Optional value references: session VWAP, swing-anchored VWAP with bands, volume-profile VAH/VAL/POC, and the prior session's VWAP and POC.
The adaptive volatility stop as a step line with a live distance label.
A compact dashboard summarising trend, conviction and each component, higher-timeframe agreement, the stop, and the data mode.
A small higher-timeframe agreement ribbon.
How to use
Add it to an intraday chart. The defaults suit index futures, but direction works on any symbol.
Spot vs futures: many spot indices publish no real volume, which the flow, value-area and toxicity parts depend on. Under "Data source" the script auto-detects this and switches the volume-based parts to a time-at-price method so everything still works; you can also set the mode manually. The dashboard "Data" row shows which mode is active.
Trade in the ribbon's direction. Prefer signals with a higher conviction percent and higher-timeframe agreement, and treat low-conviction crosses as noise. Use "Hide signals weaker than" to suppress them.
Use the adaptive stop as a trailing-risk reference, sized to your own plan.
The "Look & size" group controls signal size, dashboard size and position, a "Minimal" preset (ribbon + signals + stop only), and band lightness.
Originality
The individual techniques — adaptive moving averages, the Efficiency Ratio, effort-versus-result, VWAP, volume profile and volatility stops — are publicly documented. What is original here is the integration: a single conviction score that fuses chart-timeframe flow, effort, efficiency and value, damps it by flow toxicity, and scales it by independent higher-timeframe agreement, then gates an adaptive-stop-aware signal on that score. The components were selected so each covers a distinct weakness, and redundant filters were deliberately left out to keep one clear signal.
Credits
Perry Kaufman — Adaptive Moving Average and Efficiency Ratio. Tushar Chande — Volatility Stop concept. The effort-versus-result component is an original, compact reimplementation inspired by the publicly described effort-versus-result method from the volume-spread-analysis lineage.
Disclaimer
This script is for education and information only. It is not financial, investment or trading advice and does not guarantee any outcome. Signals describe current conditions; they do not predict the future. Markets carry substantial risk of loss. Volume-based readings depend on the data feed and are unreliable on instruments without real volume. Always test on your own market and timeframe, and manage risk with your own stops and position sizing. The author is not a licensed financial advisor; consult a qualified professional before making financial decisions. You are solely responsible for your own trading decisions.
Overview
This is a single decision-support system for intraday traders. It answers three questions on one chart: which way is the trend, how much conviction is behind the current move, and where a logical trailing stop sits. A moving-average ribbon defines direction, a conviction score from 0 to 100% grades every signal, and an adaptive volatility stop marks risk. The components are designed to work together as one filtered signal, not as a loose collection of separate indicators.
Why these components are combined
A moving-average crossover on its own fires constantly in sideways markets and gives no sense of whether a cross is meaningful. Each part added here exists to fix a specific weakness of the part before it, so the result is one filtered signal rather than several indicators stacked on a chart.
Ribbon (direction). Five Fibonacci-length averages — 8, 13, 21, 34, 55 — using a mix of Hull, EMA and Kaufman Adaptive Moving Average (KAMA). The KAMA anchors deliberately flatten in choppy conditions, so the ribbon stops giving direction when there is no trend. Weakness it leaves open: a crossover can still fire on a weak, low-conviction move.
Conviction score (filter). Instead of taking every crossover, each signal is graded 0–100% by blending four independent readings of the same bar, chosen because they measure different things rather than repeat each other:
Buy/sell flow — net buying versus selling pressure, inferred from lower-timeframe price-and-volume behaviour.
Effort vs move — how far price travelled for the volume spent; absorption and churn are penalised.
Trend quality — Kaufman Efficiency Ratio: directional travel divided by total path, separating trend from noise.
Price location — is price on the right side of value? Blends session VWAP slope, a swing-anchored VWAP, the session volume-profile value area (VAH/VAL/POC), and the prior session's VWAP and unfilled POC.
A flow-toxicity proxy (VPIN-style) then lowers the score when flow looks one-sided and unstable. Weakness it leaves open: all four readings come from the chart timeframe, so they can agree for the wrong reason.
Higher-timeframe agreement (independent confirmation). The same volatility-stop direction is computed on 3×, 5× and 15× the chart timeframe and folded in as a multiplier, not a fifth blended input. It is kept separate precisely because it is the one genuinely independent check on the chart-timeframe score: full agreement raises conviction, disagreement lowers it.
Adaptive volatility stop (risk). A Chande-style volatility stop whose ATR period and multiplier adapt through the Efficiency Ratio, so the stop tightens in clean trends and widens in chop. This turns the tool from "where is the signal" into "where is my risk if I take it."
How they work together
Direction (ribbon) decides the side. The conviction score decides whether a crossover on that side is worth showing and how strongly. Higher-timeframe agreement scales that conviction up or down. The adaptive stop shows the exit reference. Every signal is the product of all four stages working in sequence.
What it plots
The five-average ribbon with shaded bands; the 55 line is the bold trend-reference band.
Signal badges at qualifying crossovers, labelled with the band crossed and the conviction percent (for example "21 65%").
Optional value references: session VWAP, swing-anchored VWAP with bands, volume-profile VAH/VAL/POC, and the prior session's VWAP and POC.
The adaptive volatility stop as a step line with a live distance label.
A compact dashboard summarising trend, conviction and each component, higher-timeframe agreement, the stop, and the data mode.
A small higher-timeframe agreement ribbon.
How to use
Add it to an intraday chart. The defaults suit index futures, but direction works on any symbol.
Spot vs futures: many spot indices publish no real volume, which the flow, value-area and toxicity parts depend on. Under "Data source" the script auto-detects this and switches the volume-based parts to a time-at-price method so everything still works; you can also set the mode manually. The dashboard "Data" row shows which mode is active.
Trade in the ribbon's direction. Prefer signals with a higher conviction percent and higher-timeframe agreement, and treat low-conviction crosses as noise. Use "Hide signals weaker than" to suppress them.
Use the adaptive stop as a trailing-risk reference, sized to your own plan.
The "Look & size" group controls signal size, dashboard size and position, a "Minimal" preset (ribbon + signals + stop only), and band lightness.
Originality
The individual techniques — adaptive moving averages, the Efficiency Ratio, effort-versus-result, VWAP, volume profile and volatility stops — are publicly documented. What is original here is the integration: a single conviction score that fuses chart-timeframe flow, effort, efficiency and value, damps it by flow toxicity, and scales it by independent higher-timeframe agreement, then gates an adaptive-stop-aware signal on that score. The components were selected so each covers a distinct weakness, and redundant filters were deliberately left out to keep one clear signal.
Credits
Perry Kaufman — Adaptive Moving Average and Efficiency Ratio. Tushar Chande — Volatility Stop concept. The effort-versus-result component is an original, compact reimplementation inspired by the publicly described effort-versus-result method from the volume-spread-analysis lineage.
Disclaimer
This script is for education and information only. It is not financial, investment or trading advice and does not guarantee any outcome. Signals describe current conditions; they do not predict the future. Markets carry substantial risk of loss. Volume-based readings depend on the data feed and are unreliable on instruments without real volume. Always test on your own market and timeframe, and manage risk with your own stops and position sizing. The author is not a licensed financial advisor; consult a qualified professional before making financial decisions. You are solely responsible for your own trading decisions.
Notas de Lançamento
Just updating chartNotas de Lançamento
Use the Script on data stream which has volume .. i.e. NIFTY futures or BANKNITY futuresNotas de Lançamento
Minor UpdateNotas de Lançamento
Minor updateNotas de Lançamento
minor updateScript de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.