How to get longer historical price from mt5?
johnnyb15:
Hi everyone,
I'm now using MetaTrader5 libraby for python to get history price data. However, I can't get the the price that from 2014 backward. I just able to get from 2015 to now.
My code is as below
and the output is
How to fix it to get longer period of data?
Thanks a lot!
check with broker if they have longer period of data
also try another broker
Hi everyone,
I'm now using MetaTrader5 libraby for python to get history price data. However, I can't get the the price that from 2014 backward. I just able to get from 2015 to now.
My code is as below
and the output is
How to fix it to get longer period of data?
Thanks a lot!