OPEN-SOURCE SCRIPT
OS Fractals

An up fractal is formed when a high is both preceded and followed by lower highs. A down fractal is formed when a low is both preceded and followed by higher lows.
Bill Williams uses a period of 2 (2 after and 2 before) to define a fractal. This indicator has 2 as default but lets you decide the range you want.
The indicator lets you also select alerts when price crosses an up of down fractal, which would usually mean to entry a position. This indicator works best when used with an alligator, as long signals are valid above the Balance Line and short signals are valid when triggered below the Balance Line.
Any comments for improvement are welcome.
Bill Williams uses a period of 2 (2 after and 2 before) to define a fractal. This indicator has 2 as default but lets you decide the range you want.
The indicator lets you also select alerts when price crosses an up of down fractal, which would usually mean to entry a position. This indicator works best when used with an alligator, as long signals are valid above the Balance Line and short signals are valid when triggered below the Balance Line.
Any comments for improvement are welcome.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.