When I'm trying to perform a strategy analysis, a dialog with error "Historical data in your database is corrupted" pops up.
This occurs when using the "US Equities ETH" or "US Equities RTH" session templates and doesn't occur when using the"Default 24/7" session template.
From analyzing the exception as shown in the trace file attached below, I can see that it happens due to illegal date/time format in 2012-03-30 which is exactly the date where my local time has switched to DST. My local time zone is GMT+2 and my strategy is designed to work in GMT-5 (US Equities).
What can I do to avoid this issue? currently as a workaround I'm working with the "Default 24/7" session template but I would really like to set the correct session template which is "US Equities ETH".
Please Advise
Thanks.
Log file:
9/23/2012 12:08:10|0|4|Historical data in your database is corrupted.
Please reload historical minute data for 'SPY' from 8/19/2011 to 9/15/2012.
Tools->Historical Data->Reload...
Trace file:
2012-09-23 12:08:09:639 ERROR: Data.BarsBytes.FromBytes: System.ArgumentException: The supplied DateTime represents an invalid time. For example, when the clock is adjusted forward, any time in the period that is skipped is invalid.
Parameter name: dateTime
at System.TimeZoneInfo.ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone, TimeZoneInfoOptions flags)
at System.TimeZoneInfo.ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone)
at NinjaTrader.Data.BarsBytes.FromBytes(Bytes bytes, Boolean fromEst, Bars bars, DateTime minTime, Boolean suppressSessionHandling) idx=624 (count-1)=729 buf.InLength=5101 dateTimeMaxDay=2012-03-30 instrument='SPY' from='2011-08-19' to='2012-09-15' period=1 Min splitAdjusted=False dividendAdjusted=False bars=103280
2012-09-23 12:08:09:639 ERROR: Data.Bars.Load2: System.ArgumentException: The supplied DateTime represents an invalid time. For example, when the clock is adjusted forward, any time in the period that is skipped is invalid.
Parameter name: dateTime
at NinjaTrader.Data.BarsBytes.FromBytes(Bytes bytes, Boolean fromEst, Bars bars, DateTime minTime, Boolean suppressSessionHandling)
at NinjaTrader.Data.Bars.Load()
Comment