Calculate net matched stake from MyBets

Please submit your spreadsheets by email and I will include them here.

Moderator: 2020vision

Calculate net matched stake from MyBets

Postby GaryRussell » Fri Jun 19, 2009 3:25 pm

The following spreadsheet is an example of using the MyBets worksheet. It calculates the net matched stake and uses this to trigger new tick offset bets when the offset bet is matched. It determines the offset bet is matched by calculating the net matched stake to be zero. The net matched stake is the difference between the total back and lay stakes placed on the selection.

The spreadsheet places a 10 pence bet with 1 tick offset on the top selection at the current best back odds. As soon as the offset bet is matched another bet is triggered. You must tick "Log current bets" when setting up the link to Excel. It's not going to make you any money, it's just an example, but the worst you can lose is 10 pence if you test it.

Note:-
The bets are only triggered when the market is in play in this example.
As MyBets is not updated at exactly the same time as the main worksheet the VBA code also checks that the initial bet is included in MyBets when calculating the net stake.

https://www.gruss-software.co.uk/Excel/ ... xample.xls
User avatar
GaryRussell
Site Admin
 
Posts: 9679
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby GaryRussell » Fri Jun 26, 2009 11:02 am

I have changed the way the net stake is calculated. It was previously the difference between the back and lay stakes, but always a positive number. It is now always the total lay stakes minus the total back stakes so it can be a negative number. This is to allow it to work if you greened up in which case the net stake will not be zero it will be a positive amount.

I have also updated it to check that the initial bet is fully matched before allowing a new bet to be fired.
User avatar
GaryRussell
Site Admin
 
Posts: 9679
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK


Return to Sample Triggered Betting Excel Sheets

Who is online

Users browsing this forum: No registered users and 2 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.

cron