How do I get last tick prices in mql4?

 

Hi Guys,

 

Newbie in mql4. I'm interested in getting the following information from a non-current tick,

bid, ask, spread, 

I understand I can get spread, bid and ask prices for the current tick with the default mql4 function "marketinfo()". how can I get the same for the previous ticks though?

 

rdgs,

Jing 

 

You need to write a little function that works as a buffer delayed 1 tick ... 

Buffer functions is famous trick in programming in most of languages.

Just do a little search and you will get it.