historical data

samjesse

Active Trader
Aug 30, 2011
118
0
27
Hi

In order to maintain 300 days of historical data for forex pairs. I need to feed values to the parameters of the function
MQL5:
int CheckLoadHistory(string symbol,ENUM_TIMEFRAMES period,datetime start_date)
  {

as indicated in Example of a Script for Adding History



what would the start_date be?
MQL5:
start_date = TimeCurrent() - 25920000; //300x24x60x60

thx
 
Last edited by a moderator:

samjesse

Active Trader
Aug 30, 2011
118
0
27
thx, I was not sure if I can subtract int from datetime, since both appear to be different types.