I'm trying to calculate the running/ongoing equity curve for a strategy. I see a lot of posts asking about this but I see no solution/formula. So below I'm sharing the calculation I've come up with.
Does this seem correct?
Equity = (AccountSize + Performance.AllTrades.TradesPerformance.Points.Cum Profit + (Math.Round(Position.GetProfitLoss(Close[0], PerformanceUnit.Points), 4, MidpointRounding.ToEven) * Position.Quantity))
I'm using this formula within OnBarUpdate to get a continuous equity curve.
I'm not sure whether to use Points or Currency. For equities are both the same?
Regards.
Comment