Hi all,
I am quite new to Quantopian, Quant, and Statistics, still and this is my second post here. I am trying to conduct a statistical test, to see whether or not there is a significant correlation between golden/death cross and the direction of price after the cross. I have attached a notebook showing how far I have gotten until now, but am stuck trying to conduct the actual test, as I am unsure about what the dependent variable should be.
My current idea is to check whether the price 10 days after the initial golden/death cross is higher or lower respectively, after the day of the initial cross, and if for example - after the golden cross happens, and price after 10 days is higher than day of cross, then I shall return true.
Does anybody know if there is anything wrong with my logic and how i might go around to code this? (I am pretty sure the logic I have is flawed though) .
I would love to discuss this with anybody who is interested with what I am trying to do :) feedback to my code is appreciated as well! Do note that I am experimenting still, and I know that my data set is too small for any conclusive results.
Thank you!