Gennadiy,
The application is up and running again thanks.
An example of the timezone problem is below for GBPUSD . Along with the settings I am using.
- Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<Settings>
<UserID>0000000000</UserID>
<URL>www.fxcorporate.com/Hosts.jsp</URL>
<Connection>Real</Connection>
<SessionID></SessionID>
<Pin></Pin>
<TradingDayOffset>-7</TradingDayOffset>
<TradingWeekOffset>0</TradingWeekOffset>
<Delimiter>,</Delimiter>
<NeedLastCompletedCandle>N</NeedLastCompletedCandle>
<TimeZone>UTC</TimeZone>
<SeparateDateAndTime>Y</SeparateDateAndTime>
<FormatDecimalPlaces>Y</FormatDecimalPlaces>
<OutputDir>H:\fxcmdata</OutputDir>
<Timeout>60</Timeout>
Around the time that daylight saving is introduced in the UK, The 4 Hour candle times switch from 0200,0600,1000,1400,1800,2200 to 0100,0500,0900,1300,1700,2100
The timezone in the configuration.xml is set to UTC. UTC is set by some atomic clock and does not change. It should not change for daylight saving. When the timezone is set to EST you do not get this problem.
I have checked in marketscope and marketscope also has this problem so it seems the data being provided from the fxcm server is not correct or there is something wrong with the UTC flag?
I am just guessing but maybe the script is communicating the [Local] flag, which would explain the daylight saving time.
See here:
http://fxcodebase.com/wiki/index.php/Changing_Time_Zone- Code: Select all
06/03/2013,02:00,1.51452,1.51478,1.51325,1.51402,1.51476,1.51503,1.51349,1.51429,5631
06/03/2013,06:00,1.51402,1.51457,1.50679,1.50756,1.51429,1.51484,1.50710,1.50777,14600
06/03/2013,10:00,1.50756,1.51046,1.50591,1.50819,1.50777,1.51067,1.50614,1.50840,16372
06/03/2013,14:00,1.50819,1.50819,1.50155,1.50191,1.50840,1.50840,1.50177,1.50217,18836
06/03/2013,18:00,1.50191,1.50404,1.50158,1.50170,1.50217,1.50425,1.50192,1.50197,7857
06/03/2013,22:00,1.50170,1.50178,1.49637,1.49943,1.50197,1.50280,1.49687,1.49969,10290
07/03/2013,02:00,1.49943,1.50117,1.49882,1.50027,1.49969,1.50138,1.49902,1.50053,6814
07/03/2013,06:00,1.50027,1.50123,1.49667,1.49913,1.50053,1.50142,1.49692,1.49939,18537
07/03/2013,10:00,1.49913,1.50732,1.49816,1.50591,1.49939,1.50759,1.49886,1.50618,29718
07/03/2013,14:00,1.50591,1.50820,1.50155,1.50253,1.50618,1.50840,1.50180,1.50275,21316
07/03/2013,18:00,1.50253,1.50275,1.50055,1.50120,1.50275,1.50301,1.50080,1.50170,7126
07/03/2013,22:00,1.50120,1.50256,1.50052,1.50134,1.50170,1.50274,1.50124,1.50154,6674
08/03/2013,02:00,1.50134,1.50168,1.49807,1.49815,1.50154,1.50193,1.49831,1.49841,6032
08/03/2013,06:00,1.49815,1.50327,1.49809,1.50252,1.49841,1.50354,1.49835,1.50279,13287
08/03/2013,10:00,1.50252,1.50460,1.48833,1.49259,1.50279,1.50485,1.48875,1.49280,23362
08/03/2013,14:00,1.49259,1.49577,1.49042,1.49443,1.49280,1.49598,1.49064,1.49471,23534
08/03/2013,18:00,1.49443,1.49471,1.49081,1.49145,1.49471,1.49497,1.49117,1.49212,7293
10/03/2013,21:00,1.49150,1.49233,1.49003,1.49146,1.49193,1.49279,1.49023,1.49170,4702
11/03/2013,01:00,1.49146,1.49256,1.49112,1.49175,1.49170,1.49282,1.49137,1.49202,4625
11/03/2013,05:00,1.49175,1.49423,1.49162,1.49251,1.49202,1.49447,1.49189,1.49273,11433
11/03/2013,09:00,1.49251,1.49325,1.48649,1.48876,1.49273,1.49345,1.48673,1.48900,15867
11/03/2013,13:00,1.48876,1.49182,1.48721,1.49019,1.48900,1.49204,1.48747,1.49045,15879
11/03/2013,17:00,1.49019,1.49320,1.48989,1.49137,1.49045,1.49341,1.49015,1.49170,7615
11/03/2013,21:00,1.49137,1.49185,1.48962,1.49051,1.49170,1.49212,1.48986,1.49077,6731
12/03/2013,01:00,1.49051,1.49112,1.48849,1.48946,1.49077,1.49132,1.48870,1.48974,5486
12/03/2013,05:00,1.48946,1.49152,1.48777,1.49018,1.48974,1.49163,1.48804,1.49043,10941
12/03/2013,09:00,1.49018,1.49146,1.48304,1.48888,1.49043,1.49170,1.48330,1.48902,23773
12/03/2013,13:00,1.48888,1.49026,1.48547,1.48994,1.48902,1.49047,1.48571,1.49022,21976
12/03/2013,17:00,1.48994,1.49129,1.48883,1.48997,1.49022,1.49147,1.48905,1.49030,10274
12/03/2013,21:00,1.48997,1.49093,1.48918,1.49036,1.49030,1.49123,1.48942,1.49063,6104
Also on the 4 Hour you get an extra bar every now and again. Unlike the anomaly above, this does not appear in marketscope:
22/05/2013,21:00,1.50475,1.50499,1.50165,1.50224,1.50509,1.50574,1.50191,1.50251,7121
22/05/2013,21:00,1.50475,1.50499,1.50165,1.50224,1.50509,1.50574,1.50191,1.50251,7121
Chimpy