Working with User Variables. Lesson 2 BetFair betting bot - MarketFeeder Pro - triggered automated betting software
- FAQ
- How to make a trigger start 45 sec after or before the off?
- After I started MF Pro and opened 'Triggers', I can't see the triggers I added last time
- How do I stop it betting when my balance reaches certain level?
- My triggers are not working. What to do?
- How to calculate the amount I want to back to win £100?
- How can I apply staking plans?
- How can I cancel a trigger if another trigger has worked?
- How do I compare the current price with that 1 hour ago?
- How to bet a percent of the total bank
- How to bet on a selection based on its position in the list, and not its price
- How to make a trigger bet the default betting amounts specified for the market
- How to check or uncheck all selections in the market
- How to bet to a fixed liability/payout
- How to bet on the selection with the specific BetFair order
- How to cancel all unmatched bets if at least one was matched
- How to cancel unmatched bets and post them at the best price before the start of the event
- How to Dutch Selections Chosen By Specific Conditions
- How to bet in races with a specific number of runners?
- How to stop betting after x wins/losses in a row?
- How to back at lay odds and lay at back odds?
- How to eliminate the loss on possible winners In-Play?
- How to apply triggers to specific markets
- How to apply various stop-loss methods
- How to determine whether the previous event affected by a trigger has finished
- How to apply the 'Fill or kill' rule?
- Betting on selections whose IDs are given in Excel
- How to bet in horse races with specific distance
- Maximum Number of Markets - Some Notes
- Do I need to have MS Excel installed to run MarketFeeder Pro?
- Can MarketFeeder Pro trade in different currencies?
- Is it limited in bet size?
- Does it support multiple markets?
- What does Triggered Betting mean?
- Can I run my own macros in the spreadsheet connected to MarketFeeder Pro?
- How can it help me to earn money?
- Do I have to pay extra-fee for using BetFair API?
- I don't see a suitable trigger in the Trigger Examples
- What can I do if I connect MarketFeeder Pro to Excel?
- What is Auto-Greenup?
- How many triggers can I maintain at the same time?
- Can I connect external spreadsheets to MarketFeeder Pro?
- Will I be able to use the software at my home AND at my work?
- What markets can I trade in?
- Can I set up a trigger that watches or bets on several runners?
- Can MarketFeeder Pro bet in In-play markets?
- Can I check an event's state (for example Suspended or In-play) in my triggers?
- What happens to my Dutching bets when one or more runners are withdrawn?
- What options can I set for Auto-Dutching?
- How would I set up a trigger that allowed me to dutch the top four runners?
- I have 2 Betfair accounts and run 2 systems I'd like to work on both Betfair accounts using your software - one from my pc and one from my laptop. Is that possible?
- Can I save and recall defined triggers, pass them to another user?
- Can I sell triggers?
- Is it safe to use MarketFeeder Pro?
- Can I test my staking plans with MarketFeeder Pro?
- Starting MF pro causes unexpected closing. Why?
- Excel Cell References
- Cell Addressing
- Text and Values in One Cell
- How To Use Excel IF Function
- Functions
- How to Determine whether VBA is Enabled
- Adjusting formulas to your Regional Settings
- Excel AND Function
- Excel Date and Time Format
- How to optimize the load on computer resources
- Choosing your own winners when testing a system
- How to apply triggers to specific selections
- How to make staking plans work for my trigger
- Working with User Variables. Lesson 1
- Working with User Variables. Lesson 2
- Using Command Line to start the program
- Limiting the liability of a bet
- Dutching in place markets (markets with multiple winners)
- Transferring funds between main and Australian wallets
- Addressing win and place markets through variables. Lesson 1.
- How to know which trigger is working at the moment?
- Bets below the minimum - important information
- Controlling the number of betting transactions
- Betting at Starting Price (SP)
- Addressing win and place markets through variables. Lesson 2.
- Choosing the favourite among imported selections
- Tips for Programmers
- Tips based on the results of the first Trigger Battle
- ASK YOUR OWN QUESTION
- English
- Switch per la lingua italiana
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.
a pig in a poke
of the software in PDF
FORUM
like you
Read this first
of MarketFeeder Pro

