Stopping channels when Profit/Loss limit is reachedStopping channels when Profit/Loss limit is reached
The following example will show you how to stop refreshing all channels once the total loss or total profit has reached the specified limit.
The trigger will stop each channel as soon as the game in that channel has finished. It will do it in the very beginning of the first round, before any bets can be placed. This gives you the opportunity to finish your betting plans, as stopping a game in the middle can result in more losses.
Right-click here to download the trigger file.
The file consists of three triggers. The first two triggers define the minimum and maximum values for the Total Profit/Loss. Therefore, if Total P/L is negative, the channels will stop as soon as it falls below the min_pl value, otherwise the channels will stop when Total P/L is over max_pl. Feel free to change these values as you wish. Note that the value of min_pl must be negative, e.g. -100.

The third trigger then stops the channels based on the described conditions.

In the given example the trigger stops all channels, but if you want to apply it to a particular channel, change the "in channel" field from "All channels" to the name of the required channel.
The condition of the trigger says the following:
If the total amount won or lost in all games is less than min_pl or greater than max_pl, then execute the trigger.
Since the "repeat action" field is set to "once per game", the trigger won't stop all channels at once: it will do this individually for each game, in the beginning of the first round.
If you want to check each game's total P/L rather than the total P/L, you can change the condition of this trigger to this:

In this case each channel will be stopped based on the amount that was won or lost in that particular type of game. I.e., you may lose £100 in Poker and win £200 in HiLo, and in both cases the two channels will be stopped.
BetFair® and the BetFair Logo are registered trade marks of The Sporting Exchange Limited.
