Author: Kulwant
The bearish moving average crossing over system is one of the most famous. It is based on the observation that a rapid moving average crosses under a slow moving average when a bearish trend appears.
We are going to build a ProScreener that collects all the stocks on which the 20 days moving average crosses under the 50 days moving average.
Furthermore, we will compute the momentum of the difference between the two moving averages in order to evalutate how powerful the under crossing is. If this number is near 0, the crossing is slow and not very significant. But higher is this number stronger is the crossing.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
REM Compute a simple moving average on the last 20 days ma20 = AVERAGE[20] REM Compute a simple moving average on the last 50 days ma50 = AVERAGE[50] REM Compute the differential speed between the short and the long moving average speed = MOMENTUM(ma20-ma50) * 100 / CLOSE REM Select all the stocks on which that crossing over has just occured Filter = ma20 < ma50 SCREENER [ Filter ] (speed AS"Speed") |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials