This script seems to find a trend change fairy well on the 4hr with the default settings. It is adjustable for other time frames, though it seems that 4hr seems the most profitable. Enjoy.
The long/short logic is the same as the study, though the strat plots yellow while the price is inside the MA range.
Tip: 1AseP4EbtAdoGa9jKv691XC5oiNMrLwire
Release Notes
Added "Long Only" option and time frame selection for back testing.
This script is published closed-source and you may privately use it freely.
Want to use this script on a chart?
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.