Skip to content

EquitySample


dataclass backtide.backtest.EquitySample

A single equity-curve sample taken once per simulated bar.

Attributes

timestamp : int

UTC timestamp in seconds since the Unix epoch.

equity : float
Total portfolio value (cash + positions) in the base currency.

cash : dict[str | Currency, float]
Cash balance per currency at this bar.

drawdown : float
Running drawdown (negative or zero) versus the all-time high equity, expressed as a fraction (e.g., -0.12 = -12%).


See Also

ExperimentResult

The complete result of a single experiment.

plot_pnl

Create a PnL-over-time chart for one or more strategy runs.

RunResult

Result of running a single strategy as part of an experiment.