OPEN-SOURCE SCRIPT

Fractals ROC Alert

10 987
I am playing William's Fractals and got an idea to calculate each fractal's strength by these rules:

- downFractal. FractalROC = (close - lowest(n+1))/(open【2*n】-lowest(n+1))
- upFractal FractalROC = (highest(n+1)-close)/(highest(n+1)-open【2*n】)

And set up a level to filter small fractals.

Bigger FractalROC, Stronger trend

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.