Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by CocaCola
Today at 02:42
CyberCycle Adaptive Cy
by AndrewAMD
Yesterday at 18:54
How does Zorro handle new strategy/asset?
by Seymour
Yesterday at 15:29
About 1M entities!
by txesmi
Yesterday at 14:16
Montecarlo statistical mode parameter optimization
by AndrewAMD
Yesterday at 13:36
Strategy Development
by OptimusPrime
Yesterday at 02:08
Intercept Friday Daily Close
by tradingest
12/12/18 21:40
AUM Magazine
Latest Screens
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Who's Online
10 registered (Ayumi, MINER, wdlmaster, kvm, MatPed, 3run, jenGs, 3 invisible), 488 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
rssflc, mahomed, bondz, Neil_G, bobby4h
18118 Registered Users
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#472729 - 05/16/18 12:47 Oanda - Darwinex data syncronisation
MatPed Online
User

Registered: 02/28/15
Posts: 506
Loc: 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






Edited by MatPed (05/16/18 12:50)

Top
#473141 - 06/16/18 00:19 Re: Oanda - Darwinex data syncronisation [Re: MatPed]
byakuren81 Offline
Junior Member

Registered: 01/22/14
Posts: 60
Loc: 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.

Top
#473145 - 06/16/18 11:58 Re: Oanda - Darwinex data syncronisation [Re: byakuren81]
MatPed Online
User

Registered: 02/28/15
Posts: 506
Loc: 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

Top
#473146 - 06/16/18 14:41 Re: Oanda - Darwinex data syncronisation [Re: MatPed]
byakuren81 Offline
Junior Member

Registered: 01/22/14
Posts: 60
Loc: 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.

Top
#473147 - 06/16/18 14:49 Re: Oanda - Darwinex data syncronisation [Re: byakuren81]
AndrewAMD Offline
Senior Member

Registered: 02/21/17
Posts: 480
Loc: 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.

Top
#473148 - 06/16/18 15:19 Re: Oanda - Darwinex data syncronisation [Re: AndrewAMD]
MatPed Online
User

Registered: 02/28/15
Posts: 506
Loc: 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

Top
#473149 - 06/16/18 15:37 Re: Oanda - Darwinex data syncronisation [Re: MatPed]
byakuren81 Offline
Junior Member

Registered: 01/22/14
Posts: 60
Loc: 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?

Top
#473150 - 06/16/18 16:24 Re: Oanda - Darwinex data syncronisation [Re: byakuren81]
MatPed Online
User

Registered: 02/28/15
Posts: 506
Loc: 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?

Top
#473151 - 06/16/18 16:47 Re: Oanda - Darwinex data syncronisation [Re: MatPed]
byakuren81 Offline
Junior Member

Registered: 01/22/14
Posts: 60
Loc: 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);

Top
#473152 - 06/16/18 16:55 Re: Oanda - Darwinex data syncronisation [Re: byakuren81]
byakuren81 Offline
Junior Member

Registered: 01/22/14
Posts: 60
Loc: 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.

Top
Page 1 of 2 1 2 >



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

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