FIFO candle matrix

 

Hi,

I'm a beginner in MQL5, not in C++.

I'd like to have a matrix  that for every  OnTick() called it store the n last candle value (open and close price, volume, etc) and update as a FIFO (first input first output).

is there a MQL5 function for it?

Thanks