Script to (ATTEMPT) Force Download of historical data

garyfritz

Re: Script to (ATTEMPT) Force Download of historical data

Post by garyfritz »

Steve, do you know you can watch the script's progress on the Experts tab?
User avatar
SatchFan
Trader
Posts: 30
Joined: Mon May 28, 2012 12:31 am
Location: Flying in a Blue Dream or Surfing with an Alien

Re: Script to (ATTEMPT) Force Download of historical data

Post by SatchFan »

Here is a script I have been using for quite some time. http://codebase.mql4.com/6693 I had a problem with it when Empty4 went to build 401. But ever since then it has worked fine. Maybe it will help some one.... ? It does take a while to get all the data but it works...

SatchFan
You do not have the required permissions to view the files attached to this post.
Screenshots provided by PickPick. A Must Read --> Phantom of the Pits
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Script to (ATTEMPT) Force Download of historical data

Post by SteveHopwood »

garyfritz wrote:Steve, do you know you can watch the script's progress on the Experts tab?
Yup. I just like chart feedback - you may have noticed this.

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
MichaelM
Trader
Posts: 117
Joined: Sun Dec 04, 2011 11:04 pm

Re: Script to (ATTEMPT) Force Download of historical data

Post by MichaelM »

I found that the following EA works very well.

Just input one of: M1, M5, M15,H1,H4,D1,W1,MN into the period input and away you go.

Don't bother about the FastMethod and Pause (they go together), but all it does is allocates the amount of time to spend in seconds to download data for each Symbol.

If the EA gets interrupted for some reason and you find that it gets 'stuck', remove it and before you start it up again, just delete the GV's (press F3) associated to the EA.
You do not have the required permissions to view the files attached to this post.
garyfritz

Re: Script to (ATTEMPT) Force Download of historical data

Post by garyfritz »

Michael, does that one get ALL the history from the crim? The LoadHistory script that SatchFan posted works very well, and it gets ALL TFs with one run which is nice, but it gives up too easily. It stops before it gets all of the history.
MichaelM
Trader
Posts: 117
Joined: Sun Dec 04, 2011 11:04 pm

Re: Script to (ATTEMPT) Force Download of historical data

Post by MichaelM »

Yes it does. Only that it does all symbols per Period only, not all Periods and all Symbols.

In saying that, it won't be too hard to add an extern variable and extra loop coding for each period to have the option of downloading ALL History from ALL Periods of ALL Symbols ;)
akara
Trader
Posts: 26
Joined: Sat Dec 03, 2011 10:34 am

Re: Script to (ATTEMPT) Force Download of historical data

Post by akara »

MichaelM wrote:I found that the following EA works very well.

Just input one of: M1, M5, M15,H1,H4,D1,W1,MN into the period input and away you go.

Don't bother about the FastMethod and Pause (they go together), but all it does is allocates the amount of time to spend in seconds to download data for each Symbol.

If the EA gets interrupted for some reason and you find that it gets 'stuck', remove it and before you start it up again, just delete the GV's (press F3) associated to the EA.


Worked wonders for me..
ewp
Posts: 1
Joined: Sun May 06, 2012 3:26 pm

Re: Script to (ATTEMPT) Force Download of historical data

Post by ewp »

MichaelM wrote:I found that the following EA works very well.

Just input one of: M1, M5, M15,H1,H4,D1,W1,MN into the period input and away you go.

Don't bother about the FastMethod and Pause (they go together), but all it does is allocates the amount of time to spend in seconds to download data for each Symbol.

If the EA gets interrupted for some reason and you find that it gets 'stuck', remove it and before you start it up again, just delete the GV's (press F3) associated to the EA.
thanks for share,
:D
tonycashflow
Posts: 3
Joined: Mon May 28, 2012 2:03 am

Re: Script to (ATTEMPT) Force Download of historical data

Post by tonycashflow »

Any reason why I cant get more than around 540 000 bars on M1 whatever the amount of data I have in my hst file?

I have the max bars option to the max so I dont see why it would be limited
User avatar
NeoTrader
Trader
Posts: 436
Joined: Wed Apr 04, 2012 2:52 pm
Location: small Village at Lake Chiemsee, Bavaria, Germany

Re: Script to (ATTEMPT) Force Download of historical data

Post by NeoTrader »

hi tonycashflow,
tonycashflow wrote:Any reason why I cant get more than around 540 000 bars on M1 whatever the amount of data I have in my hst file?
Maybe your criminal does not have more history data available...
tonycashflow wrote:I have the max bars option to the max so I dont see why it would be limited
Have you set both maxbars (history and chart) to the max?

happy trading,

NeoTrader

-
Post Reply

Return to “Coders Hangout”