Download MetaTrader 5

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

To add comments, please log in or register
Publish your article. Millions of traders are looking for good ideas!
Ian Tavener
1169
Ian Tavener 2015.02.18 19:04 
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?
Alain Verleyen
Moderator
30739
Alain Verleyen 2015.02.18 19:11  
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.
To add comments, please log in or register