The aim was to build a little intelligence into the betting conditions using stats you would use when trading manually.
At the same time I also started looking at recording service stats via a similar mechanism. The process is unfortunately long winded, as you need to record each possible score, the outcome and then store the values to add to a running total. The only real alternative currently is to screen scrape and use Excel to pass the data to your Guardian Stored Values.
One real shame is that you can't detect 1st and 2nd serve or I would be able to break the stats down further. At least I can now get a fully automated bot to make a trade decision with some idea of how the favourite is performing, as opposed to backing blind when the fave is having a nightmare with no signs of threatening the dog. Of course, this won't cater for the fave having a 100% turnaround in set 2

Anyway, this is what I've come up with and run from the start against a match it will sort the favourite into position 1 and calc the following SV's
BPConverted - Number of BP's Converted by the fave
ServeBrokenCount - Number of games the fave lost on serve.
BPAgainstTotal - Number of BP's against the fave.
BPForTotal - Number of BP's earned by the fave.
BPSavedTotal - Number of BP's saved by the fave.
PercentWonOnServe - Percentage of points won by fave when serving (1st and 2nd serve combined)
PercentReceivingOnServe - Percentage of points won by fave when receiving (1st and 2nd serve combined)
As a demo, I've taken one of Dallas' bots (Back Fav if Lose 1st Set and Green up in Stages.baf) and included it in the baf below to show how the stats might be used to make a decision to back the fave after losing the first set. Numbers in the conditions are pulled purely from my head and I have no idea how they will work in practice.
Unfortunately there are no matches currently where BF are including the score in the API so will need to wait until ATP\WTF start up again.
Easy enough to copy rules from your own strats into the lines I've marked in the attached baf file
Back Condition:
Looking forward to the restart of the season proper so I can put this properly to the test using my own strats.
Feel free to fire any questions or improvement suggestions.