Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, AndrewAMD), 833 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
History download issues with MT bridge #487541
06/02/23 21:02
06/02/23 21:02
Joined: Jun 2023
Posts: 8
Denia
Mishiwaka Offline OP
Newbie
Mishiwaka  Offline OP
Newbie

Joined: Jun 2023
Posts: 8
Denia
Hello everyone,
I have an issue with downloading the history/data from MT4/5 bridge, I have code like in examples

assetHistory("GBP/JPY",1);
assetAdd("GBP/JPY");
asset("GBP/JPY");

bit when it tests or trains after it downloads history partially, I have an error
Error 047: GBP/JPY got 3, need 2001 bars

and

Load GBP/JPY 2023 99999 min (gap 57 days)
Load GBP/JPY 2022 300 min (gap 364 days)
and so on

Is it Zorro's internal limitation for the free version?

Re: History download issues with MT bridge [Re: Mishiwaka] #487542
06/02/23 21:04
06/02/23 21:04
Joined: Jun 2023
Posts: 8
Denia
Mishiwaka Offline OP
Newbie
Mishiwaka  Offline OP
Newbie

Joined: Jun 2023
Posts: 8
Denia
Actually, all pair apart from EUR/USD do the same

Re: History download issues with MT bridge [Re: Mishiwaka] #487543
06/03/23 12:01
06/03/23 12:01
Joined: Aug 2022
Posts: 65
alun Offline
Junior Member
alun  Offline
Junior Member

Joined: Aug 2022
Posts: 65
I don't think it supposed to download history from a broker connector.

That explains why you don't see the issue with EUR/USD - because it is bundled with the distribution.

I've used my own script to extract Forex/CFD data from JForex (Dukascopy) https://gist.github.com/alun/79c4a633c72ea91ec338a7d66c5ab496

But I believe there could be better ways.

Re: History download issues with MT bridge [Re: Mishiwaka] #487544
06/03/23 12:10
06/03/23 12:10
Joined: Aug 2022
Posts: 65
alun Offline
Junior Member
alun  Offline
Junior Member

Joined: Aug 2022
Posts: 65
Maybe Download / DownloadEOD scripts can help to get the history from a broker.

Re: History download issues with MT bridge [Re: Mishiwaka] #487545
06/03/23 13:28
06/03/23 13:28
Joined: Jun 2023
Posts: 8
Denia
Mishiwaka Offline OP
Newbie
Mishiwaka  Offline OP
Newbie

Joined: Jun 2023
Posts: 8
Denia
Thx for the reply. I found out that if it will be in mode four, it works. At least for BarPeriod = 60. Maybe someone will find it useful.
As I see it the problem is that you can download a limited amount of bars history from a broker, looks like 10 000 or something like this. So on a bridge, you need to specify LookBack and training period to get historical data strictly to necessary or available period.
I wrote the simplest script to get data from a broker, it needs to run apart, as far as also, there are limited amounts of downloads from the bridge. First successful and next time errors. The script is like this.

function run()
{
vars asset_name = "GBP/JPY";
LookBack = 5000;
BarPeriod = 60;
assetHistory(asset_name,4);
assetAdd(asset_name);
asset(asset_name);
StartDate = 2011;
EndDate = 2022;
}

Re: History download issues with MT bridge [Re: Mishiwaka] #487546
06/03/23 17:56
06/03/23 17:56
Joined: Jun 2023
Posts: 8
Denia
Mishiwaka Offline OP
Newbie
Mishiwaka  Offline OP
Newbie

Joined: Jun 2023
Posts: 8
Denia
More correct

assetList("AssetsCur.csv");
vars asset_name = "GBP/JPY";
LookBack = 5000;
BarPeriod = 30;
StartDate = 2011;
EndDate = 2022;
assetHistory(asset_name,4);
assetAdd(asset_name);
asset(asset_name);

Re: History download issues with MT bridge [Re: Mishiwaka] #487547
06/03/23 18:04
06/03/23 18:04
Joined: Aug 2022
Posts: 65
alun Offline
Junior Member
alun  Offline
Junior Member

Joined: Aug 2022
Posts: 65
Ah nice, thanks for sharing looks like 4 should work with any broker https://zorro-project.com/manual/en/loadhistory.htm

will keep it in mind.

DukasCopy history is free and quite deep - I've loaded since 2000 for a variety of instruments used to backtest Z-strategies.

Re: History download issues with MT bridge [Re: Mishiwaka] #487548
06/03/23 20:46
06/03/23 20:46
Joined: Jun 2023
Posts: 8
Denia
Mishiwaka Offline OP
Newbie
Mishiwaka  Offline OP
Newbie

Joined: Jun 2023
Posts: 8
Denia
Just curious what editor or compiler is that?

Attached Files
installation.png (17 downloads)
Re: History download issues with MT bridge [Re: Mishiwaka] #487555
06/05/23 10:11
06/05/23 10:11
Joined: Aug 2022
Posts: 65
alun Offline
Junior Member
alun  Offline
Junior Member

Joined: Aug 2022
Posts: 65
Originally Posted by Mishiwaka
Just curious what editor or compiler is that?


It's JForex 3 Dukascopy bespoke terminal

Re: History download issues with MT bridge [Re: Mishiwaka] #487556
06/05/23 10:16
06/05/23 10:16
Joined: Jun 2023
Posts: 8
Denia
Mishiwaka Offline OP
Newbie
Mishiwaka  Offline OP
Newbie

Joined: Jun 2023
Posts: 8
Denia
Thx.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1