SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Wed Nov 21, 2018 3:24 am

All times are UTC + 3 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon May 20, 2013 4:29 am 
Offline

Joined: Sun Jun 01, 2008 1:18 pm
Posts: 32
Location: Paris France
:)
Starting a strategy with OpenEcry OEC.
Using an Order=o coding system.
o=specific order; send order;if(!o.IsFilled)o.Cancel();
if necessary then chg o.
Got an unexpected o.Rejected.
This provoked following critical error :
System.InvalidOperationException: La collection a été modifiée ; l'opération d'énumération peut ne pas s'exécuter.
à System.Collections.Hashtable.HashtableEnumerator.MoveNext()
à SmartQuant.FIX.FIXOleDbServer.SaveFIXGroup(OleDbConnection connection, FIXGroup group, String table, Int32 outerID, Int32 innerID)
à SmartQuant.FIX.FIXOleDbServer.SaveFIXGroup(OleDbConnection connection, FIXGroup group, String table, Int32 outerID)
à SmartQuant.Execution.OrderOleDbServer.AddReport(IOrder order, FIXExecutionReport report)
à SmartQuant.Execution.OrderManager.4YnBmPOOl(Object , ExecutionReportEventArgs )
à SmartQuant.Providers.ProviderManager.Be4mvj05v(Object , ExecutionReportEventArgs )
à SmartQuant.OEC.OpenECry.a5CK9TgZr(ExecutionReport )
à DVAEQT00ZL6aMkEeB4.gvFB2QQrpVl8tvqbou.mDGu6NxpE(Object )
à System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
à System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
à System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
After this, OQ(2.9.13) lost Order Manager.
Order hash table, I think.
Is there a way to quickly reset the Order Manager without reinstalling OQ?
:?:

_________________
Thx!!


Top
 Profile  
 
PostPosted: Mon May 20, 2013 4:23 pm 
Offline
Site Admin

Joined: Thu Jul 17, 2003 10:39 am
Posts: 1478
Hi,

Did you simply try to restart OQ?

Anyway, OQ 2.9.13 is very old - it was released December, 2010
Since then, there was many bugfixes and improvements in the code.
Also, OEC has updated its API a couple of times.

_________________
SmartQuant Development Team


Top
 Profile  
 
PostPosted: Mon May 20, 2013 9:04 pm 
Offline

Joined: Sun Jun 01, 2008 1:18 pm
Posts: 32
Location: Paris France
:D
2.9.13 is last 32 bit version. I like it very much, though I'm considering 3.0.
It connects to OEC. How well, still exploring, news later.
To reset order manager hash table use the follwing good old DOS move :
1. copy %HOMEDRIVE%%HOMEPATH%\AppData\Roaming\SmartQuant Ltd\OpenQuant 2\Framework\data
to some backup directory before you start any weird stuff (or just as a backup point).
2. copy your backup back to %HOMEDRIVE%%HOMEPATH%\AppData\Roaming\SmartQuant Ltd\OpenQuant 2\Framework\data
if whatever went too weird.
A word to the cautious : this will also change your instruments, portfolios? maybe some other stuff back. OQ team should try to be precise about this because it's an excellent move against I guess any .mdb database corruption which is absolutely fatal to OQ (what about 3.0 in this respect?). It does not change layout, build or strategies back. Once again OQ team should probably statuate on just what the
%HOMEDRIVE%%HOMEPATH%\AppData\Roaming\SmartQuant Ltd\OpenQuant 2\Framework\data\*.mdb actually maintains.
To only fix Order Manager, I imagine rolling back execution.mdb is probably sufficient. Once again, any comment from OQ team on which NTFS files do what would be very welcome.
This method is also the FASTEST way to import an instrument (if you've already got it in another instrument.mdb somewhere. Way faster than export/import to/from csv using the GUI.
:wink:

_________________
Thx!!


Top
 Profile  
 
PostPosted: Tue May 21, 2013 9:58 am 
Offline
Site Admin

Joined: Thu Jul 17, 2003 10:39 am
Posts: 1478
Hi,

In order to reset (delete all stored orders) OrderManager you should replace execution.mdb only.

_________________
SmartQuant Development Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: Baidu [Spider] and 1 guest


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:  
cron
Powered by phpBB® Forum Software © phpBB Group