SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Mon Aug 19, 2019 9:41 am

All times are UTC + 3 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed May 29, 2013 6:25 pm 
Offline

Joined: Sun Jun 01, 2008 1:18 pm
Posts: 32
Location: Paris France
:|
Working with sim.openecry.com. Open E Cry demo server using OQ 2.9.13.
Best during connection so far ~24hours. Usually less than an hour.
Typical disconnection sequence :

Disconnected. (20130529 16:56:00.717) (from public override void OnDisconnected(String provider))
E C20130529 16:56:02.199 D20130529 16:56:02.199 cd=-1 id=-1 No contract found for symbol 6EM3 Open E Cry (20130529 16:56:02.199)
(public override void OnError(ProviderError er))
E C20130529 16:56:02.246 D20130529 16:56:02.246 cd=-1 id=-1 No contract found for symbol 6EM3 Open E Cry (20130529 16:56:02.246)
(public override void OnError(ProviderError er))
Reconnected. (20130529 16:56:02.292) (from public override void OnConnected(String provider))

After the public override void OnConnected(String provider) trigger, nothing...nada. No more reconnects, disconnects, provider errors, nothing.
If, however, I stop running my strategy, without leaving OQ, without rebooting, simply restarting the strategy, the reconnection is effective and I start receiving Trades, Quotes, etc. once more.

So two questions.
1. How to reconnect like a strategy restart, without stopping the strategy, that is from an event triggered strategy line of code?
2. Any way to have OQ emit an audible alarm sound from its Console?
:|

_________________
Thx!!


Top
 Profile  
 
PostPosted: Thu May 30, 2013 4:24 pm 
Offline
Site Admin

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

OEC has AutoReconnect property, just set it to True.
Or, you don't need to restart the strategy if you want to connect plugin - why do you not connect it manually?

_________________
SmartQuant Development Team


Top
 Profile  
 
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 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