How to tell when the offset bet has been matched?

Please post any questions regarding the program here.

Moderator: 2020vision

How to tell when the offset bet has been matched?

Postby danjuma » Thu Jun 18, 2009 10:12 pm

Hope someone could help me with this, or if it's already been answered somewhere in the forum, point me to the thread.

I have written a trigger which submits a back or lay bet when certain conditions are met, and after being matched, immediately submits a tick offset bet.

My problem is how to clear the bet reference for the original bet after the tick offset bet has been matched, so that a new bet can been placed.

I can write an excel statement to in put "CLEAR" in the trigger column against a selection that's got its tick offset bet matched, but how can I tell excel that the tick offset bet has been matched?

The bet reference column 'T' logs just the bet reference for the original bet, and not the bet reference for the tick offset bet.

Thanks
Dan
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby throwmeadisc » Fri Jun 19, 2009 10:49 am

Hi Dan,

This has been discussed

here - http://www.gruss-software.co.uk/forum/v ... 7891#17891

and here - http://gruss-software.co.uk/forum/viewtopic.php?p=18005

I think Gary is working on a solution....

Cheers,

Al :lol:
User avatar
throwmeadisc
 
Posts: 165
Joined: Fri Dec 14, 2007 11:06 am
Location: London, UK

Postby danjuma » Fri Jun 19, 2009 10:57 am

Thanks throwmeadisc.

Gary, any solution yet? If not, got any suggestions for a workaround at present?

Cheers
Dan
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

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

It's on my list to provide functionality to display the offset bet, but in the meantime I have created an example spreadsheet which uses MyBets to calculate the net stake and therefore if the offset bet is matched. See http://gruss-software.co.uk/forum/viewtopic.php?t=3619
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby danjuma » Fri Jun 19, 2009 5:53 pm

Brilliant Gary! Many thanks :D
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby danjuma » Sun Jun 21, 2009 9:16 pm

Hello Gary,

Firstly, many thanks for taking the time to come up with this spreadsheet (Calculate net matched stake from MyBets).

I have tried it with my trggers and a few things came to light.

1. It would appear it does not clear the bet ref column when "CANCELLED" is it, which appears when a bet is cancelled before being matched using fill or kill.
I think I managed to find a solution to this by adding a line to clear the bet ref column when it contains "CANCELLED". I mentioned 'I think' because though this seems to work, but there were the odd occassions when it did not. Dont' know why.

2. The spreadsheet seems to work ok (clearing the bet ref column when the off set bet is matched) when using just the one worksheet and 'MyBets' for all races.
However, it does not seem to work when the different venues are loaded into different tabs, and each venue logged to seperate worksheets in the same workbook. I did create seperate 'MyBets' sheets for the different worksheets (appropriately labelled Sheet1_MyBets, Sheet2_MyBets etc)

The bets were recorded correctly to the correct 'MyBets' sheet, but the bet ref was just not being cleared after the offset bet has been matched.

3. Sometimes, the bet ref does not get cleared after a new race has been loaded. So you have a new race, having the previous race bet ref in the bet ref column.
I got round this by ticking the clear bet ref option when market automatically loads in the log to excel pop-up box. However, I don't know what effect, if any this might have on any outstanding unmatched bet in the previous market, especially those set to be kept in-play

Cheers
Dan
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby danjuma » Mon Jun 22, 2009 1:26 pm

Gary,

Just wondered, got any answers or solution?

Cheers
Dan
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby GaryRussell » Mon Jun 22, 2009 2:27 pm

I only provided the spreadsheet as an example so I would expect it to need modification to suit your requirements. Please bear with me, I will try to have a look later.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby danjuma » Mon Jun 22, 2009 3:21 pm

Thanks Gary.

I do appreciate you are a very busy man. :wink:
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby danjuma » Mon Jun 22, 2009 4:18 pm

Gary,

Just to add, I have tried it again with just the one worksheet and 'MyBets' sheet in the one workbook, and for some reason it sometimes does not clear the bet ref after the off set bet has been matched.
I am using a 1sec refresh rate and trading before the start of a race (Not in play) and trading the top 3 favs.

Cheers
Dan
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby GaryRussell » Tue Jun 23, 2009 7:48 am

danjuma wrote:Gary,

Just to add, I have tried it again with just the one worksheet and 'MyBets' sheet in the one workbook, and for some reason it sometimes does not clear the bet ref after the off set bet has been matched.
I am using a 1sec refresh rate and trading before the start of a race (Not in play) and trading the top 3 favs.

Cheers
Dan


If you are using fill or kill it will affect the logic as the trigger formula checks for the bet being fully matched by comparing the matched stake to the requested stake. You probably had some partial matches which will trip the logic up. I will be uploading a new example which will address this limitation and also demonstrate how to get it working with multiple worksheets.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby danjuma » Tue Jun 23, 2009 8:25 am

Thanks for looking at this Gary, much appreciated.

I have been looking at a way round this myself, and was thinking of checking the MyBets sheet for selections without a 'U' in the E column, and trigger the CLEAR to clear the bet ref for that selection. Do you forsee any problems or limitations with this logic?

Cheers
Dan
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby danjuma » Tue Jun 23, 2009 8:31 am

Just to add, I am also using the auto level trigger 'TLn' to spread my loss/profit. Don't know whether this will have any negative effect.

Cheers
Dan
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby GaryRussell » Tue Jun 23, 2009 9:25 am

danjuma wrote:Just to add, I am also using the auto level trigger 'TLn' to spread my loss/profit. Don't know whether this will have any negative effect.

Cheers
Dan


It definitely will, it destroys the logic completely as it relies on the net stake being zero which will never be the case. I'll have to give this some thought.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby throwmeadisc » Tue Jun 23, 2009 11:55 am

I don't mean to butt in, but would it not be better for Gary to spend his time implementing the actual change in the software. This would then resolve all issues. Whilst I apreciate the sample sheets, the full change is much more useful.

Cheers,

Al :twisted:
User avatar
throwmeadisc
 
Posts: 165
Joined: Fri Dec 14, 2007 11:06 am
Location: London, UK

Next

Return to Help

Who is online

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