How to compute the death cross with Pandas in Python
• 2 min
The death cross is a chart pattern that tells us when a short-term moving average (e.g. 50 SMA) crosses below a long-term moving average (e.g. 200 SMA).
It is the exact opposite to the golden cross and is often known as a trigger point for a trend reversal.
Here is how to compute it
Here is the result
Here you are! You now know how to compute the death cross with Pandas in Python.
More on financial analysis
If you want to know more about financial analysis in Python without headaches... check out the other articles I wrote by clicking just here: