How can I see the the latest tick of the current bar and the previous bar?

 

Hi, I want to see the tick that close the bar and the previous bar. I need this information to compare the prize of the tick that close the current bar and compare this prize with the prize of the one EMA, if the prize of this tick is above of the EMA I will buy if not no. For this is very importan to know the close prize of the current bar, to make this decission, thaks friends

 

previous bar= Close[1] or iClose(Symbol,Period,1)

current bar = Ask, Bid, Open[0] or iOpen(Symbol,Period,0)

 
ubzen:

previous bar= Close[1] or iClose(Symbol,Period,1)

current bar = Ask, Bid, Open[0] or iOpen(Symbol,Period,0)

Open[0] or iOpen(Symbol,Period,0) isn't the last tick

 
qjol:
I stand corrected. Use Close[0] or iClose(Symbol,Period,0). Mql4 data-prices are Bid. *** You cannot depend upon 0-Bar Info for other timeframes and/or currencies within the strategy tester. Exception would be Open(0).
Reason: