Rules

Updated on 2025-11-07

A Betting Toolkit Strategy consists of one or more rules that operate independently.

A Rule is made up of two fundamental parts: Conditions and Actions.



The execution cycle of a rule can be summarized as follows.

The rule is first evaluated for activeness based on its properties, which determine its active/inactive status.



Based on the evaluation of the conditions, the operational part of the rule, consisting of Actions, is activated.

Actions are divided into two groups: those to be executed when the conditions are met and those to be executed when the conditions are not met.

Rule Name

A rule has a name that can be defined either by accessing the "Edit Rule" command or by using the "Rename" command by right-clicking on the rule node, or by selecting the rule node and pressing the F2 key on the keyboard.


Rule Status (Active/Inactive)

Each rule can be activated or deactivated by selecting the corresponding check mark in the strategy tree.

By deactivating a rule, you can temporarily prevent it from running and then reactivate it later without having to delete and recreate it.

Rule Properties


In addition to activating or deactivating the rule, you can specify additional parameters that determine the time frame within which it is effective.

You can also limit the number of rule executions and specify a waiting period between executions.

You can access the rule parameters by double-clicking the rule node, right-clicking and selecting "Edit Rule" from the drop-down menu, or clicking the "Edit Rule" button on the Strategy Manager toolbar.

Start/Stop Time Conditions

A rule may or may not have execution time conditions that define the time window during which it is active:

Start Condition: Specifies the exact time the rule begins to execute.

If no start condition is specified, the rule will run immediately as soon as the strategy is started.

This time can be:

  • a fixed time
  • a time specified relative to the start of the event, before or after it.
  • a time specified relative to when the market becomes "in play"
  • a time specified relative to when the market reopens after a suspension.
  • a time specified relative to the first execution of a rule in the strategy.
  • a time specified relative to when the strategy was started.

Stop Condition: Specifies the time the rule stops executing.

This time can be specified in various ways as the start time.

To evaluate start/stop times for the "Fixed Time" selection, the time on the execution PC is used. Make sure this is set correctly.

Number of Executions

Rule execution is also controlled by two additional parameters:

The number of rule executions, at which point the rule stops. The number of executions can also be set to "unlimited," meaning the rule will continue to execute until the strategy is stopped or the start/stop conditions allow it.

Wait after each execution: You can specify a minimum wait time between one execution and the next.

When a rule is evaluated as active and the conditions are met, it is considered "executed" and the corresponding counter is incremented. Optionally, you can choose to consider a rule executed even if the conditions failed, incrementing the counter in this case as well. To do this, select the "Include rules with unmet conditions in the count" option on the "Number of Executions" page of the rule properties. The post-execution delay will also follow this setting. If you choose to also consider executions with negative conditions, the timer will be reset every time the rule is processed, while by default, the timer is reset only if conditions are met.

Color

You can activate a specific color to identify the rule in the strategy tree. This is a purely aesthetic property that can be used to more easily identify rules within complex strategies. To activate the radio button, click the checkbox and then click the button itself to select the desired color. To deactivate the color, uncheck the checkbox.

Still need help?

Submit a ticket and we’ll get back to you as soon as possible.