SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Sun Dec 16, 2018 9:10 pm

All times are UTC + 3 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Dec 14, 2017 11:51 am 
Offline

Joined: Wed Aug 08, 2007 6:32 pm
Posts: 221
Hi,

How if you build a custom portfolio statistic like the ones found in the sample statistics folder, how do you actually import that into the Portfolio object and use it in a strategy?

I have found it easy to build but not sure where to add it?

Regards


Top
 Profile  
 
PostPosted: Thu Dec 14, 2017 12:16 pm 
Offline

Joined: Wed May 05, 2010 9:49 pm
Posts: 443
Hello,
statistics can be added in scenario(like in SampleStatistics):
Code:
         StatisticsManager.Add(new Commission());
         StatisticsManager.Add(new AverageCommission());
         StatisticsManager.Add(new ConsecutiveProfit());
         StatisticsManager.Add(new MaximumConsecutiveProfit());
         StatisticsManager.Add(new NumberOfTrades());
         StatisticsManager.Add(new NumberOfWinningTrades());
         StatisticsManager.Add(new ProfitablePercent());


Next, these statistics items will be automatically used in all portfolios.


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