Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, TedMar), 1,031 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Downloading & using data #455182
10/12/15 14:52
10/12/15 14:52
Joined: Jul 2015
Posts: 8
F
fo0bar Offline OP
Newbie
fo0bar  Offline OP
Newbie
F

Joined: Jul 2015
Posts: 8
Hi, I've been attempting to download the data for #SPY from my broker and haven't been having any luck. It seems the download script only ever wants to download 2015 data despite specifying 2010-2015, and then when I attempt to train or test using that instrument, I get a "Not enough bars!" error, the instrument is then removed from the selection list, and then sometimes Zorro even suffers a fatal exception.

Is this because the download script only downloads M1 data which isn't provided by my broker beyond a month past?

If this is the case, is there a way of specifying the download script to download H1 data? I don't require any lower timeframe than this to configure my strategy.

Thanks for any help anyone can offer!

Re: Downloading & using data [Re: fo0bar] #455188
10/12/15 16:23
10/12/15 16:23
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
You can set up the year with StartDate and EndDate. For H1 data, change the period of the loadHistory command to 60.

Re: Downloading & using data [Re: jcl] #455190
10/12/15 17:33
10/12/15 17:33
Joined: Jul 2015
Posts: 8
F
fo0bar Offline OP
Newbie
fo0bar  Offline OP
Newbie
F

Joined: Jul 2015
Posts: 8
Hi jcl, many thanks for your reply.

I've tried setting the loadHistory period to 60, which doesn't seem to do anything in this case.

I've also tried specifying a start date and end date to cover many years, as well as just single years. Each time, the script says it's downloaded one hour and reports "Done!". The only bar file in the history folder with a size >1k is #SPY_2015. Deleting all the #SPY history files to start again doesn't help.

Multiple brokers give the same result. In each case, using metatrader I've manually verified the brokers will usually supply H1 data back to 2013, but Zorro just doesn't seem to fetch it.

Any other ideas?

Thanks again laugh

Re: Downloading & using data [Re: fo0bar] #455200
10/13/15 08:13
10/13/15 08:13
Joined: Jul 2015
Posts: 8
F
fo0bar Offline OP
Newbie
fo0bar  Offline OP
Newbie
F

Joined: Jul 2015
Posts: 8
Just an update to my issue - I seem to have this same problem any time I'm downloading data for any instrument not already in the selectable list, indicating it's not a problem with just the #SPY data.


And rather than adding a new comment to the thread.. I've noticed around the forum there's a few difficulties regarding DEP - could this be affecting my installation and/or data downloads in any way?

Last edited by fo0bar; 10/13/15 09:00.
Re: Downloading & using data [Re: fo0bar] #455203
10/13/15 08:59
10/13/15 08:59
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
No, DEP has no effect on your price downloads. But I see from your post that you seem to use Metatrader. Check with your broker how much price history you can download with that. Normally a couple of weeks or months, but certainly not years.

A broker that provides serious price history is FXCM, but only with a direct connection - not with Metatrader.

Re: Downloading & using data [Re: jcl] #455204
10/13/15 09:03
10/13/15 09:03
Joined: Jul 2015
Posts: 8
F
fo0bar Offline OP
Newbie
fo0bar  Offline OP
Newbie
F

Joined: Jul 2015
Posts: 8
Hi jcl,
Yes i'm using metatrader simply to manually scroll back through the data in order to see the earliest data that will be supplied for each time frame. In the case of H1 data, each broker does seem to supply data dating back to late 2013.

Am I wrong in assuming this is the same data that Zorro would have access to?

I have also attempted creating a demo account with FXCM and connecting directly however Zorro reports a login authentication issue despite copy/pasting the login details direct from details supplied by FXCM.

Last edited by fo0bar; 10/13/15 09:04.
Re: Downloading & using data [Re: fo0bar] #455205
10/13/15 09:06
10/13/15 09:06
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I can not tell. Zorro has only access to the price history that MT4 makes available to an EA. How much that is depends on the individual MT4 server setup. I have not yet found an MT4 server that could be used for price download beyond a few months. Admittedly I have not made much experiments with MT4 in that regard.

Also look in the Experts tab, there you can normally see from the error messages why the download failed.

Re: Downloading & using data [Re: jcl] #455211
10/13/15 12:17
10/13/15 12:17
Joined: Jul 2015
Posts: 8
F
fo0bar Offline OP
Newbie
fo0bar  Offline OP
Newbie
F

Joined: Jul 2015
Posts: 8
Thank you jcl. I've now discovered that if I create my FXCM demo account through a different method, the credentials do indeed work in Zorro. And I'm having far greater success with the data now that the direct connection is working.

I do normally try to stay away from MT4 for anything but charting and for a while the bridge was my only option - thanks for your advice; now I can start testing this algo!


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1