occupied / Publications
Forum
MT5 Python Library Updated ? Not returning OHLC
import MetaTrader5 as mt5 rates = mt5.copy_rates_from_pos( "EURUSD" , mt5.TIMEFRAME_H4, 0 , 2 ) df = pd.DataFrame(rates) print (df) This code used to return OHLC But now it returns time bid ask last volume time_msc flags volume_real 0 1732176000 1.05466