PP Fractals

v11
PP Fractals

This indicator is called ‘PP Fractals’ as I coded it following a request from ParthaPersonal.

This indicator works on v11 onwards only.

The indicator draws lines extended forward that connect the last two fractals – however the high fractal lines must always be sloping downwards and the low fractal lines always sloping upwards. New lines are only drawn if any new fractal creates a line that meets this sloping criteria with a previous fractal.

The type of fractal can be selected by adjusting the ‘BarsBefore’ and ‘BarsAfter’ settings. So for example settings of 2 and 1 would look for fractals where there are two lower highs before a bars high and one lower high after it. The opposite using higher lows for low fractals.

On a 1 second chart for example you could use settings of 300 and 300 which would look for fractals where there has not been a higher high for 5 minutes (of 1 second bars) either side of the high.

The drawing of the resistance and support lines can be turned on or off using the ‘Resistance’ and ‘Support’ tick boxes.

Points indicating the fractal highs and lows used are drawn and these can be turned off using the ‘Points’ tick box.

As always I recommend downloading the ITF file and importing it to get full functionality.

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

  1. mr blue • 12/18/2020 #

    Nice ! Any idea how to use this in a strategy?

  2. Vonasi • 12/18/2020 #

    I just coded what parthpersonal requested so it is probably best to ask him how he trades the lines:
    https://www.prorealcode.com/topic/joining-last-2-swing-highs-and-last-2-swing-lows/#post-154271

    • Khaled • 12/18/2020 #

      Hi Vonasi, I tried to embed your PP Fractals code in a Strategy and it seems to be a good filter. However, I’ve a problem with the limitation of 1,000,000 values in the Array table. Can you please look at the issue here https://www.prorealcode.com/topic/pp-fractals-error-message/#post-189001. Thanks a million!

  3. Rocco • 12/18/2020 #

    I think he want to eliminate “noise” by cancelling the trendlines on PRT?

  4. MAKSIDE • 12/18/2020 #

    Nice work !
    one question, how your will take position in a auto strategy with the differents points ? as soon as a array’s point is crossed ?

    • Vonasi • 12/18/2020 #

      It is not possible to detect when a drawn ray line has been crossed. It would require different code that calculates the slope of the lines by using the x and y values between the fractals and then calculates this projected forward at each new bar. This is not always accurate though as any missing bars mess up the calculation.

  5. MAKSIDE • 12/18/2020 #

    yes I already tried something like that but it was inconclusive
    thx for sharing

  6. Guibourse • 12/18/2020 #

    Hi, I’d like to increase the thickness of support and resistance lines. I do not think that is possible. Can someone help ? Thanks !

  7. JJ Tec • 12/18/2020 #

    Hello.
    Thanks for the great contribution of the indicator. At the moment, I have modified it to calculate the cut-off point on the trend line, so that I have a value.
    I’m trying to get a screener out but I can’t get it to work. Could you help me?
    Thanks

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+9 more likes

Related users ' posts
Nicolas
6 years ago
Nicolas Merci, faire une demande dans le forum approprié.
Pere Thanks for this good indicator Nicolas. I would like to make the upper and lower limits mor...
Nicolas because fractals are known 2 bars later! that's why I used rectangle to plot them in the past.
gblast I added this indicator to my pro real time but its not showing up on my candles. Its invisible
juanj And the point of violation is the close of the candle that violates the line by generating a...
juanj For the latest version of the strategy or to follow updates and developments see the thread ...
phanz i backtested it with 10K units of EURUSD 1 hour i get an equity curve that is going one way ...
Wing Not yet but I plan to.
Leo Have a look in this Forum, I got something interesting for you... https://www.prorealcode.co...
Dávid Gyalus Dear Wing, As I am a daytrader, and one of my best friend is a programmer we think your a...
Nicolas No sorry, please use this file instead into a prorealtime trading platform.
rdabbs I just installed this indicator. It opens in its own pane rather than overlaid on the chart ...
Nicolas Just apply it on your price chart instead and you're ok.
Samitha Prasanna Hi ALE, would you be able to provide the values for the below part of the code (time >=1...
Player Bonjour, J'ai testé cette stratégie sur EurUSD en 1 heures sur 10000 unités et le résultat ...
Player Vue du rapport du Backtest https://ibb.co/8BMrBz6
owes29 Hi is there anyway to develop this for the pro scanner on daily or hourly scans. so it woul...
Nicolas Of course, please add a query in the proscreener forum.
Bruno Carnazzi C'est dommage, cette histoire d'énergie fractale bousille complètement la précision de l'ind...
dakaodo Hi, Wilko. Acc to the original FRAMA paper by Ehlers, Ehler's own code only takes inputs for...
dakaodo For reference, here is Ehlers' original paper: http://www.mesasoftware.com/papers/FRAMA.p...
dakaodo Here is the code with only SC included, per ETFHQ. pri=customclose //len>=4, even on...
Nicolas
7 years ago
haseluis Hello Niklas, I would like to use the screener for the display in the m15, which changes to ...
Nicolas Nothing to change or you can play with different settings at lines 6 and 7.
haseluis Thank you Niklas, I'm still looking for an indicator 123 or direct to Joe Ross, can you help...
Nicolas
8 years ago
Nicolas add it on price chart, change the cp parameter according to the period you want to observe f...
Robert22 hola buenos días: yo estoy buscando una cosa parecida para realizar con ello un indicador de...
Nicolas https://www.prorealcode.com/prorealtime-indicators/rsi-classical-hidden-divergences-indicator/

Top