"Bill Williams' Fractals" WITH Arrows & Levels
Forums › ProRealTime English forum › ProBuilder support › "Bill Williams' Fractals" WITH Arrows & Levels
- This topic has 6 replies, 3 voices, and was last updated 6 years ago by Nicolas.
-
-
05/14/2017 at 7:47 PM #35504
Hi all,
Sorry for being far from this site, these last weeks… I’m very busy, but still happy to trade and post some codes. These times I did prefer manual trading… but this trading is made with the help of custom indicators.
Here is one of these indicators.
As you know, there was already a code of the Fractals of Bill Williams on prorealcode.com.
But I wanted to create this code myself.
And I did add Arrows, so that you can visualize the fractals as if you were on Metatrader for example.On the picture, you can see :
- the support / resistance levels (in blue, but you can change the colors)
- the fractals themselves (with arrows)
You can change the period of the fractals.
Best regards,
1234567891011121314151617181920212223242526272829303132// Code : Fractales// www.doctrading.fr// Visualisation des fractales avec flèchesArrow = 0// Nombres de bougies constituant la fractale (impair)Ncandles = 5// Nombres de bougies de chaque côté de la bougie extrêmeNside = (Ncandles - 1) / 2// Définition de la fractale supérieureIF high[Nside] >= highest[Ncandles](high) THENFup = high[Nside]Arrow = -1ENDIF// Définition de la fractale inférieureIF low[Nside] <= lowest[Ncandles](low) THENFdown = low[Nside]Arrow = 1ENDIF// Tracé des flèchesIF Arrow = 1 THENDRAWARROWUP(barindex[2],low[2]-Averagetruerange[5]/3)coloured(0,150,0)ELSIF Arrow = -1 THENDRAWARROWDOWN(barindex[2],high[2]+Averagetruerange[5]/3)coloured(255,0,0)ENDIFReturn Fup as "Fractale UP", Fdown as "Fractale DOWN"05/14/2017 at 7:54 PM #35509Hi Doc, thanks for sharing your code.
While reviewing it for the library, I stumble upon the bug of multiple arrows like in the picture attached, I don’t know if you are aware of it?
The fractals with same design as MT4 has been coded in this topic already FYI: https://www.prorealcode.com/topic/indicateurs-bill-williams/#post-20690
05/14/2017 at 8:20 PM #35511Hello Nicolas,
Actually I did test only on daily candles ; I didn’t see this bug…
Sorry, I didn’t see that this indicator was already coded here !
Best regards,
05/14/2017 at 10:01 PM #35515Strange, actually I have a but with fractals of 3 candles, but non with fractals of 5 candles…
05/15/2017 at 7:33 AM #35525The problem is that you continuously draw arrow at high or low 2 bars ago even if you have not find any new fractal. You should draw the arrow at fractal bar instead. You are trying to reinvent the wheel 🙂 there are already many codes that spot fractals points:
https://www.prorealcode.com/prorealtime-indicators/bill-williams-fractals/
https://www.prorealcode.com/topic/indicateurs-bill-williams/
https://www.prorealcode.com/prorealtime-indicators/fractals-zigzag/
https://www.prorealcode.com/prorealtime-indicators/multi-fractals-zigzag-highlow/
https://www.prorealcode.com/prorealtime-indicators/bar-count-reversals-pivot-points-highlow/
04/26/2018 at 9:45 AM #6919604/27/2018 at 5:07 PM #69302You can try this one: https://www.prorealcode.com/topic/indicateurs-bill-williams/#post-20690
You can change the symbol used to plot the fractals by something else if you want to.
-
AuthorPosts
Find exclusive trading pro-tools on