OPEN-SOURCE SCRIPT
Updated Fusion: ATR Ranging

A simple way to determine a ranging market.
The defaults are for a specific use of my own so by no means feel a need to use them, adjust as needed.
By default this sits on the main chart however if you want to see the lines behind the result make a copy and put the copy on it's own chart and then just flip the "show" flags.
The is no reason for using the Hull MA over any other except that it's a preference of mine, that is, it's not for some magical reason I figured out. That said, the Hull is perhaps my favorite because of what I learned about after quite a bit of research so take that as you will.
There's no one indicator I borrowed from so credit to both:
The code is structured to easily drop into bigger system so use as a lone indicator or add to some bigger project you are creating.
Finally, if you find value please do make a comment, give thumbs up etc.
Enjoy and good luck!
The defaults are for a specific use of my own so by no means feel a need to use them, adjust as needed.
By default this sits on the main chart however if you want to see the lines behind the result make a copy and put the copy on it's own chart and then just flip the "show" flags.
The is no reason for using the Hull MA over any other except that it's a preference of mine, that is, it's not for some magical reason I figured out. That said, the Hull is perhaps my favorite because of what I learned about after quite a bit of research so take that as you will.
There's no one indicator I borrowed from so credit to both:
- Hull Suite by InSilico
- Average True Range by S6thSense
The code is structured to easily drop into bigger system so use as a lone indicator or add to some bigger project you are creating.
Finally, if you find value please do make a comment, give thumbs up etc.
Enjoy and good luck!
Release Notes
Removed an unnecessary line of code.Release Notes
Added scaling factor which makes this "tunable" which was much needed.Added more MA types.
Release Notes
Visual fix when not on main chart.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.
For quick access on a chart, add this script to your favorites — learn more here.
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.
For quick access on a chart, add this script to your favorites — learn more here.
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.