Place a bet at 2 tick below

Discuss anything related to using the program (eg. triggered betting tactics)

Moderator: 2020vision

Place a bet at 2 tick below

Postby thonggruss » Mon Apr 07, 2008 6:46 am

Hi

I think someone already did it but i couldnt find it. Just wondering may i know how can i place a bet which is 2 tick below the displayed odd ?

i tried to find this in the help>using excel but i cant find anything....

thanks for your help
thonggruss
 
Posts: 96
Joined: Mon Jan 29, 2007 1:42 am

Postby GaryRussell » Tue Apr 08, 2008 2:22 pm

There isn't a trigger for this, but I could create one. At the moment you'd have to create a VBA function to work out the required odds.
User avatar
GaryRussell
Site Admin
 
Posts: 9695
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby GaryRussell » Tue Apr 08, 2008 2:42 pm

I've created some functions to work out the offset odds.

In the Excel macro editor create a new module and insert the following code.

In column R you can use the plusTicks or minusTicks function.
eg. =plusTicks(H5,2) to add 2 ticks to the lay odds

Function getPrevOdds(ByVal odds As Currency) As Currency
Dim oddsInc As Currency
Select Case odds
Case 1.01 To 2
oddsInc = 0.01
Case 2.02 To 3
oddsInc = 0.02
Case 3.05 To 4
oddsInc = 0.05
Case 4.1 To 6
oddsInc = 0.1
Case 6.2 To 10
oddsInc = 0.2
Case 10.5 To 20
oddsInc = 0.5
Case 21 To 30
oddsInc = 1
Case 32 To 50
oddsInc = 2
Case 55 To 100
oddsInc = 5
Case 110 To 1000
oddsInc = 10
End Select
If Math.Round(odds - oddsInc, 2) >= 1.01 Then
getPrevOdds = Math.Round(odds - oddsInc, 2)
Else
getPrevOdds = 1.01
End If
End Function

Function getNextOdds(ByVal odds As Currency) As Currency
Dim oddsInc As Currency
Select Case odds
Case 1 To 1.99
oddsInc = 0.01
Case 2 To 2.98
oddsInc = 0.02
Case 3 To 3.95
oddsInc = 0.05
Case 4 To 5.9
oddsInc = 0.1
Case 6 To 9.8
oddsInc = 0.2
Case 10 To 19.5
oddsInc = 0.5
Case 20 To 29
oddsInc = 1
Case 30 To 48
oddsInc = 2
Case 50 To 95
oddsInc = 5
Case 100 To 1000
oddsInc = 10
End Select
If Math.Round(odds + oddsInc, 2) <= 1000 Then
getNextOdds = Math.Round(odds + oddsInc, 2)
Else
getNextOdds = 1000
End If
End Function

Function plusTicks(odds As Currency, ticks As Byte) As Currency
Dim i As Byte
For i = 1 To ticks
odds = getNextOdds(odds)
Next
plusTicks = odds
End Function

Function minusTicks(odds As Currency, ticks As Byte) As Currency
Dim i As Byte
For i = 1 To ticks
odds = getPrevOdds(odds)
Next
minusTicks = odds
End Function
User avatar
GaryRussell
Site Admin
 
Posts: 9695
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby thonggruss » Wed Apr 09, 2008 4:02 am

thanks Gary!
thonggruss
 
Posts: 96
Joined: Mon Jan 29, 2007 1:42 am

Postby allgreen » Thu Apr 10, 2008 3:03 pm

Yes, thanks for that Gary - very handy!
allgreen
 
Posts: 98
Joined: Wed Mar 08, 2006 7:28 am
Location: Down Under

Postby Ian » Fri Apr 11, 2008 9:48 am

Very useful, cheers.
Ian
 
Posts: 834
Joined: Sat Nov 19, 2005 8:35 am
Location: Birmingham

Postby Shaun » Wed Jun 22, 2011 1:48 pm

I was trying to make a formula for this but i get a message "Ambiguose name detected plusTicks"

=IF(AD5="","",IF(AA5=0,IF(Control!$V$6="BACK",minusTicks(O5,Control!Y6),plusTicks(O5,Control!Y6)),AA5))
Shaun
 
Posts: 435
Joined: Fri May 09, 2008 11:11 pm
Location: Kellerberrin, Western Australia

Postby GaryRussell » Wed Jun 22, 2011 1:56 pm

Send the spreadsheet to admin@gruss-software.co.uk and I'll have another look at it. It could be the VBA code isn't incorporated properly.
User avatar
GaryRussell
Site Admin
 
Posts: 9695
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby Shaun » Wed Jun 22, 2011 2:54 pm

on the way, Thanks
Shaun
 
Posts: 435
Joined: Fri May 09, 2008 11:11 pm
Location: Kellerberrin, Western Australia

Postby Shaun » Wed Jun 22, 2011 3:20 pm

I am still playing with some formulas so it may not work right.
Shaun
 
Posts: 435
Joined: Fri May 09, 2008 11:11 pm
Location: Kellerberrin, Western Australia

Postby GaryRussell » Fri Jun 24, 2011 12:03 pm

Just got round to having a look at your spreadsheet. It reports "ambiguous" because the same code is in module1 and module2 therefore it doesn't know which plusTicks function to use. Delete module2 by right clicking on it in the code editor and selecting "remove module2".
User avatar
GaryRussell
Site Admin
 
Posts: 9695
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby Shaun » Fri Jun 24, 2011 1:51 pm

Fairdinkum i can be a dick head at times, thanks for that
Shaun
 
Posts: 435
Joined: Fri May 09, 2008 11:11 pm
Location: Kellerberrin, Western Australia

Postby Ian » Tue Aug 30, 2011 4:37 pm

Are the ticks the same at Betdaq as Betfair ?
Ian
 
Posts: 834
Joined: Sat Nov 19, 2005 8:35 am
Location: Birmingham

Postby GaryRussell » Wed Aug 31, 2011 9:20 am

Ian wrote:Are the ticks the same at Betdaq as Betfair ?

No they are different. The following code should give you Betdaq odds.

Code: Select all
Function getPrevOdds(ByVal odds As Currency) As Currency
   Dim oddsInc As Currency
   Select Case odds
      Case 1.01 To 3
         oddsInc = 0.01
      Case 3.05 To 4
       oddsInc = 0.05
      Case 4.1 To 6
         oddsInc = 0.1
      Case 6.2 To 10
         oddsInc = 0.2
      Case 10.5 To 20
         oddsInc = 0.5
      Case 21 To 50
         oddsInc = 1
      Case 52 To 200
         oddsInc = 2
      Case 205 To 1000
         oddsInc = 5
   End Select
   If Math.Round(odds - oddsInc, 2) >= 1.01 Then
      getPrevOdds = Math.Round(odds - oddsInc, 2)
   Else
      getPrevOdds = 1.01
   End If
End Function

Function getNextOdds(ByVal odds As Currency) As Currency
   Dim oddsInc As Currency
   Select Case odds
      Case 1 To 2.99
         oddsInc = 0.01
      Case 3 To 3.95
       oddsInc = 0.05
      Case 4 To 5.9
         oddsInc = 0.1
      Case 6 To 9.8
         oddsInc = 0.2
      Case 10 To 19.5
         oddsInc = 0.5
      Case 20 To 49
         oddsInc = 1
      Case 50 To 198
         oddsInc = 2
      Case 200 To 1000
         oddsInc = 5
   End Select
   If Math.Round(odds + oddsInc, 2) <= 1000 Then
      getNextOdds = Math.Round(odds + oddsInc, 2)
   Else
      getNextOdds = 1000
   End If
End Function
User avatar
GaryRussell
Site Admin
 
Posts: 9695
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby Ian » Wed Aug 31, 2011 10:09 am

Gary, thanks for this.
Ian
 
Posts: 834
Joined: Sat Nov 19, 2005 8:35 am
Location: Birmingham

Next

Return to Discussion

Who is online

Users browsing this forum: No registered users and 25 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.