OPEN-SOURCE SCRIPT
Updated

Price Spread Indicator v2

1 989
Version 2 of this script. Looks at the spread of current price to two prior MA's. Defaults to 200 and 90 however 20 and 58 provide some nice results. A -1.3% spread ratio is used to trigger alerts ie -1.3% spread on 200 and 90. This has been derived from backtesting what optimised P&L.
Ideal for investors rather than traders. Out performs simple buy and hold by 5-6 times.
Release Notes
Updated version of script with additional checks expanded to 18 day and 60 day MA look backs

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.