Scripts: sHistoryExport - handy script to export the historical data in the МТ4 format - page 3

[Deleted]  
Andrey Khatimlianskii:
And there is nowhere to download them.
As an option - download history from different brokers and use some script to make interlinking, where each of 2-3 quote files is a donor of missing quotes for other files (holes of different brokers usually do not coincide). Still, it is better to have slightly different quotes than a hole that leads to a catastrophic difference in robot tests.
 
They say that history is better on mt5. and there is a script that translates quotes from mt5 to mt4. by the way, Andrei did it.
VladMih:
As an option - to download history from different brokers and some script to make interlinking, in which each of 2-3 quote files is a donor of missing quotes for other files (holes of different brokers usually do not coincide). Still, it is better to have slightly different quotes than a hole that leads to a catastrophic difference in robot tests.
 
Stells:
They say that the history is better on mt5. and there is a script that translates quotes from mt5 to mt4. by the way, Andrei did it.

This is him )

VladMih:

Is it so that normal history is absent in nature???? Well, it's come to this...

What is abnormal if there were no quotes for a few minutes and bars (which would be dashes O=H=L=C) were not displayed for them?
Once there was a discussion of these omissions, and I even wrote an article "Charts without missing bars".

But there is an opinion that such charts are quite normal too )

VladMih:

In principle, I would be satisfied with m5 as well, since the working timeframe is m15+, but nobody "officially" keeps m5, right?

65 000 bars are stored by every broker (all TFs).

VladMih:

By the way, you didn't answer about checking. Maybe you can tell me how to at least detect ALL the holes in order to orientate whether something can be done about them (e.g., small ones can even be patched manually). I once encountered a check script with inbuilt "patching" by several algorithms. I don't see anything like that now. How do they test now? Why does no one care about holes? Somehow robo-owners get out of it...?

My script loads history using standard MQL functions. It doesn't check for holes.

There was a script for checking history in kodobase once, look for it.

It is also possible to synchronise the history of different brokers, but I have not seen such a thing.

[Deleted]  
Andrey Khatimlianskii:

It is also possible to synchronise the history of different brokers, but I have not met such a thing.

Thank you, I found a complete solution to all questions.
 

I encountered a problem - the script did not compile. In the end I found a solution here on the site. maybe this will help someone, I quote:

Download the script for MT5
copy it to the folder MQL5\Scripts
in WINDOWS 7, VISTA copy it to the user folder instead of Program Files
c:\Users\Администратор\AppData\Roaming\MetaQuotes\Terminal\D0E8209F77C8CF37AD8BF550E51FF075\MQL5\Scripts\

Instead of Administrator, your username could be Petya and Masha.

I will add from myself, you should be able to see hidden folders, I did all manipulations from the above directory, not in C:\Program Files.

Good luck, learn your stuff ))

 

Can you tell me, is there any way to make the rows output in such a way that the date is a solid number? Here is an example:

20160223,08:00,123.753,123.76,123.509,123.691,4679

 

To the author thank you very much. great script.

astrotrade:

Can you tell me, is there any way to make the rows output in such a way that the date is a solid number? Here is an example:

20160223,08:00,123.753,123.76,123.509,123.691,4679

open in meta-editor and insert StringReplace(str_write,":":",""); //removes all colons in the data after the"StringConcatenate..." function
 

Thank you very much.  It's works for me!

But I found that there is a line of code should be  like this(about line 125 in this script):

line 125: for ( int i = copy_count-1; i >= 0; i -- )...

because of the i > 0(I think it should be i >= 0), there is not the first record.

^_^ 

[Deleted]  

Hello,


Is it possible to change the script to generate several timeframes and different Bars count for each TF ?


For Example:

I would like to extract all symbols of "Market Watch" into 50 bars of W1, 100 Bars of D1, 200 Bars of H4, but using the script just one time!

 
Guilherme Mendonca:

Is it possible to change the script to generate several timeframes and different Bars count for each TF ?


For Example:

I would like to extract all symbols of "Market Watch" into 50 bars of W1, 100 Bars of D1, 200 Bars of H4, but using the script just one time!

Yes, it's possible. But what for?

Anyway, you can ask for any modification at Freelance section.