Fractals Average

v11
Fractals Average

This indicator draws three average lines. The green line is the average value of the last p swing high fractals and the red line is the average value of the last p swing low fractals. The blue line is the mid point between these two averages.

This indicator only works on PRTv11 onwards.

Set the period used for the average calculation by changing the value of p.

The type of fractal used in the calculation can be changed by adjusting the ‘BarsBefore’ and ‘Bars After’ settings. For example if BarsBefore = 2 and BarsAfter = 1 then the swing high fractals would have a high with two bars preceding it with lower highs and one bar after it with a lower high and the swing low fractals would have a low with two bars preceding it with higher lows and one bar after it with a higher low.

The displaying of the three lines can be turned on or off using the ‘HighFracAverage’, ‘LowFracAverage’ and ‘MidAverage’ settings.

As always I advise downloading and importing the ITF file 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?

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

  1. Rory Dryden • 172 days ago #

    Thank you. Experimenting with it now.

avatar
Register or

Likes

avatar avatar avatar avatar
Related users ' posts
Nicolas Le paramètre showcl doit être en true (égal à 1 )
Lednora Ah oui en effet c’est magique!j’étais resté bloqué sur la ligne 96^^. Merci beaucoup nicolas...
samsampop Merci Nicolas, c'est superb!
Vonasi There are actually two ways to calculate standard deviations and I seem to have used the ver...
segie Can something similar be done with Supertrends?
Vonasi Not sure I fully understand what you are asking for. Are you asking for MTF Supertrend level...
Kris75 very interesting; thanks !
Vonasi I developed and tested on v11.1 - 1.8.0_202. All the array use in the code is very basic. Di...
Vonasi You can find the minor bug fix and new ITF file here: https://www.prorealcode.com/topic/eve...
Reddington Hi Vonasi! Really nice work, is it possible to re-create this to work in 10.3? Best regards ...
Stockastiss Can this code be simply transferred into Backtestingcode so one doesnt need to use call ? (i...
Vonasi Sorry for the late reply. Add the code to your strategy and remove line 5 and line 39. Chang...
leofi https://www.prorealcode.com/topic/simple-average-with-visual-color/
leofi Go visit www.prorealcode.com/topic/simple-average-with-visual-color/ and watch 2em post
Dritan Hi,I am new on Prorealtime and coding.I downloaded the indi but I have it on a separate wind...
Om Hello, thanks for sharing! Getting a message that Variable P is undefined?
Vonasi Sure that is possible. I will code it and make a post in the English ProBuilder forum and pu...
Vonasi Vama v2 with Hull moving average included can be found here: https://www.prorealcode.com/top...
JMat45 Thank you, Vonasi.
Bard Very interesting approach Vonasi! I'm getting a 404 error when trying to download though?
Vonasi I just tested and I was able to download with no error.
Psari Hi Vonasi, I am a newbie and was wondering whether you could possibly help me with this pro...
Nicolas
2 years ago
sophia_etoille83 Merci beaucoup Nicolas, En effet l'ajout du close affiche le même graph, je parlais d'af...
Nicolas Non tu ne parlais pas de cela ?! Il fallait afficher l'indicateur sous le graphe principal e...
sophia_etoille83 Ok Nicolas je vais le poster. Je me suis mal exprimée alors. Je refais un post. Merci Bel...
nectouxg thank you Nicolas of your speed of response, I tried but, I have to fix something badly, bec...
Nicolas change the lastline with: RETURN lastsig and check if lastsig change its value with the a...
nectouxg Hello Nicolas, I will try tonight when I get home, just one last question, I trade the DA...
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.
robertogozzi You can find it at https://www.prorealcode.com/topic/pivot-support-resistance-bands/. I hop...
Bard Yes, thanks, appreciated.
mscharstrom Hi @robertogozzi, I really love this indicator. However, I'd like to tinker with it to fit ...
luxrun Good evening Nicholas, I can not see the colors on the line of the moving average, but only ...
Nicolas Yes, you must choose the oscillator that will color the moving average. Example: ONCE UseC...
XXXXVII Excellent indicateur ! Déterminer une tendance est devenu un jeu d'enfants ! Félicitation......
larouedegann Bonjour Nicolas Je cherche à créer un screener avec cet indicateur lorsque un point bas app...
Nicolas Je pense qu'il existe déjà quelque part dans le forum.. il faudrait chercher. Sinon merci d...
Bhanu Pratap Dear Sir, Can I get MQL4 File for this indicator and last man standing . pls looking forward...
Vonasi Forum discussion on these indicators can be found here: https://www.prorealcode.com/topic/av...
jennr29 Hi. Is it possible to convert this code to an mq4 file?
Nicolas Sorry but our website is dedicated to prorealtime programming. However, you can ask for priv...
Simba Greetings from germany! :) Can you told me your EXIT-strategy for this, please? :) Would ...

Top