Welcome!
This strategy recently came up as a way to stage entries when using simple moving averages for trading on high time-frames.
The goal of this script is to provide early warning for Simple Moving Average (SMA) crosses.
Three events are taken in account:
1) Close crossing above or below the "Fast" SMA
2) Close crossing above or below the "Slow" SMA
3) "Fast" SMA crossing above or below the "Slow" SMA
In this way, you will receive early warning of the main SMA crosses as price rises above or falls below each of the SMAs defined.
The script is fully alertable on each of the defined crosses:
1) Early Bull/Bear = Close crossing above or below the "Fast" SMA
2) Mild Bull/Bear = Close crossing above or below the "Slow" SMA
3) Bull/Bear MA = "Fast" SMA crossing above or below the "Slow" SMA
The idea is that you can split your order entry/exit conditions into stages, during bull markets taking a (example) 33% position when the Early Bull alert fires, 33% at Mild Bull, and the last 33% at Bull MA alerts. Reversing the process when exiting in order to reduce the lagging nature of the standard SMA cross strategy.