Gamestudio Links
Zorro Links
Newest Posts
M1 Oversampling
by 11honza11. 04/26/24 08:32
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (Quad, EternallyCurious, RealSerious3D, 1 invisible), 839 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Dukascopy Tick Downloader #461890
08/27/16 17:08
08/27/16 17:08
Joined: Aug 2016
Posts: 95
Wien
T
trenki2 Offline OP
Junior Member
trenki2  Offline OP
Junior Member
T

Joined: Aug 2016
Posts: 95
Wien
For anyone who wants to use the free Dukascopy data for backtesting in Zorro I have C# code at my github repository that I can share: https://github.com/trenki2/DukascopyTickDownloader

The code downloads the free Dukascopy Tick data and converts it into various formats f.i. ForexTester M1 bar data that can be imported in MT4 but also Zorro .t1 and .bar data. To update the already downloaded data just run the program again.
The code can also be used to convert the free ForexTester M1 data that goes back to 2001 to the Zorro .bar format.

It also stores the spread data in an associated pseudo asset file e.g. EUR/USDs that can be used for variable spread backtesting. This works with T1 data but also with the Bar data so one can do variable spread backtesting also with the free Zorro version like in the following example:

Code:
while (loop("AUD/USD", "EUR/USD", "GBP/USD", "NZD/USD", "USD/CAD",  "USD/CHF", "USD/JPY"))
{
	string realAsset = Loop1;
	char spreadAsset[10];
	sprintf(spreadAsset, "%ss", realAsset);
	
	Detrend = NOPRICE;
	asset(spreadAsset);
	var spread = priceClose(0);
	
	Detrend = 0;
	asset(realAsset);
	Spread = spread;
	
	Trade();
}


Re: Dukascopy Tick Downloader [Re: trenki2] #461897
08/28/16 08:53
08/28/16 08:53
Joined: Aug 2016
Posts: 11
C
Calli Offline
Newbie
Calli  Offline
Newbie
C

Joined: Aug 2016
Posts: 11


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1