ExecutionTestHook#

API documentation for tradeexecutor.cli.loop.ExecutionTestHook Python class in Trading Strategy framework.

class ExecutionTestHook[source]#

Bases: object

A test helper to allow to hook into backtest execution to inject events.

Mostly used to simulate deposits/redemptions.

__init__()#

Methods

__init__()

on_before_cycle(cycle, cycle_st, state, ...)

Called before entering the strategy tick.

on_before_cycle(cycle, cycle_st, state, sync_model)[source]#

Called before entering the strategy tick.

Parameters: