- ago
Could someone tell me what the units are for the "Slope of the Equity Curve" ScoreCard metric?

Or to put the question another way, how do I annualize the "Slope of the Equity Curve" number in my custom ScoreCard?

My intention is to compare this annualized number to other annualized numbers on the Basic ScoreCard such as APR. What would really be cool is if the "Slope of the Equity Curve" metric already came annualized, but maybe that would be too easy. :)
0
258
Solved
2 Replies

Reply

Bookmark

Sort
Glitch8
 ( 10.58% )
- ago
#1
Here is the code:

Slope of Equity Curve = LRSlope.Value(EquityCurve.Count - 1, EquityCurve, EquityCurve.Count)
1
Best Answer
- ago
#2
So this Equity Curve slope should be in dollars/bar, and I'm assuming Daily bars.

I'm also assuming 252 trading days per year, so we have
CODE:
//convert dollars-per-bar to (per-year * 100%) relative to StartingCapital bt.Metrics.EquitySlopePct = bt.Metrics.EquitySlope * 25200.0 / bt.StartingCapital;
If you disagree with this annualize assessment, let me know.
0

Reply

Bookmark

Sort