﻿<?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">Exception при генераци XML отчёта [3.0.11]</title>
  <id>~/topic/1421/exception-pri-generatsi-xml-otchyota-3_0_11/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-16T05:44:39Z</updated>
  <logo>https://stocksharp.com/images/logo.png</logo>
  <link href="https://stocksharp.com/handlers/atom.ashx?category=topic&amp;id=1421" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.com/posts/m/6442/</id>
    <title type="text">Ошибку нашёл, с моей стороны была. Сори. :) </title>
    <published>2011-03-04T22:45:23Z</published>
    <updated>2011-03-04T22:45:36Z</updated>
    <author>
      <name>Alexander</name>
      <uri>https://stocksharp.com/users/2826/</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/6438/</id>
    <title type="text">Mikhail Sukhov: Alexander: На 3.0.11 следующий exception (стакан экспортируется): А если вручную пос...</title>
    <published>2011-03-04T20:05:45Z</published>
    <updated>2011-03-04T20:05:45Z</updated>
    <author>
      <name>Alexander</name>
      <uri>https://stocksharp.com/users/2826/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(6434)" rel="nofollow" target="_blank"&gt;Mikhail Sukhov&lt;/a&gt;:&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(6433)" rel="nofollow" target="_blank"&gt;Alexander&lt;/a&gt;:&lt;/strong&gt;
На 3.0.11 следующий exception (стакан экспортируется):&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;А если вручную посмотреть на сам стакан, пустой он или нет? ITrader.GetMarketDepth(Security).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Пустой:&lt;/p&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code&gt;md	{Ecng.Trading.BusinessEntities.MarketDepth}	Ecng.Trading.BusinessEntities.MarketDepth
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code&gt;base	{Ecng.Trading.BusinessEntities.MarketDepth}	Ecng.Common.Cloneable&amp;lt;Ecng.Trading.BusinessEntities.MarketDepth&amp;gt; {Ecng.Trading.BusinessEntities.MarketDepth}
Asks	{Ecng.Trading.BusinessEntities.Quote[0]}	Ecng.Trading.BusinessEntities.Quote[]
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code&gt;BestAsk	{Оффер 0 0}	Ecng.Trading.BusinessEntities.Quote
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code&gt;BestBid	{Бид 0 0}	Ecng.Trading.BusinessEntities.Quote
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code&gt;BestPair	{Ecng.Trading.BusinessEntities.MarketDepthPair}	Ecng.Trading.BusinessEntities.MarketDepthPair
Bids	{Ecng.Trading.BusinessEntities.Quote[0]}	Ecng.Trading.BusinessEntities.Quote[]
Count	0	int
Depth	0	int
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code&gt;LastChangeTime	{01.01.0001 0:00:00}	System.DateTime
MaxDepth	100	int
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code&gt;Security	{RIH1@RTS}	Ecng.Trading.BusinessEntities.Security
SpreadPrice	0.0	double
SpreadVolume	0	int
TotalAsksPrice	0.0	double
TotalAsksVolume	0	int
TotalBidsPrice	0.0	double
TotalBidsVolume	0	int
TotalPrice	0.0	double
TotalVolume	0	int
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code&gt;Trader	{Robots.Entities.OwnQuikTrader}	Ecng.Trading.BusinessEntities.ITrader {Robots.Entities.OwnQuikTrader}
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code&gt;Non-Public members
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code&gt;Results View	Expanding the Results View will enumerate the IEnumerable
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/6434/</id>
    <title type="text">Alexander: На 3.0.11 следующий exception (стакан экспортируется): А если вручную посмотреть на сам с...</title>
    <published>2011-03-04T17:15:36Z</published>
    <updated>2011-03-04T17:15:36Z</updated>
    <author>
      <name>Mikhail Sukhov</name>
      <uri>https://stocksharp.com/users/201/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(6433)" rel="nofollow" target="_blank"&gt;Alexander&lt;/a&gt;:&lt;/strong&gt;
На 3.0.11 следующий exception (стакан экспортируется):&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;А если вручную посмотреть на сам стакан, пустой он или нет? ITrader.GetMarketDepth(Security).&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/6433/</id>
    <title type="text">На 3.0.11 следующий exception (стакан экспортируется): System.ArgumentException was unhandled Messag...</title>
    <published>2011-03-04T16:52:02Z</published>
    <updated>2011-03-04T16:52:02Z</updated>
    <author>
      <name>Alexander</name>
      <uri>https://stocksharp.com/users/2826/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;На 3.0.11 следующий exception (стакан экспортируется):&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;System.ArgumentException was unhandled
Message=Котировка для направления Sell отсутствует.
Parameter name: bestPair
Source=Ecng.Trading.Algo
ParamName=bestPair
StackTrace:
at Ecng.Trading.Algo.TraderHelper.GetMarketPrice(MarketDepthPair bestPair, OrderDirections direction, Unit priceDelta, MarketPriceTypes priceType)
at Ecng.Trading.Algo.TraderHelper.GetMarketPrice(MarketDepth depth, OrderDirections direction, Unit priceDelta, MarketPriceTypes priceType)
at Ecng.Trading.Algo.TraderHelper.GetMarketPrice(Security security, OrderDirections direction, Unit priceDelta, MarketPriceTypes priceType)
at Ecng.Trading.Algo.TraderHelper.GetPnL(Security security, Int64 position)
at Ecng.Trading.Algo.PnL.BasePnLManager.#=q836kuXrCbvnCKEJj5Cbj2g==(KeyValuePair&lt;code&gt;2 #=qhm9jo7HetgxyijS5fWjtCA==) at System.Linq.Enumerable.WhereSelectEnumerableIterator&lt;/code&gt;2.MoveNext()
at System.Linq.Enumerable.Sum(IEnumerable&lt;code&gt;1 source) at Ecng.Trading.Algo.PnL.BasePnLManager.#=q2do1oc9dZRDiwTtYLiYssg==(SynchronizedDictionary&lt;/code&gt;2 #=qWPvwsgC0Ugb3v9rxLZzh4w==)
at Ecng.Collections.CollectionHelper.SyncGet[TCollection,TResult](TCollection collection, Func`2 func)
at Ecng.Trading.Algo.PnL.BasePnLManager.get_PnL()
at Ecng.Trading.Algo.Reporting.XmlStrategyReport.Generate()
at Robots.MainWindow.MainWindow.GenerateStrategyReports(Strategy strategy) in c:\Users\Alexander\Documents\Visual Studio 2010\Projects\Robots\Robots\MainWindow\MainWindow.xaml.cs:line 65
at Robots.MainWindow.MainWindow.OnClosing(CancelEventArgs e) in c:\Users\Alexander\Documents\Visual Studio 2010\Projects\Robots\Robots\MainWindow\MainWindow.xaml.cs:line 130
.......
InnerException:&lt;/p&gt;
&lt;/blockquote&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>