Backtest Lab Docs

State Entry Actions

In Backtest Lab, states can have actions associated with them. These actions determine what the strategy does when it reaches a particular state.

State actions are performed only when the strategy enters a state, not repeatedly while it remains in that state.

Once the entry actions have been performed, the strategy continues evaluating the state's outgoing conditions until a transition occurs.

Available State Actions

Backtest Lab supports the following state actions:

  • Trade Entry: Request a trade to open a new position, with configurable order parameters and risk management rules. Learn more about Trade Entry.
  • Trade Exit: Request the closure of existing trades according to the configured exit criteria. Learn more about Trade Exit.
  • Saved Value: Record a value, such as the current market price or an indicator value, for use in subsequent strategy decisions. Learn more about Saved Values.

A state can have multiple actions configured, allowing it to perform several operations when entered. It is also allowed for a state to have no actions configured.