I ran the Spread_ sample in Openquant 2014 in backtest mode and returned below exceptions in the output.
Building MyStrategy
03/29/2019 17:02:53.060 Scenario::StartStrategy SpreadTrading in Backtest
InstrumentStrategy_::Subscribe BuySide (AAPL vs MSFT) AAPL vs MSFT
SubscriptionManager::Subscribe OpenQuant.SpreadSellSide AAPL vs MSFT
SellSideStrategy::Connect
SellSideStrategy::Connect
EventManager::OnException Exception occured in EventDispatcher - Group 01/01/0001 00:00:00.000, Id = 2, Name = Bars_AAPL - System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at SmartQuant.Controls.BarChart.GroupItem2..ctor(Group group)
at SmartQuant.Controls.BarChart.BarChart2.OnNewGroup(Group group)
at SmartQuant.GroupDispatcher.yJp1iIQtOQ(IGroupListener , Group )
at SmartQuant.GroupDispatcher.Qb6185hd48(Object , GroupEventAgrs )
at SmartQuant.EventDispatcher.Yur7JEc9oK(Event )
at SmartQuant.EventDispatcher.OnEvent(Event e)
at SmartQuant.EventManager.OnEvent(Event e)
EventManager::OnException Exception occured in EventDispatcher - Group 01/01/0001 00:00:00.000, Id = 3, Name = Fills_AAPL - System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at SmartQuant.Controls.BarChart.GroupItem2..ctor(Group group)
at SmartQuant.Controls.BarChart.BarChart2.OnNewGroup(Group group)
at SmartQuant.GroupDispatcher.yJp1iIQtOQ(IGroupListener , Group )
at SmartQuant.GroupDispatcher.Qb6185hd48(Object , GroupEventAgrs )
at SmartQuant.EventDispatcher.Yur7JEc9oK(Event )
at SmartQuant.EventDispatcher.OnEvent(Event e)
at SmartQuant.EventManager.OnEvent(Event e)
EventManager::OnException Exception occured in EventDispatcher - Group 01/01/0001 00:00:00.000, Id = 4, Name = Bars_MSFT - System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at SmartQuant.Controls.BarChart.GroupItem2..ctor(Group group)
at SmartQuant.Controls.BarChart.BarChart2.OnNewGroup(Group group)
at SmartQuant.GroupDispatcher.yJp1iIQtOQ(IGroupListener , Group )
at SmartQuant.GroupDispatcher.Qb6185hd48(Object , GroupEventAgrs )
at SmartQuant.EventDispatcher.Yur7JEc9oK(Event )
at SmartQuant.EventDispatcher.OnEvent(Event e)
at SmartQuant.EventManager.OnEvent(Event e)
EventManager::OnException Exception occured in EventDispatcher - Group 01/01/0001 00:00:00.000, Id = 5, Name = Fills_MSFT - System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at SmartQuant.Controls.BarChart.GroupItem2..ctor(Group group)
at SmartQuant.Controls.BarChart.BarChart2.OnNewGroup(Group group)
at SmartQuant.GroupDispatcher.yJp1iIQtOQ(IGroupListener , Group )
at SmartQuant.GroupDispatcher.Qb6185hd48(Object , GroupEventAgrs )
at SmartQuant.EventDispatcher.Yur7JEc9oK(Event )
at SmartQuant.EventDispatcher.OnEvent(Event e)
at SmartQuant.EventManager.OnEvent(Event e)
SellSideInstrumentStrategy_::Subscribe SellSide (AAPL vs MSFT) AAPL
SubscriptionManager::Subscribe provider id = 1 DataSimulator (Default data simulator)
http://www.smartquant.com AAPL
03/29/2019 17:02:53.173 DataSimulator::Subscribe AAPL
SellSideInstrumentStrategy_::Subscribe SellSide (AAPL vs MSFT) MSFT
SubscriptionManager::Subscribe provider id = 1 DataSimulator (Default data simulator)
http://www.smartquant.com MSFT
03/29/2019 17:02:53.222 DataSimulator::Subscribe MSFT
03/29/2019 17:02:53.242 Data simulator thread started
03/29/2019 17:03:00.439 Data simulator thread stopped
03/29/2019 17:03:00.442 Data run done[OpenQuant], count = 9398057 ms = 7163 event/sec = 1312000
03/29/2019 17:03:00.447 Scenario::StartStrategy Done
Objective: 99945.6000000001
After the backtest, I called the Chart(gapless), and then below exception poped up. May I know what goes wrong here? thanks.