SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Sat Dec 15, 2018 11:00 am

All times are UTC + 3 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed May 09, 2018 11:46 am 
Offline

Joined: Sat Jun 25, 2016 5:03 pm
Posts: 3
Openquant 2014 added PythonNet support in version 1.0.6692.
In can run BollingerBands_PYthonNet Demo normally in OpenQuant  ide, but if you run it with other IDE such as visual studio or vs code, it will report:

PyScenario.py", line 31, in __init__
     Self.framework = SmartQuant.Framework.Current
TypeError


Top
 Profile  
 
PostPosted: Tue May 15, 2018 9:42 am 
Offline

Joined: Wed May 05, 2010 9:49 pm
Posts: 443
Hello sharpwood,
pythonnet demo solution was updated in new release(1.0.6708 from 14 may).
Try it again after update, it should works everywhere.


Top
 Profile  
 
PostPosted: Tue May 15, 2018 1:23 pm 
Offline

Joined: Sat Jun 25, 2016 5:03 pm
Posts: 3
skuvv wrote:
Hello sharpwood,
pythonnet demo solution was updated in new release(1.0.6708 from 14 may).
Try it again after update, it should works everywhere.


Great,It wroks.
But it is very slow when I run a strategy on 1 minute bar


Top
 Profile  
 
PostPosted: Tue May 15, 2018 2:52 pm 
Offline

Joined: Wed May 05, 2010 9:49 pm
Posts: 443
sharpwood wrote:
skuvv wrote:
Hello sharpwood,
pythonnet demo solution was updated in new release(1.0.6708 from 14 may).
Try it again after update, it should works everywhere.


Great,It wroks.
But it is very slow when I run a strategy on 1 minute bar

My results right out of the box:
Code:
05/15/2018 14:46:21.583 Data simulator thread stopped
05/15/2018 14:46:21.585 Data run done, count = 4694750 ms = 2329 event/sec = 2015000
05/15/2018 14:46:22.247 PythonEngine::Finished


With enabled events for Bid/Ask/Trade:
Code:
05/15/2018 14:49:05.302 Data simulator thread stopped
05/15/2018 14:49:05.305 Data run done, count = 4694750 ms = 27262 event/sec = 172000
05/15/2018 14:49:06.033 PythonEngine::Finished


Thus, you can see that more events from C # to python mean a decrease in performance...
Personally I think that python.net should be used for things which cannot be realized in C# and not for replacing whole C#.


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: No registered users and 2 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:  
cron
Powered by phpBB® Forum Software © phpBB Group