A rule is one step of a strategy: when it may run, what must be true, and what FairBot then does. You set it up in the Edit Automation Rule window, which has three tabs: General, Action and Conditions.
Open the rule editor
In the Strategy Editor:
- Click Add Rule... (or press Ins) to create a rule, or
- select a rule and click Edit Rule..., or double-click the rule.
Click OK to keep your changes to the rule, then Save in the Strategy Editor to save the strategy.
General tab: name and timing
| Setting | What it does |
|---|---|
| Enabled | Turns the rule on or off. A rule that's off is skipped. |
| Rule Name | A name that says what the rule does, such as Back the favourite at the off. Other rules refer to it by this name. |
| Start At | When ticked, the rule can't run before this time. |
| Stop At | When ticked, the rule can't run after this time. |
| Execution Count | How many times the rule may run in total. |
| Wait Time after execution | How many seconds FairBot waits after the rule has run before it may run again. |
A new rule starts out enabled, with Start At set to the moment you created it, an Execution Count of 1 and a Wait Time after execution of 10 seconds.
Warning
Tick at least one of Start At and Stop At. A rule with both turned off never runs.
Start At and Stop At
For each of the two times, choose how you want to give it:
- Fixed Time: a date and time (At ... on ...). Now fills in the current time.
- Relative to Event Start Time: an amount of time Before or After the scheduled Event Start, such as 5 minutes before. This is the one you'll use most, because the strategy then works on any market, whatever its start time.
- Relative to In-play Time: an amount of time after Event turns In-play. FairBot uses the time the event actually went in-play when Betfair provides it, and the scheduled start time otherwise.
- Daily: a time of day (At ...), every day.
Examples:
- To bet only in the last five minutes before the off: Start At 5 min(s) before Event Start, Stop At 0 before Event Start.
- To act only in the first ten minutes of a football match: Start At 0 after Event turns In-play, Stop At 10 min(s) after Event turns In-play.
Note
A Start At relative to the in-play time is never reached while the market isn't in-play. A Stop At relative to the in-play time doesn't stop the rule before the market goes in-play.
Execution Count and Wait Time
The Execution Count is your main safety net. With 1, the rule runs once and then never again on that market, even if its conditions stay true. Raise it only for rules that really need to repeat, and use the Wait Time after execution to space the repeats out: with an Execution Count of 5 and a wait of 60 seconds, the rule runs at most five times, at least a minute apart.
The count is kept per market: assigning the strategy to another market starts that market's count from 0. The Reset Rule's Number of Executions action sets a rule's count back to 0, and the Rule Number of Executions condition lets one rule check how many times another has run.
Action tab: what the rule does
Choose the action from the Action list. The Action Parameters below change with the action: a selection, a stake, odds and so on. Every rule has exactly one action. To do two things, use two rules.
See Actions for every action and its settings.
Conditions tab: when the rule fires
The Condition List shows the rule's conditions, each with its Name and a Description of how it's set.
- Click Add Condition and choose a condition.
- Set it up under Condition Parameters.
- Repeat for each condition you need.
Use Remove to delete the selected condition, and Move Up and Move Down to change the order.
How conditions combine:
- All conditions must be true for the action to run. There's no "or": to fire when either of two things happens, make two rules with the same action.
- FairBot checks them from top to bottom and stops at the first one that's false. Put the quick, general checks (such as Market In-play) at the top.
- A rule with no conditions runs as soon as its timing allows.
See Conditions for every condition and its settings.
Choose a selection
Many actions and conditions work on one selection (one runner, team or outcome). You choose it in the Choose Selection box. Pick how FairBot should find the selection, then fill in the details.
| Option | Which selection it means |
|---|---|
| By Name | The selection you pick from the list of the market that's open. Use it for a strategy made for one particular market. |
| At Runtime | You pick the selection after you've assigned the strategy, on the market's Automation tab. Until you do, the rule's action doesn't run. |
| By Betfair Row | The selection in the given Row Number, as Betfair lists the market. With Sort set to Descending, rows are counted from the bottom. |
| By Last Bet | The selection of your most recent bet in the market, optionally only a Back or Lay bet (Bet Type) that is Matched or Unmatched (Bet Status). Handy for following up a bet another rule placed. |
| By Position (Back Odds) | The selection at the given Position when the selections are sorted by their best back odds. Position 1, Ascending, is the favourite. |
| By Position (Lay Odds) | The same, sorted by the best lay odds. |
| By Position (LTP) | The same, sorted by the last traded price. |
| By Position (Volume) | The same, sorted by the money matched on each selection. |
| By Position (Near SP), (Far SP), (Actual SP) | The same, sorted by the Betfair Starting Price estimates or the actual SP. |
| By Stall Draw | The horse with the given stall (draw) number. |
| By Saddlecloth No. | The horse with the given saddlecloth number. |
| All | Every selection. Use it only together with Apply to All (below). |
| From Variable | The selection stored in a user variable of the Selection type, by name. |
Choosing by position or by row makes a strategy work on any market of the same kind, which is what you want for strategies you run often or through Autopilot.
Apply to All: one rule for every selection
Tick Apply to All when you want the same rule to run for every selection in the market, for example lay any runner whose odds drop below 3.0. Then set Choose Selection to All in the action and in the conditions.
When you assign the strategy to a market, FairBot turns the rule into one copy per selection, each working on its own selection, with its own execution count. You keep one rule to edit instead of a dozen nearly identical ones.
Warning
Use Apply to All with selection actions, such as Place a Bet. With a market action, such as Cancel Bets or Green Up All Selections, every copy of the rule would run it again, once per selection. FairBot warns you if you try to save a rule like that.



