MT5 and Python: Can we simply update ticks in a DataFrame without having billions of wasted(?) cycles on MT5 in a couple of minutes?
Você está perdendo oportunidades de negociação:
- Aplicativos de negociação gratuitos
- 8 000+ sinais para cópia
- Notícias econômicas para análise dos mercados financeiros
Registro
Login
Você concorda com a política do site e com os termos de uso
Se você não tem uma conta, por favor registre-se
Please, watch the little GIF.
I just want to update the dataframe column 'last' price and do some calculations after the update loop. Why so many cycles? sounds like a waste of resources.
Number of stocks and options: 4900
I'm using MT5, Python, Pandas.
Loop the names of the stocks / options and update their last prices:
getTick is using mt5.symbol_info_tick('stockname')
Already tried other panda modes to update the values, like .at,.apply etc.
How to optimize the MT5 > Python > Pandas ticks stream? The update is slow (the first loop takes 5 minutes or more).
So many cycles and still slow to update.
Please, any advice?
If you have an example of code to show how you do it would be great.