Help please!!! How to get the price of before last price in last candle ? ?

 

hello

i would like to compare the for example 4 last price of one candle in a symbol.

the last price is easy to abtain,but how a bout the prices of before last price in one candle ?

does anyone have an idea ?

 
In MT4 you will have to store them as they come in. In MT5 you can get ticks.
 
William Roeder:
In MT4 you will have to store them as they come in. In MT5 you can get ticks.
Thank you for your answer.can you explain more that which function should i use for get tick's price of last candle in MT5 ?
Reason: