Hi all,
I just joined Quantopian today! Main purpose is to explore algo trading and learn a little bit of python.
I am trying to implement a really simple strategy that will BUY a stock at the close of the 3rd day if it has closed lower for 3 consecutive trading days, then hold it and sell at the 5th trading day thereafter.
I have tried using the history function and see that returns a dataframe. I have also read something about the history function only supporting minute backtesting and not daily.
Could someone please kindly help me figure out this strategy is possible?
Thank you very much!
Bob