Horse Racing - Number of Runners

From Bet Angel forum:

I am getting into signals and stored vales a lot more these days and I was wondering how you store the number of runners to display in the log.  Do you use a signal or a stored value and what would be the settings?

Suggestion from forum:

A series of alert rules with the number of selections condition that will the job if you just want it to appear in log.

Bfexplorer Solution:

This article can be the second in series for “Betfair Bot Programming for Non-Developers”. The script code is 84 lines of code, but it introduces just two new F# keywords: mutable and match. The rest of code is just pure functions utilizing Seq and List operations: filter, sortBy, take, map and String.concat.

So what the code does?


When executed it saves list of favourites, book value for 3 favourites and number of runners. In the first Execute the list of favourites is reported to the Output view, and then the bot code just waits (does nothing) to finally report with EndExecution the favourite name at bot start time, favourites book value, number of runners, winner name and its favourite index (have at look at line 84 and method on reportMyData on lines 62 - 68).

What you save and in what resource (csv file, excel document, database and so on) really depends only on programmer’s skills and needs. 

Comments ( 1 )

  • Mir.
    15.8.2018 16:02:21

    Thumbs up for the "Betfair Bot Programming for Non-Developers" series!