Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
How to synchronize time in historical tester to EET time zone http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=200&t=56530 |
Page 1 of 1 |
Author: | goose_ [ Sun 27 May, 2018, 10:47 ] |
Post subject: | How to synchronize time in historical tester to EET time zone |
Hi everyone, I don't know how to synchronize time in historical tester to EET time zone. I tried to do this in a different ways, but nothing works: 1) get a bars with filter weekend 2) change settings platform tester.setDataInterval() in code 3) stop print data in console when context time is lower bar time --> if ( d.getDay() > e.getDay()) { return; } else { /* do sth */ } and other what you see in code below Always I get data from UTC time zone. Even when I change UTC to EET in platform time zone and chart settings it does not solve the problem. I want to use EET time zone in historical tester but I don't know how... Those picture shows testing results my strategy code in UTC and EET time zone and it's no difference between this settings, because I get always data in UTC time zone. This is UTC time zone in platform and chart settings This is EET time zone in platform and chart settings package jforex; ===================== So, the problem is - how to set default time zone and start day time UTC to other time zone like EET. I get always only UTC data in historical tester. Maybe I'm doing something wrong... How to set default time zone in historical tester ? Regards. |
Author: | Platform Support [ Tue 29 May, 2018, 07:12 ] |
Post subject: | Re: How to synchronize time in historical tester to EET time zone |
Day Start time zone setting in Preferences does not influence the data used in Strategy. All the data is provided in UTC. Here is more information: https://www.dukascopy.com/swiss/english ... one#p93428 https://www.dukascopy.com/swiss/english ... 65&t=52487 |
Author: | goose_ [ Tue 29 May, 2018, 10:38 ] | |||
Post subject: | Re: How to synchronize time in historical tester to EET time zone | |||
Thanks for answer and solution. I did it like you wrote. This solution is not perfect, current candle not draw and I get price "from under" D1 candle, not from 5 min or 1H period, anyway data (for example from stochastic indicator etc) looks fine. I will continue to try to understand this... but at the moment I wanted to write that all it is ok. In attachments: 1) screenshot of chart and platform time zone EET - Open High Low Close look Ok. 2) my strategy code Regards.
|
Page 1 of 1 |