Exception при генераци XML отчёта [3.0.11]


Exception при генераци XML отчёта [3.0.11]
Atom
3/4/2011


На 3.0.11 следующий exception (стакан экспортируется):

Quote:
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`2 #=qhm9jo7HetgxyijS5fWjtCA==)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.Sum(IEnumerable`1 source)
at Ecng.Trading.Algo.PnL.BasePnLManager.#=q2do1oc9dZRDiwTtYLiYssg==(SynchronizedDictionary`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:

Tags:


Thanks:


Mikhail Sukhov

Avatar
Date: 3/4/2011
Reply


Alexander Go to
На 3.0.11 следующий exception (стакан экспортируется):


А если вручную посмотреть на сам стакан, пустой он или нет? ITrader.GetMarketDepth(Security).
Thanks:

Alexander

Avatar
Date: 3/4/2011
Reply


Mikhail Sukhov Go to
Alexander Go to
На 3.0.11 следующий exception (стакан экспортируется):


А если вручную посмотреть на сам стакан, пустой он или нет? ITrader.GetMarketDepth(Security).


Пустой:
Quote:
- md {Ecng.Trading.BusinessEntities.MarketDepth} Ecng.Trading.BusinessEntities.MarketDepth
+ base {Ecng.Trading.BusinessEntities.MarketDepth} Ecng.Common.Cloneable<Ecng.Trading.BusinessEntities.MarketDepth> {Ecng.Trading.BusinessEntities.MarketDepth}
Asks {Ecng.Trading.BusinessEntities.Quote[0]} Ecng.Trading.BusinessEntities.Quote[]
+ BestAsk {Оффер 0 0} Ecng.Trading.BusinessEntities.Quote
+ BestBid {Бид 0 0} Ecng.Trading.BusinessEntities.Quote
+ 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
+ LastChangeTime {01.01.0001 0:00:00} System.DateTime
MaxDepth 100 int
+ 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
+ Trader {Robots.Entities.OwnQuikTrader} Ecng.Trading.BusinessEntities.ITrader {Robots.Entities.OwnQuikTrader}
+ Non-Public members
+ Results View Expanding the Results View will enumerate the IEnumerable
Thanks:

Alexander

Avatar
Date: 3/5/2011
Reply


Ошибку нашёл, с моей стороны была.
Сори. :)
Thanks:


Attach files by dragging & dropping, , or pasting from the clipboard.

loading
clippy