Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, Nymphodora, Quad, TipmyPip, Imhotep), 852 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Oanda - Darwinex data syncronisation #472729
05/16/18 10:47
05/16/18 10:47
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline OP
User
MatPed  Offline OP
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
Hi,
I am trading live Oanda and downloaded their data that, accordingly with muy info are GMT based.
Now I want to trade on Darwinex that is GMT+2 (do not ask me why...)
Darwinex does not allow to download enough data to train and test the strategy so I need to sync the historic data with the Darwinex timezone. Please not that I need the data synced not only for training and testing purposes but for trading too, because "set(PRELOAD);" is mandatory to load enough data for the indicators.

Now the question,setting:
AssetZone = +2;

does the trick or Something different has to be done?

Thank you





Last edited by MatPed; 05/16/18 10:50.
Re: Oanda - Darwinex data syncronisation [Re: MatPed] #473141
06/15/18 22:19
06/15/18 22:19
Joined: Jan 2014
Posts: 86
London City
B
byakuren81 Offline
Junior Member
byakuren81  Offline
Junior Member
B

Joined: Jan 2014
Posts: 86
London City
I am surprised, normally Oanda data are UTC aligned by default and as Zorro is too, I would wonder why they would have implemented their plugin with GMT data.

Re: Oanda - Darwinex data syncronisation [Re: byakuren81] #473145
06/16/18 09:58
06/16/18 09:58
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline OP
User
MatPed  Offline OP
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
Sorry I cannot answer to your curiosity, I am not part of Darwinex Staff. Somebody in the community said they switch in order to have one more full bar in a week. Do not ask me what does it mean...
The biggest limitation of Darwinex is that they ar Metatrader minded...

Ciao

Re: Oanda - Darwinex data syncronisation [Re: MatPed] #473146
06/16/18 12:41
06/16/18 12:41
Joined: Jan 2014
Posts: 86
London City
B
byakuren81 Offline
Junior Member
byakuren81  Offline
Junior Member
B

Joined: Jan 2014
Posts: 86
London City
I was talking about the Oanda data downloaded by Zorro that are UTC and not GMT. I did not know Darwinex I will take a look. You should look at BarZone it usually does the job. If BarZone is not set you will get UTC data aligned (BarZone=24 by default) and if set to 0 you will get GMT. You can make sure of that by writing daily data to a csv with BarPeriod=1440, you will set BarZone=0 will get a daily closing time of 00:00 when GMT and UTC are aligned and 23:00 when daylight saving time is applied as GMT is then one hour ahead of UTC. So for GMT+2 you should be setting BarZone=2. To be honest, to my mind the EOD alignment making most sense is US-Eastern, as you will then have the week ending on Friday at 17:00 EST and starting on Sunday at 17:00 EST. The Sunday bar will then be a complete 24 hours bar as ending on Monday at 17:00 EST. It's a question of point of view but for having worked quite a long time on the financial markets I tend to choose this daily alignment.

Re: Oanda - Darwinex data syncronisation [Re: byakuren81] #473147
06/16/18 12:49
06/16/18 12:49
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
First of all, all broker plugins are supposed to output T6 files with date in UTC format already. The work should have been done for you.

You can verify this by using the Z History Editor and looking at the entries.

Re: Oanda - Darwinex data syncronisation [Re: AndrewAMD] #473148
06/16/18 13:19
06/16/18 13:19
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline OP
User
MatPed  Offline OP
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
I am still a lot confused by date timestamp, server time, asset trading time, barzone, assetzone and so on.
The reason of my post is exactly the result of this "confusion" I have.

I want to use the data downloaded from Oanda in order to train, test and possible trade a script on Darwinex, and I asked if the AssetZone = +2; was correct.

Based on your post it seams wrong. What to do you recommend?

Thank you

Re: Oanda - Darwinex data syncronisation [Re: MatPed] #473149
06/16/18 13:37
06/16/18 13:37
Joined: Jan 2014
Posts: 86
London City
B
byakuren81 Offline
Junior Member
byakuren81  Offline
Junior Member
B

Joined: Jan 2014
Posts: 86
London City
Use AssetZone when you want to trade assets with different time zones, if you want to trade the same time zone for all assets use BarZone as explained in my previous answer. By the way on which time frame do plan running your back testing on?

Re: Oanda - Darwinex data syncronisation [Re: byakuren81] #473150
06/16/18 14:24
06/16/18 14:24
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline OP
User
MatPed  Offline OP
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
BarPeriod = 240;
several currency and CFD so, lets make an example
Darwinex server time is UTC+2.

Lets trade firs Nikkei225 and than GER30
BarPeriod = 240;
WeekEnd = 1+2+4
AssetZone = JST;
dosomething;
AssetZone = UTC;
dosomethingelse;

am I correct?

Re: Oanda - Darwinex data syncronisation [Re: MatPed] #473151
06/16/18 14:47
06/16/18 14:47
Joined: Jan 2014
Posts: 86
London City
B
byakuren81 Offline
Junior Member
byakuren81  Offline
Junior Member
B

Joined: Jan 2014
Posts: 86
London City
If Darwinex server time is UTC+2 it's the same as GMT+2, the difference between the two being that GMT is a time zone whereas UTC is a time reference.
To help you to understand the nuance between them, know that UTC time will always be static but if you align on GMT, daylight saving time will be taken into account as it is a time zone.
In Paris, Madrid, Rome, Frankfurt time zone as you are in +1 hour compare to UTC and another +1 because of the daylight saving time applied during this period of the year (in which we are currently in). As you are living in Milan (if it is still the case!) it makes sense Darwinex system is aligning to your current time zone.
So you should be using BarZone = CET (where CET = 1 in Zorro);

Re: Oanda - Darwinex data syncronisation [Re: byakuren81] #473152
06/16/18 14:55
06/16/18 14:55
Joined: Jan 2014
Posts: 86
London City
B
byakuren81 Offline
Junior Member
byakuren81  Offline
Junior Member
B

Joined: Jan 2014
Posts: 86
London City
Also, remember that Zorro bar time is the bar closing time and not the bar opening time as displayed on charts of many brokers and trading platforms.

Page 1 of 2 1 2

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