- Technical Analysis Golden/Death Cross Predictor/Detector
Objective: According to some TA professionals, when the 200 day moving average crosses the 50 day moving average, this could be related to a trend reversal (bull/bear market).
This script uses Pandas to get Yahoo BTC daily price data, so it can calculate the 200/50 day moving average, then uses last 20 day prices to estimate if they are intercepting or not.
Math was used to detect the interception. numpy, pycse and uncertainties were used to achieve the result.
The script can plot the 200/50MA chart also the death/golden cross if it is happening.
Download and install Visual C++ Build Tools from here
https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019
Download Ta-lib from here
For windows 64bit use TA_Lib‑0.4.17‑cp37‑cp37m‑win_amd64.whl (or another version)
Install with the command:
python -m pip install TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl
Credits to the Kitchin Research Group