Backtest Lab Docs

Per-Symbol Execution

In Backtest Lab, a single trading strategy can be applied to multiple symbols simultaneously. However, the strategy does not treat all these symbols as part of one shared decision-making process.

Instead, Backtest Lab runs a separate, independent copy of your strategy for each symbol.

This means you only need to design how your strategy should behave for one symbol. Backtest Lab automatically applies the same logic independently to every symbol selected for the backtest.

Independent State Machines

Each symbol has its own state machine, which follows the same strategy logic but maintains its own active state.

For example, suppose your strategy has three states: Wait for Entry, Enter Long, and Exit Long.

At a particular moment:

  • Tata Motors might be in the Enter Long state, having satisfied its entry condition.
  • Reliance might still be in Wait for Entry, waiting for a suitable opportunity.
  • Infosys might be in Exit Long, having already satisfied its exit condition.

Each symbol progresses through the strategy independently, according to its own market data and conditions.

This independence also applies to information maintained by the strategy, including:

  • Active state: Each symbol tracks its own current state and transitions.
  • Saved values: Information recorded for one symbol is independent of information recorded for other symbols.
  • Timing: Each symbol independently tracks how long it has remained in a particular state.
  • Trades: Entering or exiting a trade for one symbol does not directly change the state of another symbol.

Conceptual diagram showing three separate copies of the same trading state machine, labeled Tata Motors, Reliance, and Infosys. Each copy contains the same three states: Wait for Entry, Enter Long, and Exit Long, but a different state is highlighted as active for each symbol. All three state machines connect to one shared trading account at the bottom, illustrating that strategy execution is independent for each symbol while trading capital is shared. Use a clean, minimal diagram with clear labels and no interface screenshots.

One Shared Trading Account

Although each symbol follows its own independent strategy flow, they all use the same trading account.

This means that trades generated by different symbols draw from a common pool of available capital. An entry for one symbol can therefore affect how much capital remains available for entries in other symbols.

Learn more about how this works in Shared Account.