﻿<?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">Изменена логика работы с Unit в новых версиях?</title>
  <id>~/topic/4863/izmenena-logika-raboty-s-unit-v-novyh-versiyah/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-04T16:56:07Z</updated>
  <logo>https://stocksharp.com/images/logo.png</logo>
  <link href="https://stocksharp.com/handlers/atom.ashx?category=topic&amp;id=4863" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.com/posts/m/32467/</id>
    <title type="text">[quote=towace;32466]а где вы берёте 4.2.58? у меня доступна только 4.2.43[/quote] https://github.com...</title>
    <published>2015-01-23T19:16:21Z</published>
    <updated>2015-01-23T19:16:21Z</updated>
    <author>
      <name>Andrii</name>
      <uri>https://stocksharp.com/users/27996/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;[quote=towace;32466]а где вы берёте 4.2.58? у меня доступна только 4.2.43[/quote]&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/stocksharp/stocksharp" target="_blank"&gt;https://github.com/stocksharp/stocksharp&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/32466/</id>
    <title type="text">а где вы берёте 4.2.58? у меня доступна только 4.2.43 </title>
    <published>2015-01-23T19:11:53Z</published>
    <updated>2015-01-23T19:11:53Z</updated>
    <author>
      <name>towace</name>
      <uri>https://stocksharp.com/users/6501/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;а где вы берёте 4.2.58? у меня доступна только 4.2.43&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/32464/</id>
    <title type="text">[quote=RomSunZ;32458]В обновлении 4.2.58 ошибка та же самая.[/quote] Действительно, как-то недофикси...</title>
    <published>2015-01-23T15:02:40Z</published>
    <updated>2015-01-23T15:02:40Z</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;[quote=RomSunZ;32458]В обновлении 4.2.58 ошибка та же самая.[/quote]&lt;/p&gt;
&lt;p&gt;Действительно, как-то недофиксилось.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/32458/</id>
    <title type="text">В обновлении 4.2.58 ошибка та же самая. </title>
    <published>2015-01-23T09:53:54Z</published>
    <updated>2015-01-23T09:53:54Z</updated>
    <author>
      <name>RomSunZ</name>
      <uri>https://stocksharp.com/users/6384/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;В обновлении 4.2.58 ошибка та же самая.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/32428/</id>
    <title type="text">В обновлении 4.2.57 ошибка осталась: [quote] 19:10:40.985|Error |LQS_SPH5@FORTS_SPBFUT|System.Invali...</title>
    <published>2015-01-20T13:14:55Z</published>
    <updated>2015-01-20T13:14:55Z</updated>
    <author>
      <name>RomSunZ</name>
      <uri>https://stocksharp.com/users/6384/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;В обновлении 4.2.57 ошибка осталась:
[quote]
19:10:40.985|Error  |LQS_SPH5@FORTS_SPBFUT|System.InvalidOperationException: Обработчик получения значения не установлен.
в StockSharp.Messages.Unit.SafeGetTypeValue(Func&lt;code&gt;2 getTypeValue) в StockSharp.Messages.Unit.op_Explicit(Unit unit) в StockSharp.Messages.Unit.CreateResult(Unit u1, Unit u2, Func&lt;/code&gt;3 operation, Func`3 percentOperation)
в StockSharp.Messages.Unit.op_Subtraction(Unit u1, Unit u2)
в StockSharp.Algo.TraderHelper.ApplyOffset(Unit price, Sides side, Unit offset, Security security)
[/quote]&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/32419/</id>
    <title type="text">Сорри, в логах не увидел ошибок. Сейчас вот нашел: [quote] 22:27:49.093|Error |LQS_GAZP@TQBR_1|Syste...</title>
    <published>2015-01-18T16:36:18Z</published>
    <updated>2015-01-18T16:36:18Z</updated>
    <author>
      <name>RomSunZ</name>
      <uri>https://stocksharp.com/users/6384/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Сорри, в логах не увидел ошибок. Сейчас вот нашел:&lt;/p&gt;
&lt;p&gt;[quote]
22:27:49.093|Error  |LQS_GAZP@TQBR_1|System.InvalidOperationException: Обработчик получения значения не установлен.
в StockSharp.Messages.Unit.SafeGetTypeValue(Func&lt;code&gt;1 getTypeValue) в StockSharp.Messages.Unit.op_Explicit(Unit unit) в StockSharp.Messages.Unit.CreateResult(Unit u1, Unit u2, Func&lt;/code&gt;3 operation, Func`3 percentOperation)
в StockSharp.Messages.Unit.op_Subtraction(Unit u1, Unit u2)
в StockSharp.Algo.TraderHelper.ApplyOffset(Unit price, Sides side, Unit offset, Security security)
[/quote]&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/32413/</id>
    <title type="text">Без текста ошибки не понятно. </title>
    <published>2015-01-17T15:19:19Z</published>
    <updated>2015-01-17T15:19:19Z</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;Без текста ошибки не понятно.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/32410/</id>
    <title type="text">Уважаемые разработчики, подскажите как теперь работать с типом Unit и методом ApplyOffset в версии 4...</title>
    <published>2015-01-16T18:58:51Z</published>
    <updated>2015-01-16T18:58:51Z</updated>
    <author>
      <name>RomSunZ</name>
      <uri>https://stocksharp.com/users/6384/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Уважаемые разработчики, подскажите как теперь работать с типом Unit и методом ApplyOffset в версии 4.2.56?
Код
[code=csharp]
var ofs = new Unit(1m, UnitTypes.Step);
var tt = new Unit(10m);
//tt.SetSecurity(this.Security);
tt=tt.ApplyOffset(Sides.Buy, ofs, this.Security);
[/code]
приводит к исключению &amp;quot;Первый этап обработки исключения типа &amp;quot;System.InvalidOperationException&amp;quot; в StockSharp.Messages.dll&amp;quot;&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>