SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Wed Oct 28, 2020 11:16 am

All times are UTC + 3 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Parameters in Scenario
PostPosted: Tue Mar 19, 2013 1:53 pm 
Offline

Joined: Wed Aug 08, 2007 6:32 pm
Posts: 236
Is it possible to create a parameter that can be adjusted from Solution Properties box. Or alternatively adjusted in any other properties window if this is not possible? If so how do create it?


Top
 Profile  
 
PostPosted: Tue Mar 19, 2013 2:08 pm 
Offline

Joined: Wed Oct 08, 2003 1:06 pm
Posts: 833
Hi,

You should just mark your parameter with "Parameter" attribute in the strategy code as shown below:
Code:
[Parameter]
   public int Duration = 2;


After that you will be able to modify this parameter in the project node from the Solution Explorer properties.

Or maybe I missed something in your question.

Regards,
Sergey.


Top
 Profile  
 
PostPosted: Tue Mar 19, 2013 3:24 pm 
Offline

Joined: Wed Aug 08, 2007 6:32 pm
Posts: 236
Hi Baraz,
I think you may have misunderstood what i am asking, I want to be able to adjust a scenario parameter not a project parameter.


Top
 Profile  
 
PostPosted: Tue Mar 19, 2013 5:25 pm 
Offline

Joined: Wed Oct 08, 2003 1:06 pm
Posts: 833
Hi,

It is not possible in the current version to define scenario parameters. As a workaround you can create a fake strategy with parameters and read them in the scenario class.

Regards,
Sergey.


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