Series array that contains the bid prices of each bar of the current chart ??

 

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 ?

 
Some brokers provide ask price based data, not tradable but as data.
 
Enau: how can i know the bid and ask in the past, for instance bid and ask from 1h ago, or 1000 ticks ago ?

Generally, you can't.

 
Enau: how can i know the bid and ask in the past, for instance bid and ask from 1h ago, or 1000 ticks ago ?

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.

 
Fernando Carreiro:

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.

can you show me the standard emthod in MT5 ?