Question
The golden cross occurs when a short-term moving average crosses over a major long-term moving average to the upside and is interpreted by analysts and
The golden cross occurs when a short-term moving average crosses over a major long-term moving average to the upside and is interpreted by analysts and traders as signaling a definitive upward turn in a market. Basically, the short-term average trends up faster than the long-term average, until they cross.
Conversely, a similar downside moving average crossover constitutes the death cross and is understood to signal a decisive downturn in a market. The death cross occurs when the short term average trends down and crosses the long-term average, basically going in the opposite direction of the golden cross
from the insight of above information,please answer the following questions with the help of table in python
date | volume | open | close | high | low | adjclose | |
---|---|---|---|---|---|---|---|
0 | 2019-03-01 | 1625900 | 80.000000 | 81.239998 | 81.440002 | 80.000000 | 81.239998 |
1 | 2019-02-28 | 1759100 | 79.180000 | 79.440002 | 79.750000 | 78.889999 | 79.440002 |
2 | 2019-02-27 | 1254400 | 78.250000 | 79.419998 | 79.550003 | 78.250000 | 79.419998 |
3 | 2019-02-26 | 1992600 | 79.209999 | 78.550003 | 79.269997 | 78.419998 | 78.550003 |
4 | 2019-02-25 | 1878000 | 78.900002 | 79.339996 | 79.839996 | 78.849998 | 79.339996 |
5 | 2019-02-22 | 2797700 | 78.160004 | 78.419998 | 78.459999 | 77.830002 | 78.419998 |
6 | 2019-02-21 | 3570800 | 77.669998 | 77.889999 | 78.580002 | 76.500000 | 77.889999 |
7 | 2019-02-20 | 2076500 | 77.529999 | 78.559998 | 78.800003 | 77.330002 | 78.559998 |
8 | 2019-02-19 | 2968000 | 78.000000 | 77.519997 | 78.320000 | 77.410004 | 77.519997 |
9 | 2019-02-15 | 1919700 | 77.629997 | 78.300003 | 78.309998 | 77.470001 | 78.300003 |
10 | 2019-02-14 | 1618100 | 77.000000 | 77.019997 | 77.279999 | 76.519997 | 77.019997 |
11 | 2019-02-13 | 1376400 | 77.370003 | 77.250000 | 77.489998 | 76.739998 | 77.250000 |
12 | 2019-02-12 | 2045500 | 76.800003 | 77.070000 | 77.250000 | 76.430000 | 77.070000 |
13 | 2019-02-11 | 1018000 | 76.000000 | 76.080002 | 76.389999 | 75.750000 | 76.080002 |
14 | 2019-02-08 | 1318100 | 75.070000 | 75.800003 | 75.809998 | 74.760002 | 75.800003 |
15 | 2019-02-07 | 1660600 | 75.720001 | 75.330002 | 76.120003 | 74.870003 | 75.330002 |
16 | 2019-02-06 | 1504900 | 76.110001 | 76.300003 | 76.690002 | 76.000000 | 76.300003 |
17 | 2019-02-05 | 1593500 | 75.800003 | 76.309998 | 76.510002 | 75.790001 | 76.309998 |
18 | 2019-02-04 | 2245900 | 76.180000 | 76.029999 | 76.230003 | 75.320000 | 76.029999 |
19 | 2019-02-01 | 1343900 | 76.160004 | 76.040001 | 76.589996 | 75.620003 | 76.040001 |
20 | 2019-01-31 | 2951300 | 75.209999 | 76.050003 | 76.309998 | 74.669998 | 76.050003 |
(1) find all death crosses (when 50DMA crosses below the 200DMA),
(2) what percentage of those death crosses result in a price decrease by more than 1%, 2%, 3%, 4%, 5%, 10%, 15%, 20% over a week, two weeks, three weeks, a month, two months, three months, four months, five months, six months?,
(3) Does your analytics support the hypothesis of a golden cross or death cross?
please answer in python
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started