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 avatar
Related users ' posts
jiddan78 how to convert to afl amibroker ?
Nicolas We do not supply free coding assistance for AFL Amibroker on the website. You can ask for pa...
Ngomsi @ Vonasi, how to use timeframe , 13 minutes ,21 minutes, 34 minutes,et 55 minutes with this...
manchokcity can we have it in mql4 platform? or how or which platform do we use it?
camporan I don't use MetaTrader so I won't be able to do the translation myself. Sorry!
Alexander9 This can for amibroker ? . Thanks
riz001 thnk u
geroniman bonjour Nicolas, j ai un indicateur le Tiger . J aiemrai placer des fleches buy et sell dire...
Nicolas Merci de formuler les demandes sur le forum. ça n'est pas le bon endroit et hors sujet ici ! ;)
avatar
Anonymous Hi robertogozzi - thank you very much for sharing this strategy. I have performed various ...
robertogozzi Thank you samsampop.
Dotan Hello guys I really appreciate this coding effort but can I use this code for Mt5 Forex Trad...
LucioleLucide Clean view, thanks for sharing
dertopen hi where i can found the window for candle configuration?
paolosab69 Ciao! . I have seen the pictures that explain this metod but i don't understand when is mome...
coscar Ottimo lavoro. come sempre!
luxrun Nello studio di Sepiashvili viene descritto anche un altro indicatore, il Q-indicator, che è...
Maik2404 wie kann ich den Code bekommen Paul?
jens_kittner Works with US Crude at 1h as well!
Jean-Claude REGIS Je préconise de regarder les graphiques H1 et M15 pour visualiser la tendance de fond et d'...
capgros Bonjour @Nicolas, Thanks a lot for this tool, it is very useful for me. I would like to s...
Hans63 Would you add the possibility to color also the Heikin Ashi and bar chart?
Nicolas That's possible, please open a new topic in the indicator forum explaining what you need exa...
Nicolas
7 years ago
BSTrend
v10.3
BSTrend
10
Indicators
Florian Legeard C’est à dire sur le prix et non sur le temps ? Merci
Rohit82189 bstrend repaints
Nicolas No, it doesn't repaint.
cfta Hi Fulvio, many thanks for sharing this clever indicator, much appreciated. As Pepsmile ment...
cfta Sorry adding the PRT to code didn't work in the above comment so I guess we will have to set...
juanj Something appears to be wrong with this formula as graphing t shows t to almost never be wit...
Nicolas
7 years ago
Maxime Baudin Interesting, Thank you! :)
franck-david Bonjour Nicolas , actuellement je me forme grace a vos videos tres tres bien expliques mer...
Nicolas Merci. ça n'est pas le lieu pour poser ce genre de question :) Merci d'utiliser le forum Pro...
Vonasi Discussion on this indicator/filter can be found here: https://www.prorealcode.com/topic/121...
Domenec Claro Juanjo de todas maneras en deinversoratrader.com tienes estsos osciladores evolucionad...
Dron Hola Domenec, en la descripción hablas del indicador velas de colores, no lo encuentro en la...
Domenec Hola Dron mira en el blog deinversoratrader.com en formacion indicadores ahi hay varios grat...
Geronima Ortiz I watched the video three times, but I can not put the npips parameter as a variable. I do...
Geronima Ortiz I think the video is for an old version of prorealtime, the images do not correspond at all ...
Nicolas indicator1 = CALL “PRC_StopReversal”[npips, 1] and define npips in the optimization window ...
Caribeengeek Bonjour j’avais vu que vous proposiez d’écrire des codes pour ceux qui s’y connaisse pas Mai...
Caribeengeek Les devises unité
Nicolas Merci d'utiliser le forum pour les demandes de programmation personnalisée
ullle73 nicolas, can you somehome make this to be in the background of the price chart?
jonpt88 none did that yet right?
Nicolas You can ask for a code modification on forums, please open a new topic with your request.
Toto le Heros Thanks Nicolas. I read somewhere that in the calculation, we should round the value of the A...
Nicolas aADX = round(adx[10])
bolsatrilera
7 years ago
Rainbow Oscillator
Rainbow Oscillator
1
Indicators
Maxime Baudin Interesting, thanks! Combine this indicator with the bollinger bands there is enough to make...

Top