Programme a betfair bot using betfair Financial markets and MT4

  • Posted:
  • Proposals: 2
  • Remote
  • #102666
  • Archived
Wajeeh S.Jesse L. have already sent a proposal.
  • 0


Experience Level: Expert
Job Spec

The task of the developer will be to build an automated bot that will specifically interact with the BETFAIR financials markets. The bot will use Betfair API to read from and relay information to the bot, which in turn will read information from MT4 (please see below) to make an informed decision whether to place a bet on the appropriate market. We are specifically looking at the FTSE and Wall Street 20 min financial markets.

The bot will need to follow a strict set of rules/criteria as to when it will place a bet. The bot will then have to close the position once a certain % of profit has been made. This will enable the BOT to LOCK IN profits regardless of how the eventual result/price of the market ends.

If you have any further questions, please enquire.

Betfair MT4/API Interface

Metatrader 4 (MT4) is trading software which gives us various forms of charts and indicators which can be used to analyse market prices.

We will use a program running on MT4 to generate signals for the bets we want to place with Betfair.

There are two main options for interfacing given that we’ll be running MT4 and the Betfair application on the same machine:

1) DLL direct interface
2) File interface

Option 1) is more complex though will be slightly quicker than option 2).

The DLL has to be written in C++. There are some details on the web on creating DLLs for MT4, for interest here are two links which describe the creation of a basic MT4 DLL:

It’s going to keep things simpler if we just use a file interface instead of a DLL to begin with.

The process will be as follows:

A Program on MT4 will run continuously and at the start of each new 20 minute betting period will generate a file.

This file will be created in one of the MT4 subdirectories:

C:\Program Files\Smart Live Spread Bet MT4\experts\files

The file will be called FTSE_Signals.csv and will be overwritten at the start of each 20 minute betting period.

The File will contain:

Separator ;
Separator ;
Betting Period Start Time HH:MM
Separator ;
Signal 4 characters (“Up” or “Down”)

The API will start polling for this file at the start of each 20 minute betting period (or can continuously poll – which will allow us more flexibility in the future to send several signals in the same betting period).

A check should be performed in the API to check that the file date is the same as today’s date and that the file time is not older than 5 seconds from the current time.

Here’s an example of the file data:


New Proposal

Create an account now and send a proposal now to get this project.

Sign up

Clarification Board Ask a Question

    There are no clarification messages.