﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/css' href='https://stocksharp.ru/css/style.css'?>
<?xml-stylesheet type='text/css' href='https://stocksharp.ru/css/bbeditor.css'?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html">Unable to load existing position from storage</title>
  <id>~/topic/8814/unable-to-load-existing-position-from-storage/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-04-08T19:21:32Z</updated>
  <logo>https://stocksharp.ru/images/logo.png</logo>
  <link href="https://stocksharp.ru/handlers/atom.ashx?category=topic&amp;id=8814" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.ru/posts/m/41765/</id>
    <title type="text">Thank you for more details. The answer was provided my colleague by email.</title>
    <published>2017-11-21T18:52:26Z</published>
    <updated>2017-11-21T18:52:26Z</updated>
    <author>
      <name>Support</name>
      <uri>https://stocksharp.ru/users/97869/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">Thank you for more details. The answer was provided my colleague by email.</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/41675/</id>
    <title type="text">Hi This will give me the position in the position collection of the _connector. But I need the mytra...</title>
    <published>2017-11-16T10:53:13Z</published>
    <updated>2017-11-16T10:53:13Z</updated>
    <author>
      <name>Johan Kirsten</name>
      <uri>https://stocksharp.ru/users/99799/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">Hi&lt;br /&gt;&lt;br /&gt;This will give me the position in the position collection of the _connector. But I need the mytrade loaded into the mytrade collection so that I can access the original user order id. Currently the mytrade collection does not load. How do I get it to load&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/41672/</id>
    <title type="text">Please use the following lines in your code: _connector.NewPosition += _connector_NewPosition; _conn...</title>
    <published>2017-11-15T16:53:37Z</published>
    <updated>2017-11-15T16:53:37Z</updated>
    <author>
      <name>Support</name>
      <uri>https://stocksharp.ru/users/97869/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">Please use the following lines in your code:&lt;br /&gt;&lt;br /&gt;&lt;div class="code"&gt;&lt;strong&gt;Код&lt;/strong&gt;&lt;div class="innercode"&gt;_connector.NewPosition += _connector_NewPosition;&lt;br /&gt;_connector.PositionChanged += _connector_PositionChanged;&lt;br /&gt;&lt;br /&gt;private static void _connector_PositionChanged(StockSharp.BusinessEntities.Position obj)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Console.WriteLine(&amp;quot;_connector_PositionChanged:&amp;quot; + obj);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;private static void _connector_NewPosition(StockSharp.BusinessEntities.Position obj)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Console.WriteLine(&amp;quot;_connector_NewPosition:&amp;quot; + obj);&lt;br /&gt;}&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;After modification your sample with sent csv storage should display following output:&lt;br /&gt;&lt;br /&gt;&lt;div class='spoilertitle'&gt;&lt;input type='button' value='Показать спойлер' class='btn btn-primary' onclick="toggleSpoiler(this, 'spolier_072bab65c32348e3bd56f6b55a104799');" title='Показать спойлер' /&gt;&lt;/div&gt;&lt;div class='spoilerbox' id='spolier_072bab65c32348e3bd56f6b55a104799' style='display:none'&gt;_connector_NewPortfolio:DU775642&lt;br /&gt;_connector_NewPosition:DU775642-SPXW  171215C02580000@CBOE&lt;br /&gt;_connector_PositionChanged:DU775642-SPXW  171215C02580000@CBOE&lt;br /&gt;_connector_NewPosition:DU775642-SPXW  171215C02580000@ALL&lt;br /&gt;_connector_PositionChanged:DU775642-SPXW  171215C02580000@ALL&lt;br /&gt;_connector_NewPortfolio:DU229525&lt;br /&gt;_connector_NewPosition:DU229525-AAPL@NASDAQ&lt;br /&gt;_connector_PositionChanged:DU229525-AAPL@NASDAQ&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Portfolio - is only money position. To get position for security you should to use Position class instead.</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/41645/</id>
    <title type="text">Hi Is this problem related to not including this code: _entityRegistry.DelayAction.DefaultGroup.Wait...</title>
    <published>2017-11-13T15:39:31Z</published>
    <updated>2017-11-13T15:39:31Z</updated>
    <author>
      <name>Support</name>
      <uri>https://stocksharp.ru/users/97869/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;div class="quote"&gt;&lt;span class="quotetitle"&gt;Johan Kirsten &lt;a href="https://stocksharp.ru/posts/m/41600/" class="quote_nav"&gt;&lt;/a&gt;&lt;/span&gt;&lt;div class="innerquote"&gt;Hi&lt;br /&gt;&lt;br /&gt;Is this problem related to not including this code:&lt;br /&gt;&lt;br /&gt;&lt;div class="code"&gt;&lt;strong&gt;Код&lt;/strong&gt;&lt;div class="innercode"&gt;&lt;br /&gt;_entityRegistry.DelayAction.DefaultGroup.WaitFlush(true);&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;in the application that must save the position? What does this code do?&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;We will investigate your archive later.&lt;br /&gt;&lt;br /&gt;Yes, this line is necessary because saving process goes in parallel. You application can shut down before all changes will be flushed into disk.</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/41600/</id>
    <title type="text">Hi Is this problem related to not including this code: _entityRegistry.DelayAction.DefaultGroup.Wait...</title>
    <published>2017-11-10T12:10:31Z</published>
    <updated>2017-11-10T12:10:31Z</updated>
    <author>
      <name>Johan Kirsten</name>
      <uri>https://stocksharp.ru/users/99799/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">Hi&lt;br /&gt;&lt;br /&gt;Is this problem related to not including this code:&lt;br /&gt;&lt;br /&gt;&lt;div class="code"&gt;&lt;strong&gt;Код&lt;/strong&gt;&lt;div class="innercode"&gt;&lt;br /&gt;_entityRegistry.DelayAction.DefaultGroup.WaitFlush(true);&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;in the application that must save the position? What does this code do?</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/41599/</id>
    <title type="text">Hi Using my application I opened a position in SPXW call. My application uses CSV storage, so it sho...</title>
    <published>2017-11-10T10:22:07Z</published>
    <updated>2017-11-10T10:22:07Z</updated>
    <author>
      <name>Johan Kirsten</name>
      <uri>https://stocksharp.ru/users/99799/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">Hi&lt;br /&gt;&lt;br /&gt;Using my application I opened a position in SPXW call. My application uses CSV storage, so it should have been stored. If I open my application the existing position does not get loaded. I have attached a console application that loads and connects using the storage my own application created. I have included the csv store in the zip file. It is in the bin/debug/data directory. Please look at the store. Did the position save to the store? If so, why does it not load? I also included the connector log in the bin/debug/logs directory.&lt;br /&gt;&lt;br /&gt;Regards</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>