Hi,
I am new in Quantopian and appreciate help coding a specific ATR strategy. My coding skills are zero, any help will be appreciated.
Brief explanation: The market has its highest volatilatility intraday period from 9.30 to 10.15-10.30am aprox. I have seen that many stocks overshoot up/down in that volatile period and when vol. recedes around 10.30am those stocks tend to rebound to the opposite overshooting side. I know a prop trader that operated with a similar strategy with huge success.
Strategy to backtest: Tracking all 500 stocks from SP&500 index, at 10.20am I would like to go long 50 stocks from that index that has the highest negative [ (current price - open price) / ATR (14) ] and at the same time go short 50 stocks from that index that has the highest positive [ (current price - open price) / $ATR (14) ]. I will close those trades at 11.30am. The basic explanation is going long the 50 stocks that went down the hardest compared to its ATR and go short the 50 stocks that went up the most. The objective is betting on a reversion, at 11.30 when volatility has receded and market "corrected" overshooting anomalies.
I do not know if Quantopian allows to backtest buy/sell order at specific times of the day.
Thanks!,
Federico.