I would like to ask a question. I want to create an algorithm to compute technical indicator values from matlab because I can not export the data directly. This indicator is called Bill Williams fractal indicator. A little explanation is in this link, although it is in Spanish can be understood well, in case anyone wants to pursue the subject.
I explain how this indicator. I have a list of times that I show prices, High, Low and Close. The definition of this indicator fractal is a fractal bullish indication arises when the two previous candles are maximums under the third candle and candle 4 has maximum sailing less than 3 and 5 has maximum sail sailing less than 3 and 4 . A candle is the figure that shows high, low and close. A fractal downward when the candle is formed 3 has a higher minimum than candles 1 and 2, and candles 4 and 5 are less than the minimum candle 3 A figure with a better explanation is in the link above. I think the logical sequence would be:
n = current candle
1-high (n-2) <high (n)
2-high (n-1) <high (n)
3-high (n +1) <high (n)
4-high (n +2) <high (n)
5-low (n-2)> low (n)
6-low (n-1)> low (n)
7-low (n +1)> low (n)
8-low (n +2)> low (n)
As could implement the algorithm?
thank you very much
"A fractal is one of five indicators of Bill Williams' trading system, que Allows detecting the bottom or the top.Fractal Technical Indicator it is a series of At least five successive bars, With The highest HIGH in themiddle, and two lower highs on Both Sides. The reversing September is a series of At least five successive bars, With The Lowest LOW in the middle, and two higher lows on Both Sides, que correlates to the sellfractal. The fractals are have high and Low values and are Indicated With The up and down arrows. "
There is no legitimate formula for Fractals because they are formed when there is a series of 5 consecutive bars where the middle bar is the highest or lowest.
Best Answer