TestRun

forge.testingclassSince Forge API 1
Signaturepython
forge.testing.TestRun(result: RunResult,signals: ComputeResult | None,program_name: str,symbol: str,timeframe: str,settings: Mapping[str, Any],seed: int,data_name: str,bar_count: int) -> None

One finished run in a test.

Parameters

NameType
resultRunResult
signalsComputeResult | None
program_namestr
symbolstr
timeframestr
settingsMapping[str, Any]
seedint
data_namestr
bar_countint

trades, fills, orders and equity are the engine's tables, and stats its statistics. entries and exits list the fills that opened and closed positions, by bar. signal reads what the strategy's compute() returned, one value for each bar.