Ihsan Al-Hamd-Azeez / Publications
Forum
CopyRates does not return the last bars
Hello, I am new in MQL5. I am trying to get the last three bars of EURUSD. As I am writing this post, it should return the last three bars, which were on 08.12.2023. But it returns the bars from 01.12.2023. What is wrong with my code? void lastBars() { // this array will hold the last 30 bars