Williams Fractals explained: how to read them
By Oalgo · Last reviewed
A Williams Fractal marks a swing high or a swing low: a candle whose high is the highest, or whose low is the lowest, of the 5 candles around it (2 before and 2 after). It can only be confirmed once the 2 later candles have closed.
How are Williams Fractals found?
#- Take one candle together with the 2 candles before it and the 2 after it: 5 candles in all.
- Up fractal: the middle candle's high is the highest of the 5, and higher than the high of the candle right before it and right after it.
- Down fractal: the middle candle's low is the lowest of the 5, and lower than the low of the candle right before it and right after it.
- Oalgo records the fractal on the candle that confirms it, the second candle after the peak, with the price of the peak.
| Candle | High | Low | What happens |
|---|---|---|---|
| 1 | 104 | 98 | – |
| 2 | 106 | 100 | – |
| 3 | 109 | 103 | Highest high of the 5 candles, above candles 2 and 4: an up fractal at 109 |
| 4 | 107 | 101 | – |
| 5 | 105 | 99 | Confirms it: the fractal appears here, with the value 109 |
Why do fractals appear two candles late?
#You cannot know a candle was the highest of 5 until the 2 candles after it have closed. Many charts put the mark on the peak candle itself, which looks as if it was known in time. It was not, and a rule that used it there would be using the future (see lookahead bias). The Fractals block writes each fractal on the candle that confirms it, so a test cannot use it early.
How do you read Williams Fractals?
#| What you see | What it suggests |
|---|---|
| An up fractal | A recent swing high. Price made no higher high in the 2 candles after it. |
| A down fractal | A recent swing low. Price made no lower low in the 2 candles after it. |
| Price closes above the last up fractal | Price has moved past a recent swing high. |
| Price closes below the last down fractal | Price has moved past a recent swing low. |
How do people use Williams Fractals in rules?
#- Combine with a trend filter, such as price above a moving average.
- Change the setting. 1 uses 3 candles and finds many small swings; a larger number finds fewer, bigger ones.
What can Williams Fractals not tell you?
#A fractal says that price turned there, not that it will turn there again. Fractals always arrive late, and in a choppy market many come close together and lead nowhere. Test any rule on past prices with a backtest, then forward test it.
In Oalgo you can tell Oalgo AI your Williams Fractals rule in your own words, check the rule it builds, and test it. After testing, if you choose, you Go Live with your own Live Strategy on your own Venue Account at a Supported Venue.
Read next
- What is lookahead bias? How a test uses the futureLookahead bias is when a test uses a value the rules could not have known yet. Learn the common ways it creeps in and how to check your rules for it.
- Aroon indicator explained: how to read Aroon Up and DownAroon Up and Down count how recently price made its highest high and lowest low. See how they are calculated, how to read them, and how to test rules.