Skip to content

API Reference


API Reference / Backtester

Class: Backtester

Defined in: src/backtest/runner.ts:33

Bar-by-bar strategy backtester. Decides on a closed bar, fills at the next bar's open, checks stops/targets intrabar, and marks equity at each bar's close. See src/backtest/types.ts for the full contract.

Constructors

Constructor

new Backtester(): Backtester

Returns

Backtester

Methods

run()

run(config): Promise<BacktestResult>

Defined in: src/backtest/runner.ts:34

Parameters

config

BacktestConfig

Returns

Promise<BacktestResult>

Community project — not affiliated with Dhan. MIT License.