You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello, I am using the MetaTrader 5 module for Python 3 (import MetaTrader5 as mt5) and I want to import a list of stocks
tickers = ['Apple', 'Amazon', 'Facebook', 'Microsoft']
start = dt.datetime(2020, 11, 21)
end = start+ dt.timedelta(days = 7)
results[ticker] = mt5.copy_rates_range(tickers , mt5.TIMEFRAME_M1, start, end)
However, it appears to me that the copy_rates_range command only allows one by one to import the information of each stock, how could I with copy_rates_range import a list of stocks automatically without having to put a line for each one?