Excel - How to tell if bet successful ?

Please post any questions regarding the program here.

Moderator: 2020vision

Excel - How to tell if bet successful ?

Postby tkp » Wed Apr 11, 2007 11:02 am

Hi all,

Hoping for some help here.

Has anyone implemented a way of checking if a bet was successful in Excel - i.e. Specifically I need to know if a back bet was successful.

Or does anyone have any ideas on how to do this ?

Cheers
tkp
User avatar
tkp
 
Posts: 213
Joined: Fri Nov 18, 2005 8:41 pm
Location: Midlands

Postby Captain Sensible » Wed Apr 11, 2007 1:06 pm

It'll show the bet reference in excel and also show the amount that has been matched. It updates this info on each refresh if only part was matched..
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm

Postby tkp » Wed Apr 11, 2007 7:05 pm

Cheers for the swift reply Captain.

I didn't make my plea for help very clear though.

I am trying to find out if the horse I have backed has won - via excel.

If I was only betting one horse per race I could perhaps do this with the account balance - but this won't always be the case - so I can't use this method.

Any ideas anyone ?
tkp
User avatar
tkp
 
Posts: 213
Joined: Fri Nov 18, 2005 8:41 pm
Location: Midlands

Postby GeorgeUK » Wed Apr 11, 2007 8:03 pm

betfair have a feed that you can use - not looked at it for ages

Basically tells you who won or was placed.
Should be a webquery or something.

Edit: found the link.
http://rss.betfair.com/

just need to do a lookup formula or something for market type: winner and then your horse name.
previously known as Gaseous (on the betfair forum)
User avatar
GeorgeUK
 
Posts: 315
Joined: Sat Nov 19, 2005 10:18 pm
Location: Scotland

Postby tkp » Wed Apr 11, 2007 8:54 pm

Nice one George.

I have the RSS set up as a feed :oops: ....didn't think about using the web page it comes from.

Not sure if it will update often enough though - but I can test it out.

Many thanks,
tkp
User avatar
tkp
 
Posts: 213
Joined: Fri Nov 18, 2005 8:41 pm
Location: Midlands

Postby GeorgeUK » Wed Apr 11, 2007 10:58 pm

I think data queries can be refreshed every minute.
If that isn't enough, you could try a macro that calls itself to run every 3 or 5 secs.

Just don't forget to put in a control to stop the code. If sheet 3 Range A1 = stop then endsub type thing.
Otherwise the only way to stop it is to use the esc key which migh interrupt any other code running.
previously known as Gaseous (on the betfair forum)
User avatar
GeorgeUK
 
Posts: 315
Joined: Sat Nov 19, 2005 10:18 pm
Location: Scotland

Postby Mitch » Wed Apr 11, 2007 11:10 pm

I know it's not foolproof but how about checking for the lowest "Last Price Matched"?
User avatar
Mitch
 
Posts: 365
Joined: Sat Nov 19, 2005 12:28 am
Location: Leicester

Postby tkp » Wed Apr 11, 2007 11:24 pm

Cheers George - it's the Betfair RSS feed which doesn't get refreshed qucik enough - the US results are over 1hr behind - and I think from experience the UK racing is almost as slow.

Mitch - is the last matched price sent to excel ? Or do I need to catch it as the race ends ?
tkp
User avatar
tkp
 
Posts: 213
Joined: Fri Nov 18, 2005 8:41 pm
Location: Midlands

Postby tkp » Wed Apr 11, 2007 11:33 pm

:roll: I've just noticed that exposure is now exported to excel.....so in theory I should know if a profit has been made on the last bet (presuming a quick betfair turnaround) by using a known starting bank..+exposure etc....

although Mitch I'd be interested in your reply on the last matched price - as might not get the account/exposure theory turned into a reality.

:oops: EDIT - Mitch I've just looked and noticed that there is a column for last matched price !! So long since I did anything with the actual export.

cheers
tkp
User avatar
tkp
 
Posts: 213
Joined: Fri Nov 18, 2005 8:41 pm
Location: Midlands

Postby Mitch » Thu Apr 12, 2007 12:56 pm

Sorry, not been back on until now but I see you have the answer - in column O. The only drawback is if your market changes before you look at the spreadsheet, unless you code it to take the lowest when the market goes from in-play to suspended.
User avatar
Mitch
 
Posts: 365
Joined: Sat Nov 19, 2005 12:28 am
Location: Leicester

Postby tkp » Thu Apr 12, 2007 3:05 pm

Hi Mitch,

My code checks the sheet at any interval down to 1 second - so I will keep checking until it reaches 1.01....that way I know which horse won.....

This method doesn't help me with Place betting though (because it doesn't go in-play) ..... so if anyone has any bright ideas....please let me know.

I think I'm going to have to use a web query in excel and parse the results.........big re-write of my code though.
tkp
User avatar
tkp
 
Posts: 213
Joined: Fri Nov 18, 2005 8:41 pm
Location: Midlands

Postby GeorgeUK » Thu Apr 12, 2007 3:27 pm

I'd be interested to know what the best sites are for fast update of results.

Never really looked at it before, but curious now.
previously known as Gaseous (on the betfair forum)
User avatar
GeorgeUK
 
Posts: 315
Joined: Sat Nov 19, 2005 10:18 pm
Location: Scotland

Postby dgs2001 » Thu Apr 12, 2007 3:39 pm

Hi All

I know this is not using my brain but can anyone let me have the lookup code for knowing the race winner.
If i understand this thread correctly it would be something to do with lookink up the first horse to get to back odds 1.01 and lay odds 1.01 once the event goes in play.

Hopefully this is the last bit in my spreadsheet puzzle :lol:


Thanks Duncan


Ok I was wrong again it's something to do with the last matched column still help would be appreciated !!
User avatar
dgs2001
 
Posts: 334
Joined: Thu Apr 05, 2007 4:53 pm
Location: The Home Of National Hunt

Postby Mitch » Thu Apr 12, 2007 4:36 pm

Horses don't always get to 1.01 when they win, sometimes can be as high as 1.3 if it's a photo finish.

Once the race is over, this will tell you the row (with row5 - first selection - as 1) with the smallest last matched odds (I think.... not tested it)

Code: Select all
=MATCH(MIN(O5:O50),O5:O50,0)
User avatar
Mitch
 
Posts: 365
Joined: Sat Nov 19, 2005 12:28 am
Location: Leicester

Postby Mitch » Thu Apr 12, 2007 4:39 pm

Almost forgot...

The quickest I've seen for results is Sporting Life "Fast Results" page, but there is live(ish) running commentary on thebettingsite.co.uk which may be quicker if you can pull the info from there.

Maybe teletext might be worth a look too?
User avatar
Mitch
 
Posts: 365
Joined: Sat Nov 19, 2005 12:28 am
Location: Leicester

Next

Return to Help

Who is online

Users browsing this forum: Bing [Bot] and 55 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.