Backtest Lab Docs
Condition Priority
A state can have multiple outgoing conditions, each leading to a different state. While the strategy is in that state, its eligible outgoing conditions are evaluated during each execution cycle.
If more than one condition is satisfied during the same execution cycle, condition priority determines which transition takes place.
How Priority Works
Every outgoing condition has an assigned priority. When multiple conditions are satisfied simultaneously, only the transition with the highest priority is followed.
For example, suppose a strategy has two possible entry paths from its Wait for Entry state:
- Price Above Moving Average — Priority 1, leading to Enter Long.
- RSI Below 30 — Priority 2, leading to Enter Short.
If the price is above its moving average and the RSI is below 30 during the same evaluation cycle, both conditions are satisfied.
However, the strategy can follow only one transition. Since Price Above Moving Average has higher priority, the strategy moves to Enter Long.
The Enter Short transition is not followed, even though its condition was also satisfied.
Configuring Priority
When a state has multiple outgoing conditions, Backtest Lab automatically assigns them a default priority order.
You can change this order in the strategy builder to control which transition takes precedence when multiple conditions are satisfied simultaneously.
Condition priority matters only when multiple outgoing conditions are satisfied in the same cycle. If just one condition is satisfied, its transition is followed regardless of its assigned priority.