Is there a simple way to get the price from x seconds ago? Or do I need to build an array of these prices?

 
I'm working on an EA, and I want to compare the current market price to the price from 30 or 90 seconds ago.  Is there a way to get this info from MarketInfo? Or does my EA need to record prices and timestamp them?
 
imtav:
I'm working on an EA, and I want to compare the current market price to the price from 30 or 90 seconds ago.  Is there a way to get this info from MarketInfo? Or does my EA need to record prices and timestamp them?
You need to record the prices and time or use a timer.