Hello I have coded a strategy that all days rank the stocks with the biggest gap, between yesterday close and today open. Then the strategy, have a for loop to retrieve information(technical indicators) for each of the stocks in the universe. Some of these indicators are the RSI, EMA's and Parabolic SAR.
The setup to buy is when there is a switch in the parabolic SAR between 2 periods and the short ema is higher than ema medium and ema high. Once the setup to buy is met, the algo trigger an order by 10000 USD(order_value method). I use resample to convert the timeperiod from 1 minute to 1 hour. The issue is that the performace is too slow. I have readed others threads about the optimal method to work with talib but not find a way to have a better performance(with performance I mean the speed of the backtesting.
Also the algorithm made few transactions. If somenone can help with this, I really appreciate!!
Thanks
Nicolás Ferrari