﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/css' href='https://stocksharp.com/css/style.css'?>
<?xml-stylesheet type='text/css' href='https://stocksharp.com/css/bbeditor.css'?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html">Ошибка с временем в HistoryEmulationConnector</title>
  <id>~/topic/4628/oshibka-s-vremenem-v-historyemulationconnector/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-18T06:52:35Z</updated>
  <logo>https://stocksharp.com/images/logo.png</logo>
  <link href="https://stocksharp.com/handlers/atom.ashx?category=topic&amp;id=4628" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.com/posts/m/31204/</id>
    <title type="text">Локализуйте время, подписавшись на событие Connector.MarketTimeChanged. Вот тут различные рецепты. h...</title>
    <published>2014-07-15T12:35:43Z</published>
    <updated>2014-07-15T12:36:22Z</updated>
    <author>
      <name>Mikhail Sukhov</name>
      <uri>https://stocksharp.com/users/201/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Локализуйте время, подписавшись на событие Connector.MarketTimeChanged. Вот тут различные рецепты. &lt;a href="http://stackoverflow.com/questions/2416439/exception-calling-when-timezoneinfo-converttimetoutc-for-certain-datetime-values" rel="nofollow" target="_blank"&gt;http://stackoverflow.com/questions/2416439/exception-calling-when-timezoneinfo-converttimetoutc-for-certain-datetime-values&lt;/a&gt;&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/31200/</id>
    <title type="text">Добрый день [smile] Подскажите пожалуйста почему при тестировании на истории, на временных интервала...</title>
    <published>2014-07-15T10:21:05Z</published>
    <updated>2014-07-15T10:21:05Z</updated>
    <author>
      <name>wednesday</name>
      <uri>https://stocksharp.com/users/38935/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Добрый день [smile]
Подскажите пожалуйста почему при тестировании на истории, на временных интервалах включающих в себя  31 марта,  может возникать данная ошибка.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;HistoryEmulationConnector 31.03.2013 3:00:00 Error System.ArgumentException: Полученное значение DateTime не соответствует допустимому значению времени.  Например, при переводе часов вперед любое время, приходящееся на пропущенный период, считается недействительным.
Имя параметра: dateTime
в System.TimeZoneInfo.ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone, TimeZoneInfoOptions flags, CachedData cachedData)
в System.TimeZoneInfo.ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone)
в StockSharp.Algo.TraderHelper.ToExchangeTime(Exchange exchange, DateTime time, TimeZoneInfo sourceZone)
в StockSharp.Algo.TraderHelper.ToExchangeTime(Exchange exchange, DateTime time)
в StockSharp.Algo.TraderHelper.ToExchangeTime(Security security, DateTime localTime)
в StockSharp.Algo.TraderHelper.GetMarketTime(Security security)
в StockSharp.Algo.Strategies.Strategy.get_CurrentTime()
в StockSharp.Algo.Strategies.StrategyHelper.IsTradeTime(Strategy strategy)
в StockSharp.Algo.Strategies.Strategy.#=qxdcmix6Yt3vNn7FTildS2RiGPsqSxsMZFb2ckCKUYp8=(TimeSpan #=qCdPJIq2RJXHLF$CkyhQoOg==)
в System.Action&lt;code&gt;1.Invoke(T obj) в Ecng.Common.DelegateHelper.SafeInvoke(Action&lt;/code&gt;1 handler, T arg)
в StockSharp.Algo.Connector.#=qyZBfUUSM4onnfQ$9MuxukDko_3F6qNOdwtO9hmuyWm0=(TimeSpan #=qhLVGNCMGdxX9Ur4pUz60VQ==)
в StockSharp.Algo.Connector.#=qcxr_QEMxh$YcQgzX80oDdHIKs5eisSWh1$_PFpeShsQ=()
в StockSharp.Algo.Connector.OnProcessMessage(Message message, MessageAdapterTypes adapterType, MessageDirections direction)
в StockSharp.Algo.Testing.BaseEmulationConnector.OnProcessMessage(Message message, MessageAdapterTypes adapterType, MessageDirections direction)
в StockSharp.Algo.Testing.HistoryEmulationConnector.OnProcessMessage(Message message, MessageAdapterTypes adapterType, MessageDirections direction)&lt;/p&gt;
&lt;/blockquote&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>