Tips for Programmers 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
If you have some knowledge of Visual Basic scripting, particulary of VBA - the language used for creating macros in MS Office - the following tips can be useful for you.
Though all betting functions are implemented within the application, you may still want to launch betting from inside your Excel spreadsheet. This must be achieved through special functions with a pre-defined syntax. These functions exchange data with MF Pro through a DDE channel. DDE is a technology that allows two applications to interact with each other.
At the end of this page you will see the examples of both betting and cancelling procedures. You can apply these examples right away without knowing much about DDE technology. If you are interested in details please read the following paragraph.
Examples
Backing
Sub Back(marketID As Long, selectionID As Long, price As Double, amount As Double)
Dim feed As Integer
Dim data As String
feed = Application.DDEInitiate("FEEDER5", "betting")
If feed > 0 Then
data = "back/" & marketID & "/" & selectionID & "/" & price & "/" & amount
Range("AA1000") = data
Application.DDEPoke feed, "bet", Range("AA1000")
End If
End Sub
Laying
Sub Lay(marketID As Long, selectionID As Long, price As Double, amount As Double)
Dim feed As Integer
Dim data As String
feed = Application.DDEInitiate("FEEDER5", "betting")
If feed > 0 Then
data = "lay/" & marketID & "/" & selectionID & "/" & price & "/" & amount
Range("AA1000") = data
Application.DDEPoke feed, "bet", Range("AA1000")
End If
End Sub
Updating a bet addressed by its ID
Sub Update(betID As Double, newPrice As Double, newAmount As Double)
Dim feed As Integer
Dim data As String
feed = Application.DDEInitiate("FEEDER5", "betting")
If feed > 0 Then
data = "update/" & betID & "/" & newPrice & "/" & newAmount
Range("AA1000") = data
Application.DDEPoke feed, "bet", Range("AA1000")
End If
End Sub
Note: if you wish to leave either price or amount the same, you can input zero (0) instead of any of these parameters (but not both at the same time). For example:
Update 4038075284#, 0, 4
This will change only the amount of the bet.
Cancelling a bet addressed by its ID
Sub Cancel(betID As Double)
Dim feed As Integer
Dim data As String
feed = Application.DDEInitiate("FEEDER5", "betting")
If feed > 0 Then
data = "cancel/" & betID
Range("AA1000") = data
Application.DDEPoke feed, "cancel", Range("AA1000")
End If
End Sub
Cancelling a lay bet addressed by its price and amount
Sub CancelCustom(betType As String, marketID As Double, price As Double, amount As Double)
Dim feed As Integer
Dim data As String
feed = Application.DDEInitiate("FEEDER5", "betting")
If feed > 0 Then
data = betType & "/" & marketID & "/" & price & "/" & amount
Range("AA1000") = data
Application.DDEPoke feed, "cancel", Range("AA1000")
End If
End Sub
Example: CancelCustom "lay", 20520613, 2, 10
a pig in a poke
of the software in PDF
FORUM
like you
Read this first
of MarketFeeder Pro

