Dynamic Flow Ribbons

Dynamic Flow Ribbons

1. Introduction

Dynamic Flow Ribbons is a trend-following ribbon indicator designed to visualize the evolving balance between bullish and bearish momentum (created by BigBeluga).

This tool overlays multiple dynamic bands (“ribbons”) around a central mid-line, adjusting their width based on recent price volatility. Traders use it to identify shifts in trend direction, confirm breakouts, and gauge strength of moves without relying solely on static moving averages.

2. Indicator Overview

At its core, Dynamic Flow Ribbons calculates a typical price (src) and a volatility measure (dist) over a long baseline.

It then constructs upper and lower bands offset from a short moving average of src by multiples of dist.

When price crosses or bends these bands, the indicator flips its “direction” state, altering ribbon coloration and the reference mid-line. This creates a flowing ribbon effect that dynamically expands and contracts as volatility changes.

3. Calculation and Internal Logic

  1. Distance (dist)

    • Computed as a 200-period simple average of the true high–low range:

      dist = average[200](high − low)
  2. Source Price (src)

    • The typical price for each bar:

      src = (high + low + close) / 3
  3. Dynamic Bands

    • Short moving average of src over 15 periods, offset by factor × dist.

    • Lower band initializes or follows its previous value depending on whether it tightens or price probes it.

    • Upper band follows analogous logic in the opposite direction.

  4. Direction Determination

    • The indicator tracks a direction state (1 for bullish, –1 for bearish).

    • When price exceeds the upper band, it flips to bearish (–1); if it falls below the lower band, it flips to bullish (1).

  5. Ribbon Construction

    • Five bands above and below the active trendline are drawn at increments of dist × {–1.0, –0.5, 0, +0.5, +1.0}.

    • The mid-line (iline) is the simple average of upper and lower bands.

  6. Color & Transparency

    • Ribbons adopt “up” or “down” RGB colors, with alpha transparency varying by band proximity to the mid-line.

    • When in a bullish state, the lower ribbons highlight in the “up” color; when bearish, the upper ribbons highlight in the “down” color.

4. Input Parameters

Input Name Default Description
factor 3 Multiplier for volatility distance (dist).
RcolorUp 26 Red component of “up” color (0–255).
GcolorUp 221 Green component of “up” color (0–255).
BcolorUp 127 Blue component of “up” color (0–255).
RcolorDn 231 Red component of “down” color (0–255).
GcolorDn 147 Green component of “down” color (0–255).
BcolorDn 20 Blue component of “down” color (0–255).

5. Recommended Configuration

  • Default Settings work well on higher-timeframe charts (H1 and above) for major FX pairs and stock indices.

  • Increasing factor widens the ribbons, reducing whipsaws in choppy markets—but can delay signals.

  • Reducing factor tightens the ribbons, capturing earlier moves at the cost of more false signals.

  • Color Customization: Choose contrasting RGB values to ensure visibility over your chart background.

6. Usage Examples

  • Bullish Signal: When the price closes above the upper band and ribbons flip color to the bearish palette, it indicates exhaustion of the upmove and potential reversal. A return into the ribbon zone can confirm the renewed uptrend.

  • Bearish Signal: Conversely, a close below the lower band turns ribbons into the bullish palette, suggesting a shift into bullish momentum once price re-enters.

  • Volatility Gauging: Ribbon width expansion signals rising volatility, hinting at a stronger trend continuation. Contraction warns of consolidation or imminent reversal.

Tip: Combine with volume filters or a momentum oscillator (e.g., RSI) to confirm the strength of the ribbon-based signals.

7. ProBuilder Code Placeholder

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

avatar
Register or

Likes

avatar avatar
Related users ' posts
BriceE Bonjour Nicolas, Je suis a la recherche d'indicateurs pour me donner la meilleure indicatio...
Nicolas
2 years ago
Maxime Baudin Well done Nicolas, creative!
Stenozar Hi Nicolas, please can you explain how to read/use this indicator? thanks!
JC_Bywan For people interested in the screener: https://www.prorealcode.com/topic/screener-buy-sell-m...
octum Gracias NJicolas. Las lineas 35 y 36 dan fallo. (¿Es adrede para iniciados?) Puedes co...
mortezaali14 Salut Nicholas, comment exécuter ce fichier dans les métadonnées
Nicolas Yes, Magic if the variable that contains the value of the line, you can test if it goes up o...
dadah1987 Bonjour Nicolas, merci pour cet indicateur. Utilisant pour l'instant la création simplifié p...
Nicolas Merci d'ouvrir un sujet sur le forum avec une description complète du système.
GustavoLoboOrenstein Is it possible to add histogram with only increasing bars?
YvesRobert Bonjour Nicolas, en effet ca marche, je me suis trompé, j'ai bien tout le tracé. C'est parce...
oliTR Bonjour, les conditions longCond et shortCond ne contiennent-elles pas une condition qui s'a...
xpe74 Utilitaire vraiment top, d'autant qu'ajouter des filtres de seuil peux aider a limiter le no...
Jiacky
3 years ago
Kalman Filter
Kalman Filter
0
Indicators
Stenozar Hi Sever, how can I visualize the coloured areas?
Sever Hi Stenozar, You need to add the color zones yourself , just go to Add Color Zone To set ...
atlante hi nicolas this indicator have 2 wrong borderline and islalastbarupdate. thank you can you h...
Nicolas That'"s because you are not using PRT v11? Just remove lines 59 to 62
Kanamax Hi Roberto, sorry for my confusing previous posts (forget them). My request is very simple,...
robertogozzi Please start a new topic in ProOrder support.
robertogozzi There you go: myMagicTrend = CALL “Magic Trend custom”[20, 14, 1, 5] alpha = 105 b = 0...
johann8 exactly :) Thank you all for the help!
max_92 Ciao Roberto, ho scaricato l'indicatore e come ti avevano già scritto sopra anch'io vedo la ...
Xenotrax A première vue, sa à l'air d'être un indicateur très puissant sur de petites temporalités, j...
merri Bonjour Nicolas, Comment transformer cet indicateur en bot sur PRT ?
Nicolas Cela a déjà été fait, voir ce sujet: https://www.prorealcode.com/topic/strategia-con-lindica...
Nicolas change the last line with: return v coloured(r,g,b) style(line,2), v+band coloured(168,168,1...
Paolo.B Thanks ... works as i wanted.
Kanamax Bonjour Nicolas, comme Paolo.B je souhaiterais utiliser cette indicateur au sein d'un code. ...
zilliq Thanks @Nicolas. I tried to use it as Trend in a proorder system, but don't know why, it doe...
Suzu Yuk He is right. MT and mavgMT are not defined and causing errors.....
RakeshPoluri I have a question about the bands on the candles. Is it bollinger bands or something else?
Nicolas I think that's 2 Bollinger Bands
Emperor.it "style(line,2)" C'è una guida ai parametri che si possono modificare ? Tipo stile della lin...
IV Mcm https://www.prorealcode.com/programming-with-prorealtime/
Daniele Maddaluno Écrivez-moi où vous préférez you can easily find me on LinkedIn
AK27 C'est payant visiblement sur linkdin je peux pas vous envoyer, discord vous avez ?

Top