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) -> NoneOne finished run in a test.
Parameters
| Name | Type |
|---|---|
| result | RunResult |
| signals | ComputeResult | None |
| program_name | str |
| symbol | str |
| timeframe | str |
| settings | Mapping[str, Any] |
| seed | int |
| data_name | str |
| bar_count | int |
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.