Generally, you can't.
Using standard methods it is only possible on MT5, not on MT4.
On MT4, one option is to save the tick data yourself to a file on every call to OnTick() event handler, but even then you will miss a few ticks if they come in too quickly before the OnTick() is able to finish processing the previous event.
The other option is to have access to your brokers tick data via other methods provided by them.
Using standard methods it is only possible on MT5, not on MT4.
On MT4, one option is to save the tick data yourself to a file on every call to OnTick() event handler, but even then you will miss a few ticks if they come in too quickly before the OnTick() is able to finish processing the previous event.
The other option is to have access to your brokers tick data via other methods provided by them.
How about reading the documentation on MQL5?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello
I seek two arrays
Series array that contains the bid prices of each bar of the current chart
Series array that contains the ask prices of each bar of the current chart
how can i know the bid and ask in the past, for instance bid and ask from 1h ago, or 1000 ticks ago ?