The action is what a rule does when its conditions are met. Each rule has one action, which you choose on the Action tab of the rule editor. Its settings appear under Action Parameters.
Some actions work on one selection, which you pick in the Choose Selection box (see Choose a selection). The others work on the whole market.
Settings many actions share
Bet Size
| Stake type | What the number means |
|---|---|
| Fixed Amount | The stake, in your currency. |
| % of Balance | A percentage of your available balance. |
| % of Bank | A percentage of your bank: your available balance plus your current exposure. |
| By Book % | The amount you want back: FairBot stakes that amount divided by the odds, so higher odds get a smaller stake. |
| Selection Expression | The result of a selection expression. |
With Fixed Amount, % of Balance and % of Bank, you can also tick Back Stake is Profit (for back bets) or Lay Stake is Liability (for lay bets): the amount is then the profit you want to win, or the most you're willing to lose, and FairBot works out the stake from the odds.
Bet Odds
The odds to ask for. Choose one of:
- Fixed Odds: odds you type.
- Best Back Odds, Best Lay Odds, LTP (last traded price), Min Traded Odds, Max Traded Odds or Most Traded Odds, plus or minus an offset in tick(s), odds or %. For example, Best Lay Odds plus 0 ticks takes the best price on offer straight away.
- Near SP, Far SP or Actual SP, with an offset.
- The odds of one of your bets: Unmatched Back Bet's Odds, Unmatched Lay Bet's Odds, Matched Back Bet's Odds or Matched Lay Bet's Odds. If you have several, choose which: the one with the highest or lowest odds (Max Odds, Min Odds), the newest or oldest (Max Bet Ref Id, Min Bet Ref Id).
- Selection Expression: the result of a selection expression.
Bet Persistence
What happens to the bet if it isn't matched when the event goes in-play:
- None: Betfair cancels it.
- Keep: it stays in the market in-play.
- Take SP: it's matched at the Betfair Starting Price.
Fill or Kill
Tick Fill or Kill and set Kill after (sec) to cancel whatever part of the bet hasn't been matched after that many seconds. Use it so a bet that missed its price doesn't sit in the market.
Betting actions
| Action | What it does | Settings |
|---|---|---|
| Place a Bet | Places a back or lay bet on a selection. | Bet Type (Back Bet, Lay Bet), Bet Odds, Bet Size, Bet Persistence, Fill or Kill. |
| Place a BSP Bet | Places a Betfair Starting Price bet on a selection. | Bet Type; the Stake (back bet) or Liability (lay bet), as a fixed amount or a percentage of balance or bank; SP Odds Limit to set the Min Odds you'll accept for a back bet, or the Max Odds for a lay bet. |
| Back/Lay All | Backs or lays every selection in the market. | Bet Type, Bet Odds (for example relative to each selection's best price), Bet Size, Bet Persistence, Fill or Kill. |
| Dutching | Spreads stakes over several selections so you win (or lose) the same whichever of them wins. | Bet Type: Dutching (Back) or Dutching (Lay). Dutching Type: Max. Liability or Required Profit, as a fixed amount, a percentage of balance or bank, or a market expression. Choose Selections: All, or Indexes such as 1-3, 5, e2 (e2 is the second from the end) after the Selection Sorting you choose. Price with an offset, and Bet Persistence. |
Warning
Betting actions place real bets every time the rule runs. Before you assign a strategy, check the Bet Size and the Execution Count of each of these rules.
Trading actions
Place a Trade
Opens a trade on a selection: an opening bet, plus an offset bet that takes your profit and, if you like, a stop loss that limits your loss. It works like trading from the Grid or the Ladder.
| Setting | What it does |
|---|---|
| Trade Type | Back - Lay (back first, lay later at lower odds) or Lay - Back (lay first, back later at higher odds). |
| Initial Bet Odds | The odds of the opening bet. |
| Bet Size | The stake of the opening bet. |
| Bet Persistence | As above. |
| Offset Bet | Once the opening bet is matched, FairBot places the closing bet Offset At the number of ticks, odds or percent you choose away from the opening odds. Tick Smart Bets to have FairBot work out its stake so you win the same whatever the result. |
| Stop Loss | When ticked, FairBot closes the trade if the price moves against you: it waits until the price reaches Trigger At, then places the closing bet at Place At. Trailing Stop Loss makes the stop follow the price when it moves your way. Smart Bets works out the stake to spread the loss over every result. |
| Repeat On Success | When ticked, FairBot opens the same trade again after one completes with a profit, up to Repeat Count times. |
| Fill or Kill | As above, for the opening bet. |
Other trading actions
| Action | What it does | Settings |
|---|---|---|
| Place a Single Stop Loss | Puts a stop loss bet on a selection into Pending Bets: when the price reaches the trigger odds, FairBot places the bet. | Bet Type, Trigger Odds, Bet Odds, Bet Size, Bet Persistence. |
| Green Up Selection | Greens up one selection, so you win or lose the same whatever happens to it. | Greening Up Price: Available Price, The Most Profitable Price or a Custom Price. Bet Persistence. Cancel Unmatched and Pending Bets on the selection first. |
| Green Up All Selections | Greens up the whole market, spreading the profit or loss evenly over all selections. | Greening Up Price: Use available price or Use the most profitable price. Bet Persistence. Cancel Unmatched and Pending Bets first. |
Managing bets
| Action | What it does | Settings |
|---|---|---|
| Cancel Bets | Cancels bets in the whole market. | Bet Types: Back, Lay. Bet Kinds: Unmatched, Pending Offset, Pending Stop Loss, Pending Single Stop Loss. |
| Cancel Bets on Selection | The same, on one selection only. | As for Cancel Bets, plus the selection. |
| Change Bet Persistence | Changes the persistence of bets already in the market, for example to keep unmatched bets in-play. | Which bets: Bet Types, Bet Kinds and their current Bet Persistences. New Bet Persistence: None, Keep or Take SP. |
Messages and alerts
| Action | What it does | Settings |
|---|---|---|
| Play Beep | Plays a beep. Handy for testing whether a rule fires. | Duration (ms) and Frequency. |
| Play Sound | Plays a sound file. | Sound filename (*.wav); Browse... to pick it. |
| Show Market | Shows the market in the main window, or brings its separate window to the front. | None. |
| Send E-mail | Sends an e-mail. | SMTP settings of your e-mail provider: SMTP host, Port, Username, Password, From name, From address, Use SSL/TLS. E-mail Message: To, Subject, Message. |
| Send Telegram Message | Sends a message to a Telegram chat. | Message and Chat_ID. Click Auto-Detect Chat_ID... to find your chat. See Sending Telegram messages with FairBot. |
Put market details in a message
In the subject and text of Send E-mail and Send Telegram Message you can use variables that FairBot replaces with the market's details when it sends the message. Click Variables... to see them.
| Variable | Replaced with |
|---|---|
{$MARKET_NAME} |
The market name. |
{$EVENT_NAME} |
The event name. |
{$COMPETITION_NAME} |
The competition name. |
{$MARKET_TYPE} |
The market type. |
{$MARKET_START_TIME} |
The market start time. |
{$MARKET_STATUS} |
The market status, such as ACTIVE or CLOSED. |
{$MARKET_VOLUME} |
The money matched in the market. |
{$NUMBER_OF_RUNNERS} |
The number of selections. |
{$NUMBER_OF_WINNERS} |
The number of winners (places). |
{$MARKET_PL} |
Your profit or loss in the market. Only once the market is settled. |
{$MARKET_NET_PL} |
Your profit or loss after commission. Only once the market is settled. |
{$STRATEGY_NAME} |
The name of the strategy that sent the message. |
{$CURRENT_DATE} |
Today's date. |
{$CURRENT_TIME} |
The time now. |
For example: {$STRATEGY_NAME}: bet placed in {$EVENT_NAME} - {$MARKET_NAME} at {$CURRENT_TIME}.
Note
A message that uses {$MARKET_PL} or {$MARKET_NET_PL} fails if the market isn't settled yet. Add the
condition Market State CLOSED to that rule.
Variables
| Action | What it does | Settings |
|---|---|---|
| Set Variable (Market Expression) | Stores a value in a user variable. | Variable Identifier: the name. Variable Type \ Value: an Expression (a market expression worked out now) or a Selection (one you choose). Variable Scope: Market, Event, Sport or Global. Test shows the result. |
| Set Variable (Selection Expression) | Stores the result of a selection expression, worked out for the selection you choose. | Variable Identifier, Expression, Variable Scope. |
A variable name must start with a letter or an underscore and contain only letters, digits and underscores, for example entry_odds.
Rule actions
| Action | What it does | Settings |
|---|---|---|
| Dummy | Does nothing. Use it as a timer: give it an Execution Count and a Wait Time after execution, then check how many times it has run with the Rule Number of Executions condition in another rule. | None. |
| Reset Rule's Number of Executions | Sets the execution count of a rule back to 0, so it can run again. Use it to restart a sequence of rules. | The rule. |
Market actions and Apply to All
Back/Lay All, Dutching, Green Up All Selections, Cancel Bets, Change Bet Persistence, Show Market, Send E-mail and Send Telegram Message work on the whole market. Don't use them in a rule with Apply to All turned on: the rule then runs once for each selection, and so does the action. See Apply to All.


