Bill Williams Fractals

Category: Indicators By: Nicolas Created: May 24, 2016, 8:21 AM
May 24, 2016, 8:21 AM
Indicators
61 Comments

“In order for a fractal to form, there should be a series of 5 consecutive bars where the middle bar will be the highest preceded and followed by two lower neighbouring bars on each side.”

Since this indicator is frequently requested on forums, I put the code here (author: SOHOCOOL).

Fractals can be used in many different approach:

  • Market points reversal
  • Breakout of recent fractals points
  • Trend line drawn from recent fractals

The “Low Fractal” and “High Fractal” may be set to ‘points’ style in the platform to have a clearer view of them on the price chart. 

 

/////////// FRACTALS BILL WILLIAMS
//Variable:

//cp = 2 (default)  

if high[cp] >= highest[2*cp+1](high) then
 LH = 1
else
 LH=0
endif

if low[cp] <= lowest[2*cp+1](low)  then
 LL= -1
else
 LL=0
endif

if LH=1 then
 hil = high[cp]
endif

if LL  = -1 then
 LOL=low[cp]
endif


return lol coloured(255,0,0) as "Low Fractal",hil coloured(0,255,0) as "High Fractal"

/////////////end

 

Download
Filename: Fractals-Bill-Williams.itf
Downloads: 1657
Nicolas Master
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Logo Logo
Loading...