retrieving previous candle OHLC

 

HI EVERYONE

I was trying to develop a code on metaeditor in which I need to retrieve previous candle information, i.e., open high close and low.

can anyone help me in that?

 
Use High[], Low[], Open[], Close[] for the symbol and timeframe you are on . . . or if you need a different symbol or timeframe use iHigh(), iLow(), iOpen(), iClose()
 

thanks RaptorUK..that was a great help

Reason: