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. :)
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. :)
Rename
Here is the code:
Slope of Equity Curve = LRSlope.Value(EquityCurve.Count - 1, EquityCurve, EquityCurve.Count)
Slope of Equity Curve = LRSlope.Value(EquityCurve.Count - 1, EquityCurve, EquityCurve.Count)
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
I'm also assuming 252 trading days per year, so we have
CODE:If you disagree with this annualize assessment, let me know.
//convert dollars-per-bar to (per-year * 100%) relative to StartingCapital bt.Metrics.EquitySlopePct = bt.Metrics.EquitySlope * 25200.0 / bt.StartingCapital;
Your Response
Post
Edit Post
Login is required