Fractals Box

Fractals Box

This indicator represents the last levels of fractals with boxes allowing to trade the breakouts of these zones of supports and resistances.

Boxes are created on the fly at each new bar. The indicator using loops being prone to heavy calculation, I suggest you use only a relatively weak lookback period (parameter to be changed in the indicator window).

It is possible to modify the transparency of boxes using the variable “alpha”, located at 100 by default (maximum = 255).The boxes can be of different colors by adjusting the MaxPipsBox setting highlighting red boxes larger than MaxBoxPips.

The indicator has been converted from a Metatrader4 version following a request from someone in the corresponding 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. swapping • 02/08/2018 #

    Toujours aussi prolifique Nicolas 😉 Ce sera donc du Darvas à la sauce Forex, excellent je prends …

  2. juanj • 02/08/2018 #

    Kinda reminds me of Renko Trading

  3. Real Pro • 339 days ago #

    Hi Nicolas, I’m having trouble changing the colours according to the instructions you gave. Could you explain please?

    • Nicolas • 339 days ago #

  4. matthieuatd • 104 days ago #

    Merci pour ce code il m’apporte beaucoup par contre est il possible que tu réalises une version qui remplace les boites par des segments?

    Merci d’avance, un fidèle de tes codes!!!


    • Nicolas • 104 days ago #

      Merci, faire une demande dans le forum approprié.

  5. Pere • 27 days ago #

    Thanks for this good indicator Nicolas.
    I would like to make the upper and lower limits more visible on the graph, and I change the last line “return” to “return price4, price12”, but unfortunately it draws both prices 2 bars later. Is there any way to draw both prices on the same bar than the rectangles?

    • Nicolas • 27 days ago #

      because fractals are known 2 bars later! that’s why I used rectangle to plot them in the past.

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Nicolas Apply it on the price chart.
Milochenta thank you very much, it was a beginner's mistake
TheDisciplinedTrader Much appreciated Nicolas! I have been looking for something to highlight reversal bars for q...
Vonasi There is another version of this indicator that can plot the same lines but onto an indicato...
Martin35 Hello Vonasi, do you think it is possible with PRT to code with the same principle as on thi...
abhay I am getting a shading between the lines, how can I avoid that. I just want to see lines as ...
Vonasi Delete the 'Color Zone' in the indicator settings window.
rama This is one of best indicator to trade any time frame
Madrosat Is this indicator as it is , useful in strategy automatic
Paul updates are posted in topic below
eugenio buongiorno paolo , volevo farti i complimenti x il lavoro fatto , funziona molto bene sul 3 ...
Modes68 muy buena estrategia, gracias por compartirla thank yoy for your estrategy, I like me
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.
Simba Greetings from germany! :) Can you told me your EXIT-strategy for this, please? :) Would ...
Eric If you have a high percentage winners and the trades are closed with take profit the spread ...
Casenova I Agree with you JaunJ, and Yes Eric, what you say makes sense too. Optimizing the Stop Loss...
ET Thanks for the system Casenova. In determining the high of the past 4 bars, is there a reaso...
JanWd Hey Doctrading, I tried your code, optimising the A and V and the RSI period, see below. ...
Glen Marquis This will work as there is plenty of room for the Target before the Stop, yet the Stop would...
magicT I did a copy and paste of this code and PRT 10.3 returns a synthax mistake: OneTradePerD...
fserra Ciao, scusami ma non mi esegue il back test, da cosa può dipendere? Grazie
reb Hello have you used this strat since last year ? live or Back test ? What are the results ?
beeb Yes last Year. But only back test
Alai-n Merci pour ce travail...
patmaba merci Alai-n. C'est ma première participation sur prorealcode, merci pour à toi pour ton co...
Nicolas What do you want to do exactly? Because dots are plotted afterwards..
rama I want to place buy or sell order just after the last man , what is the code to use ? i tr...
Nicolas But it should, please open a new specific topic in the ProOrder automatic trading forum.
TempusFugit Masala, thanks for your contribution. I don´t like the offmarket spreads neither ;) I unders...
Uveus Tempus, me da un error al validar el codigo, sobre la variable N. Al crear el indicador me ...
TempusFugit Hi Uveus, I am guessing you inserted the code of the indicator into the system code, is ...