Calculating geometric mean of return in ScoreCard
Author: akuzn
Creation Date: 1/26/2014 6:41 AM
profile picture

akuzn

#1
Good day!

Could you help me with geometrical mean of trades returns computing in ScoreCards?
Just cant get how to compute ratio for each trade (equitie + returns) / equity;
where equity - before trade p/l and returns is net profit/loss.
So what is needed - current equity.
Is there direct variable or method returning equity value?
Or there is only one way compute equitie from beginning as summation of p/l of each trade?
profile picture

Eugene

#2
Wealth-Lab passes an instance of SystemPerformance class to your Scorecard > PopulateScorecard i.e. (SystemPerformance performance). Consequently, the current equity can be obtained as "performance.Results.EquityCurve".

Here's the online manual of the API (that is also used when developing performance visualizers):

SystemPerformance
SystemResults

As always, it's easier to start when a code example of a functioning Scorecard is available. Here's one, inside the MS123 Visualizers demo solution:

Home - MS123 Visualizers
profile picture

akuzn

#3
Thanks, i already use custom scorecards
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).