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


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

Цитата:
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:

Теги:


Спасибо:


Mikhail Sukhov

Фотография
Дата: 04.03.2011
Ответить


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


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

Alexander

Фотография
Дата: 04.03.2011
Ответить


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


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


Пустой:
Цитата:
- 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
Спасибо:

Alexander

Фотография
Дата: 05.03.2011
Ответить


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


Добавить файлы через драг-н-дроп, , или вставить из буфера обмена.

loading
clippy