SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Sun Nov 28, 2021 8:49 am

All times are UTC + 3 hours

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Aug 21, 2018 8:02 am 

Joined: Tue May 15, 2018 1:33 am
Posts: 12
The steps to make the exception happened is as the below:
1.The running strategy sent a limit buy order
2.Stop the strategy and close the OpenQuant 2014
3.Reboot the OpenQuant2014 and start the stragegy
4. Move to the view of order manager and righ click the pending limit buy order and select cancel
5. The provider will execute the cancel command and EmitExecutionReport to report the order status using EmitExecutionReport
6. And then the exception happened:

EventManager::OnException Exception occured in EventHandler - 08/21/2018 12:42:49.036 600113 ExecCancelReject Buy 0 - System.NullReferenceException: Object reference not set to an instance of an object.
at SmartQuant.OrderManager.QDsUnwB6Ic(ExecutionReport )
at SmartQuant.EventManager.gy0ybEfwg0(Event )
at SmartQuant.EventManager.OnEvent(Event e)

But if you don't reboot and restart the strategy, then everything is OK. Why?

PostPosted: Mon Sep 03, 2018 11:30 am 

Joined: Wed May 05, 2010 9:49 pm
Posts: 583
looks like you save executions using persistence.
In this case after rebooting of OQ2014 and loading of executions you have proper orders in OrderManager.
But it not enough for managing in real providers, because most of providers have additional specific information for orders or for working in general. After rebooting of OQ2014 this information cleaned.

I recommend that you restart OQ2014 only when all orders are done to prevent cases with management them.

ps I described only one of possible reasons of error.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 3 hours

Who is online

Users browsing this forum: No registered users and 4 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group