Fractal Bands – Fractalised Bollinger Bands

Fractal Bands – Fractalised Bollinger Bands

The Fractal Bands is a implementation of the Fractal Dimension into the Bollinger Bands. It’s purpose is to find potential mean reversion opportunities when price touch the upper or lower bands. The upper and lower bands are built open a FRASMA (Fractally Modified Simple Moving Average)

e_period (integer): This is the period considered for calculating the fractal dimension, default is 30.
normal_speed (integer): This is the speed of the SMA before being modified to become the FRASMA, default is 30.
alpha (real): This is the alpha from equation (2), default is 2.

Note from the author (Jean-Philippe Poton) about the use of the indicator:

The strategy is quite straightforward.
I enter in a BUY position after the price have rebounded (after touching it) from the lower band and crossed the FRASMA, my Stop Loss is then set to the level the prices hit the lower band, and my Take Profit is when the prices hit the higher band.
Symmetrically, I enter a SELL position after the price have fallen from the higher band (after touching it) and crossed the FRASMA, Stop Loss set at the level of the hit of the higher band, and Take Profit when the lower band is hit.
It is obviously possible (and even advised) to make your Stop Loss trailing the price changes.
I used this strategy for EUR/USD on a 5 minutes timeframe, using it on other timeframes or on other instruments may require a different setup, mine was to set the speed of the FRASMA at 30, and α=2 (in equation (2) above), it is possible to change these values.


Indicator translated from MT4 version by a request in the French forum.


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?

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

  1. Maz • 07/10/2017 #

    I like this

  2. atlante • 07/10/2017 #

    je me demande si prorealtime pourrait etre programee sur fonction lorsquún point cgange de clouleur independament de la valeur mis comme condition merci

  3. lizmerrill • 07/10/2017 #

    can you provide this code for tradestation, please. Thanks

  4. Nicolas • 07/10/2017 #

    No sorry, please use this file instead into a prorealtime trading platform.

  5. rdabbs • 84 days ago #

    I just installed this indicator. It opens in its own pane rather than overlaid on the chart like the pic above. How do I get it on top of the chart?

    • Nicolas • 84 days ago #

      Just apply it on your price chart instead and you’re ok.

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Carlos Garcia why doesn´t work on Dax?
Nicolas Try to restrain to trading hours when Volumes are present (customized trading hours: righ cl...
Brisvegas Thats Awesome thank you
carlvan Thank you for posting this, useful
rama This is one of best indicator to trade any time frame
Madrosat Is this indicator as it is , useful in strategy automatic
ottimo Congratulations Nicolas, What should I do for the 2 files I have to add them both in the gr...
Nicolas Only the "//PRC_StepALMA-VHF Hi/Lo band" is required, it uses the second code automatically....
ottimo Thank you Nicolas, great indicator, N. 1
Nicolas Yes, that's how it goes when using loops..
JosephFelix Hi, Could I please have help with adding these indicators 'on price'? Every indicator that I...
Nicolas Just add it on price by clicking the wrench on the left upper side of the price chart.
abd78 @Vonasi I saw that you did some work on seasonality, I wondered if you wanted to go here and...
Vonasi Sorry - my understanding of Italian is zero so if I watch the video I won't understand it I'...
Traderfox06 Bonjour Nicolas, thanks for this genius contribution and all the best for 2019. I really l...
Nicolas Please open a new topic if you need custom coding.
Rory Dryden I like the look of this. I shall try it tomorrow.
Jan Wind Thanks for the indicator. I will try if this indicator in combination with my favorite (sta...
Gianluca Hello Nicolas, my prt become stuck when i load the indicator, is there any problem with it?
m-zeter Has anyone found a solution for Sofitech? Would it be possible to draw two lines? An upper l...
m-zeter Hm, i dont know exactly why, but I think, that the indicator needs lots of power. I need als...
Juanjo Hola?. Exactamente cuál es su utilización?.
bolsatrilera Hola Juanjo, su principio esparecido a las bandas de Bollinguer.Las lineas de las bandas son...
anametsinwha Is it possible to change it to highs and lows rather than open and close?
apachx Hi. Please, describe the algorithm in words. I want to understand how it works, but for now...
11 months ago
matthieuatd Bonjour Merci pour ce code il m'apporte beaucoup par contre est il possible que tu réalises...
Nicolas Merci, faire une demande dans le forum approprié.
Madrosat Bonjour Nicolas la formule du stop loss est elle vraiment valable ?? il n'y a pas au depart ...
Nicolas Il y a peut-être un erreur en effet, essayer avec: set stop ploss (averagetruerange[14] * ...
Madrosat ok merci Nicolas c'est avec /pipsize que ça fonctionne