Backing on home team if away team won in half time

This trigger example was suggested by one of MF Pro users on the forum.

Here's its concept: if one of the teams in a basketball game (or any other game that implies half time) has won in the half time, then back on the other team in "Match Odds".

There are several markets available for betting on BetFair for each basketball game. Two of them are called "Match Odds" and "Half Time Match Odds". To determine the winner of the half time one can use the following methods:

This example utilises the second method. It monitors the market called "Half Time Match Odds" and waits till any selection's price drops to 1.01. Then it remembers that selection. Once that's happened, the second trigger looks for a team in "Match Odds" whose index (position in the list of teams) is different from the index of the remembered team. In other words, it bets on the opposite team.

Right-click here to download the trigger file.

The first trigger in the file finds and remembers the team that has won the half time. The name under which the team is remembered contains a trigger variable market_parent_id which returns the ID of the game to which the market belongs. The other market, "Mach Odds", belongs to the same game, that is why you can address that variable in both markets expecting it to have the same value for both of them.

The second trigger places a bet as soon as the first one has set the variable nba_market_parent_id. It compares two teams' indices and bets on that one whose index is not equal to the index of the remembered team.

If you have not heard of BetFair yet or do not have an account, register today and get £20 free. Use the link below:
New customers only, bet up to €/£20 on the Exchange and if your first bet loses, we’ll refund you €/£20 in Cash. Bet must be placed in first 7 days of account opening. T&Cs apply.
Gamble responsibly! Always be aware that betting is NOT risk-free. You must be 18+ years old before you try gambling, but even as an adult, withhold from spending money in an ill-judged manner. Our company does not encourage you to prefer gambling over other meaningful activities. If gambling is affecting your life or the lives of people close to you, please contact GamCare
© 2005-2023 WellDone Creative Software. All rights reserved. Terms and conditions.
BetFair® and the BetFair Logo are registered trade marks of Flutter Entertainment plc. Gamble responsibly.