BetFair betting bot - MarketFeeder Pro - triggered automated betting software

Working with User Variables. Lesson 2 BetFair betting bot - MarketFeeder Pro - triggered automated betting software

See more:

In this lesson we are going to learn how to set a user variable to different values depending on different market conditions.

Suppose you have a problem:

Take a horse, let it be the favourite priced between 2.0 and 5.0, and put it in one of three ranges, pricewise.

If its price is 3.0 or less - range 6.
If its price is between 3.1 and 4.0 - range 7
For prices between 4.1 and 5.0 - range 8

Then if the horse's price gets higher than its range value, lay on this selection.

For example, the favourite's price is 3.5. It falls into range 7. If at any time during the race its price gets to 7.0 or higher, we're going to lay on that horse.

Let's create a user variable called "price_range" and determine what value it'll have. If we literally follow all the instructions above, we may come up with these three triggers.

Each trigger checks if the favourite's price is in the given range and sets "price_range" to the corresponding value. Pay attention to the second condition in each trigger: it prevents the variable from being set several times.

The variables are created "Individually for each market" in case you want to refresh several markets at the same time.

To lay on that horse when its price becomes higher than price_range, we may use this trigger:


However, there is a way to do the same thing just in two triggers: one for setting the price_range variable, and another one - for laying on the selection. We just need to use a slightly more complex formula.

Let's take a look at this trigger.

This trigger determines the price range of the selection and creates the corresponding variable. Its single condition checks whether the favourite's price is within the minimum and maximum limitations. The rest of the work is done by the formula in the "Value" field.

It operates a trigger variable "match_1_back_price" which returns the price of the selection that was chosen by the trigger. See help file's chapter "Triggered Betting" -> "Trigger Variables" -> "Matching Selections Variables".

The nested IF function checks three conditions:

1. If back price is <= 3, then return 6
2. Else If back price <= 4, then return 7
3. Otherwise return 8.

Since the condition of the trigger stipulates that "Selection's Back Price is between 2 and 5", there is no need to check the first and last price limits in the formula.

To lay on the same runner we now can use a simpler trigger:

Right-click here to download the trigger file.

You can try both ways of solving this problem, and to get a stronger understanding of the formula I'd recommend you to play with the nested IFs a little. For example, try to change the values of the range, or add the fourth range to the formula, and see how the trigger will behave.

 



TRY for FREE
we do not sell
a pig in a poke
HELP FILE
a complete description
of the software in PDF
TRIGGERS
download ready-to-go solutions

FORUM
communicate with traders
like you
SUPPORT
Have a problem?
Read this first
DOWNLOAD
the latest versions
of MarketFeeder Pro
MarketFeeder Pro is developed by WellDone Creative Software. ©2005-2012. All rights reserved. Terms and conditions.
SiteMap