Back to Community
Intraday price comparison to Start of day price historically

I am new to quantopian and python. I will like to run algorithm that will compare the intraday Close price of stock to Open price of same stock for same day. It should buy the stock if Intraday price of stock > ((Open price of today + Close of yesterday )/2)