Skip to main content

BacktestBalancePoint

One point of a run's balance series: the account balance at 00:00 UTC of date, i.e. the starting balance plus the profit of every trade closed on an earlier day. Bound to internal/backtest.BacktestBalancePoint.

type BacktestBalancePoint {
date: Time!
balance: Float!
drawdownPct: Float!
}

Fields​

BacktestBalancePoint.date ● Time! non-null scalar​

BacktestBalancePoint.balance ● Float! non-null scalar​

BacktestBalancePoint.drawdownPct ● Float! non-null scalar​

Drop from the running peak of the series (the peak starts at the starting balance). Unsigned. Unit: fraction 0..1 (0.05 = 5%).

The series' deepest point is NOT the headline. It is a daily sample of the deepest PERCENT drop, so it never exceeds summary.maxRelativeDrawdown (intraday dips are hidden). That is the Backtests "Biggest drop" headline, with its dates; it is the same event as the series' lowest point. summary.maxDrawdown is the relative drop at the largest MONEY drawdown (max_drawdown_account), so the series can read above or below it. The lowest point sits at the midnight after the trough's trade, so do not label that day "the day of the loss"; use summary.maxRelativeDrawdownEnd for a marker.

Member Of​

BacktestSeries object