Download MetaTrader 5

History Data

To add comments, please log in or register
eyalsh
104
eyalsh 2010.12.05 22:05 

Hi,

I was trying to print some history data with the following Expert:

Print(TimeToString(TimeCurrent(), TIME_DATE|TIME_SECONDS), " [", DoubleToString(SymbolInfoDouble(Symbol(),SYMBOL_BID),4), ",", DoubleToString(SymbolInfoDouble(Symbol(),SYMBOL_ASK),4), "]");  

I tried to run it on year 2010 but a lot of history data is missing.

Does anyone have an Idea?

 

Here are some results I've got: 

PO        0          Core 1   20:52:22           2010.01.04 10:47:28   2010.01.04 10:47:28 [1.4376,1.4377]

PQ        0          Core 1   20:52:22           2010.01.04 10:47:29   2010.01.04 10:47:29 [1.4376,1.4377]

QK        0          Core 1   20:52:22           2010.01.04 10:47:31   2010.01.04 10:47:31 [1.4375,1.4377]

QM       0          Core 1   20:52:22           2010.01.04 10:47:32   2010.01.04 10:47:32 [1.4375,1.4377]

QG        0          Core 1   20:52:22           2010.01.04 10:47:33   2010.01.04 10:47:33 [1.4375,1.4377]

PI         0          Core 1   20:52:22           2010.01.04 10:47:35   2010.01.04 10:47:35 [1.4376,1.4377]

QS        0          Core 1   20:52:22           2010.01.04 10:47:36   2010.01.04 10:47:36 [1.4375,1.4377]

PE         0          Core 1   20:52:22           2010.01.04 10:47:37   2010.01.04 10:47:37 [1.4376,1.4377]

QO        0          Core 1   20:52:22           2010.01.04 10:47:39   2010.01.04 10:47:39 [1.4375,1.4377]

RQ        0          Core 1   20:52:22           2010.01.04 11:15:05   2010.01.04 11:15:05 [1.4391,1.4392]

RK        0          Core 1   20:52:22           2010.01.04 11:15:06   2010.01.04 11:15:06 [1.4391,1.4392]

RM        0          Core 1   20:52:22           2010.01.04 11:15:07   2010.01.04 11:15:07 [1.4391,1.4392]

RG        0          Core 1   20:52:22           2010.01.04 11:15:08   2010.01.04 11:15:08 [1.4391,1.4392]

RI         0          Core 1   20:52:22           2010.01.04 11:15:09   2010.01.04 11:15:09 [1.4391,1.4392]

QS        0          Core 1   20:52:22           2010.01.04 11:15:10   2010.01.04 11:15:10 [1.4391,1.4393]

QE        0          Core 1   20:52:22           2010.01.04 11:44:05   2010.01.04 11:44:05 [1.4385,1.4387]

QO        0          Core 1   20:52:23           2010.01.05 16:53:38   2010.01.05 16:53:38 [1.4415,1.4416]

RQ        0          Core 1   20:52:23           2010.01.05 16:53:40   2010.01.05 16:53:40 [1.4414,1.4416]

RK        0          Core 1   20:52:23           2010.01.05 16:53:42   2010.01.05 16:53:42 [1.4414,1.4416]

RM        0          Core 1   20:52:23           2010.01.05 16:53:44   2010.01.05 16:53:44 [1.4414,1.4416]

RG        0          Core 1   20:52:23           2010.01.05 16:53:46   2010.01.05 16:53:46 [1.4414,1.4416]

 

Thanks,

Eyal. 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Symbol Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Environment State / Symbol Properties - Documentation on MQL5
Alexey Da
Moderator
6657
Alexey Da 2010.12.06 13:06  

1. If data, which you write into expert's output, are important enough, you should look at agent's log which have to contain all messages that are written by your EA.

2. Please make sure that data, which you are looking for, are really exist.

To add comments, please log in or register