Conditions tell a rule when to act. A rule's action runs only when all its conditions are true. You add them on the Conditions tab of the rule editor with Add Condition.
How most conditions work
Most conditions compare a value with a number you type, using one of these comparisons: less than, less than or equal to, equal to, greater than or equal to or greater than. The Condition Details box reads like a sentence, for example The market's Volume is greater than or equal to 50000.
Conditions whose name starts with Selection work on one selection, which you pick in the Choose Selection box. See Choose a selection.
See the live values
Tick Show Condition Values on the market's Automation tab to see the current value of each condition next to it while the strategy runs. It's the quickest way to find out why a rule isn't firing. See Running a strategy.
Market conditions
These look at the market as a whole.
| Condition | What it checks | Settings |
|---|---|---|
| Market In-play | Whether the market is in-play. | The market is In-play or The market is NOT In-play. |
| Market State | The market's status. | ACTIVE, SUSPENDED or CLOSED. |
| Market Unsuspended Time | How long ago the market was last unsuspended. Use it to wait a few seconds after a suspension (a goal, say) before betting. | A comparison and a time, with quick choices from 5 seconds to 30 minutes. |
| Market Volume | The total money matched in the market. Use it to avoid thin markets. | A comparison and an amount. |
| Market Book Percentage | The book percentage of the market, or of some of its selections. Close to 100% means the prices are fair. | A comparison and a percentage. Price: back, lay, LTP or an SP price. Choose Selections: All, or Indexes such as 1-3, 5, e2 (e2 means the second from the end), counted after the Selection Sorting you choose. |
| Market Number of Selections | How many selections the market has, such as the number of runners. | A comparison and a number. |
| Market Number of Places | How many places are paid. Only meaningful in place markets. | A comparison and a number. |
| Market Number of Non-Runners | How many runners have been withdrawn. Horse and greyhound racing. | A comparison and a number. |
| Market Type | The type of market the strategy is running on, such as Win or Match Odds. Use it to stop a strategy acting on the wrong kind of market. | A market type from the list. |
| Market Name Text | Whether the market's name contains or doesn't contain any of the lines you type. | One piece of text per line, and Case sensitive. |
| Competition Name Text | The same, for the name of the competition the market belongs to, such as English Premier League. | One piece of text per line, and Case sensitive. |
| Market Race Distance | The race distance. Horse and greyhound racing win markets. | A comparison and a distance in meter(s), or in mile(s) and furlong(s). |
| Market Race Status | The live race status Betfair reports, such as PARADING, GOINGDOWN, ATTHEPOST or OFF. Use it to act at a precise moment around the off. | A status from the list. |
| Market Race Timer | How far the race has got, estimated from its distance. | Elapsed Time or Remaining Time in seconds, or Elapsed % or Remaining %, with a comparison. |
| Market Profit/Loss | Your profit or loss in the market. Use it to stop trading once you're up or down by a set amount. | A comparison and an amount. Profit/Loss Type: Min (your worst outcome) or Max (your best). Net P/L takes Betfair's commission into account. |
| Market Green Up All P/L | The profit or loss you'd lock in if you greened up all selections now. | A comparison and an amount. Greening Up Price: Use available price or Use the most profitable price. |
| Market Bet Count | How many of your bets there are in the market. | A comparison and a number. Bet Kinds: Unmatched, Matched, Pending Offset, Pending Stop Loss, Pending Single Stop Loss, Unmatched BSP; Count Fully Matched Only. Bet Types: Back, Lay. Bet Odds: Any Odds, Single Odds or an Odds Range. |
| Market Bets In Process | Whether any of your bets in the market are being sent to Betfair right now. Add No Bets In Process to a rule so it doesn't place a bet while an earlier one is still on its way. | Bets In Process or No Bets In Process. |
| Market Expression | The result of a calculation over the data of any selections in the market. | An expression, a comparison and a value. Test shows the current result. |
| Market Variable Defined | Whether a user variable exists for this market. Use it to run a rule only once another rule has set the variable. | The variable's name, and The Variable is Defined or The Variable is NOT Defined. |
Football conditions
These use the live score of in-play football matches, when FairBot can get it.
| Condition | What it checks | Settings |
|---|---|---|
| Market Football Fixed Score | Whether the score is exactly what you choose, such as 1-0. | A score for each team, or Any Score. |
| Market Football Number of Goals | The total number of goals scored. | A comparison and a number. |
| Market Football Relative Score | The home team's score compared with the away team's, such as home is ahead by 2 goals or more. | A comparison, and plus or minus a number of goal(s). |
| Market Football Match Period | Which part of the match is being played. | First Half, Half Time, Second Half (one or more). |
| Market Football Second Half Time | How many minutes have been played in the second half. | A comparison and a number of minute(s). |
Selection conditions
These look at one selection, which you pick in the Choose Selection box.
| Condition | What it checks | Settings |
|---|---|---|
| Selection Fixed Odds | A price of the selection, compared with odds you type. The condition you'll use most. | Best Back Odds, Best Lay Odds, LTP, Min Traded Odds, Max Traded Odds, Most Traded Odds, Near SP, Far SP, Actual SP, or the odds of your unmatched or matched back or lay bet; a comparison and the odds. |
| Selection Relative Odds | A price of one selection (Selection A) compared with a price of another (Selection B), give or take an offset. | Two selections, a price for each, a comparison, and plus or minus an offset in tick(s), odds or %. |
| Selection Historic Relative Odds | A price now compared with the price some time ago, of the same or another selection. Use it to spot a price that's moving fast. | As for Selection Relative Odds, plus how long ago for each price (or Now). |
| Selection Volume | The money matched on the selection. | A comparison and an amount. Get Volume For: All Odds, or only at certain odds. |
| Selection Relative Volume | The volume of one selection compared with another's. | Two selections, a comparison, and plus or minus an offset in unit(s) or %. |
| Selection Volume Percentage | The selection's share of the money matched in the market. | A comparison and a percentage. |
| Selection Traded Amount | The money matched on the selection between the last two refreshes. Use it to catch sudden spikes in volume. | A comparison and an amount. Last Traded Amount (LTA) keeps the last amount that wasn't zero; Current Traded Amount (CTA) drops to 0 when nothing was traded since the previous refresh. |
| Selection Weight of Money | The Weight of Money: how the money waiting to back compares with the money waiting to lay. | A comparison and a percentage. |
| Selection Back/Lay Stake Difference | D: the total of your matched back stakes on the selection minus the total of your matched lay stakes. | A comparison and an amount. |
| Selection Profit/Loss | Your profit or loss if the selection WINS, IS PLACED or LOSES. | A comparison and an amount. Market Type: Win Only, Place or Each-Way. |
| Selection Green Up P/L | The profit or loss you'd lock in on the selection if you greened up now. Use it for take-profit and stop-loss rules. | A comparison and an amount: a Fixed Amount, or a percentage of your back profit or stake, or of your lay stake or liability. Greening Up Price: Available Price, The Most Profitable Price or a Custom Price. |
| Selection Trading Position State | Whether your position on the selection is Backed, Layed or Equalized (greened up). | One or more states, and an Equalization Criteria Threshold: how far apart your win and lose results may be and still count as equalized. |
| Selection Bet Count | How many of your bets are on the selection. | As for Market Bet Count. |
| Selection Bets In Process | Whether any of your bets on the selection are being sent to Betfair right now. | Bets In Process or No Bets In Process. |
| Selection Trade Count | How many trades you've made on the selection. | A comparison and a number. Trade Type: Back - Lay or Lay - Back. Initial Bet Odds: any, single odds or a range. |
| Selection Name Text | Whether the selection's name contains or doesn't contain any of the lines you type, such as The Draw. | One piece of text per line, and Case sensitive. |
| Selection Expression | The result of a calculation on the selection's data. | An expression, a comparison and a value. Test shows the current result. |
Tennis conditions
These use the live score of in-play tennis matches, when FairBot can get it. Choose the player in the Choose Selection box.
| Condition | What it checks | Settings |
|---|---|---|
| Selection Tennis Serving | Whether the player is serving. | The selection is serving or The selection is NOT serving. |
| Selection Tennis Point | Becomes true when the player wins, or loses, a point. | The selection WINS the point or The selection LOSES the point. |
| Selection Tennis Fixed Score | Whether the score is exactly what you choose. | Sets Won, Games Won and Points Won for the player and for the opponent, or Any Score. |
Other conditions
| Condition | What it checks | Settings |
|---|---|---|
| Account Balance | Your Betfair account balance. Use it to stop betting when the balance falls below a limit. | A comparison and an amount. |
| Account Profit/Loss | Your total profit or loss on settled markets, across all your markets. Use it as a daily stop: once you're down (or up) by a set amount, the strategy stops everywhere. | A comparison and an amount. Market Filter: Sports and Market Types. Time Range (Settled Time): Today, or the last 2, 4, 6, 8 or 12 hours. |
| Bets Per Period | How many bets you've placed in the current minute, hour or day. | A comparison, a number and Minute, Hour or Day. |
| Rule Number of Executions | How many times a rule in the same strategy has run. Use it to make one rule wait for another, or to build a timer with the Dummy action. | The rule, a comparison and a number. |
Note
Some conditions depend on data that isn't available for every market: live scores for football and tennis, race status and distance for racing, SP prices only in markets with a Betfair Starting Price. Where the data is missing, the condition isn't met, and the Automation tab may show a condition error for the rule.

