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.