Green up sample spreadsheet

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

Moderator: 2020vision

Green up sample spreadsheet

Postby danjuma » Sun Sep 05, 2010 3:09 pm

Gary quotes:

I have updated the green up example to do the calculation when the prices are updated on the main worksheet so that the prices are in sync. Previously it would be calculated using the odds from the previous refresh as MyBets is updated before the prices.

I have also added a "Greened up P&L" column to show what the future P&L will be if the green up bets are placed.


Couple of questions please Gary.

1. With ref to "Greened up P&L" column to show what the future P&L...,, which column is this displayed? Can't seem to see it on the downloaded sheet.

2. Will Y column only display Y if the offset bet is fully matched, or will it still display Y for a partially matched bet?

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

Postby GaryRussell » Mon Sep 06, 2010 7:33 am

1. It's column AB with heading "Greened up P&L". Don't forget you need to tick "Log current bets" when linking to Excel.

2. I presume you have ticked "Offset bet matched flag" under additional columns. It only displays Y if the offset bet and original bet are fully matched.

The green up example assumes you don't have any additional columns displayed because it use columns Y to AB. If you are using column Y for the offset bet matched flag then you will need to adjust the output. You can change the following three lines in the calcGreenUp() sub in sheet1.
Code: Select all
Cells(r, 25).Value = betType
Cells(r, 26).Value = stake
Cells(r, 27).Value = odds

Change them to read as follows to change the output columns from "Y to AA" to "Z to AB" for example.
Code: Select all
Cells(r, 26).Value = betType
Cells(r, 27).Value = stake
Cells(r, 28).Value = odds


You will also need to move the "greened up P&L" column. Change the initMarket() sub to read as follows to change the output from column AB to AC.
Code: Select all
Private Sub initMarket()
    Dim r As Integer
    Set selecIndex = New Collection
    r = 5
    Do
        r = r + 1
    Loop Until Cells(r, 1) = ""
    Set plRange = Range(Cells(5, 24), Cells(r - 1, 24))
    Set levelPLRange = Range(Cells(5, 29), Cells(100, 29))
    levelPLRange = ""
    Set levelPLRange = Range(Cells(5, 29), Cells(r - 1, 29))
End Sub
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby danjuma » Mon Sep 06, 2010 3:48 pm

Ok Gary,

We must be looking at two different sheets.

The green up example assumes you don't have any additional columns displayed because it use columns Y to AB. If you are using column Y for the offset bet matched flag then you will need to adjust the output. You can change the following three lines in the calcGreenUp() sub in sheet1.
Code:

Cells(r, 25).Value = betType
Cells(r, 26).Value = stake
Cells(r, 27).Value = odds

Change them to read as follows to change the output columns from "Y to AA" to "Z to AB" for example.
Code:

Cells(r, 26).Value = betType
Cells(r, 27).Value = stake
Cells(r, 28).Value = odds


The above does not exist in sheet1.

What you have as part of a code in a module is

Code: Select all
trigRange(r, 25).Value = betType
        trigRange(r, 26).Value = stake
        trigRange(r, 27).Value = odds
        trigRange(r, 28).Value = backStake
        trigRange(r, 29).Value = layStake
    Next
End Sub


Which I already changed to the following to suit my sheet.

Code: Select all
trigRange(r, 28).Value = betType
        trigRange(r, 29).Value = stake
        trigRange(r, 30).Value = odds
        trigRange(r, 31).Value = backStake
        trigRange(r, 32).Value = layStake
    Next
End Sub


You will also need to move the "greened up P&L" column. Change the initMarket() sub to read as follows to change the output from column AB to AC.
Code:

Private Sub initMarket()
Dim r As Integer
Set selecIndex = New Collection
r = 5
Do
r = r + 1
Loop Until Cells(r, 1) = ""
Set plRange = Range(Cells(5, 24), Cells(r - 1, 24))
Set levelPLRange = Range(Cells(5, 29), Cells(100, 29))
levelPLRange = ""
Set levelPLRange = Range(Cells(5, 29), Cells(r - 1, 29))
End Sub


Can't find this above sub initMarket() any where.

The way my sheet is at present:
Y column displays offset bet matched
Z col = Offset bet references
AA col = Average last price matched
AB col = Green up Bet (displays either BACK or LAY)
AC col = stake
AD col = Odds
AE col = Matched Backs
AF col = Matched Lays


It's no big deal if the Green up P/L column is not there. I have done a column for it myself. I only raised the question because you mentioned it's there.

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

Postby GaryRussell » Mon Sep 06, 2010 3:53 pm

I assumed you had downloaded the spreadsheet from the following post.
http://gruss-software.co.uk/forum/viewtopic.php?t=4659
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby GaryRussell » Mon Sep 06, 2010 3:57 pm

Just realised you probably have an earlier version of this spreadsheet. If you download it again you will see the extra column.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby danjuma » Mon Sep 06, 2010 6:29 pm

GaryRussell wrote:I assumed you had downloaded the spreadsheet from the following post.
http://gruss-software.co.uk/forum/viewtopic.php?t=4659



Just realised you probably have an earlier version of this spreadsheet. If you download it again you will see the extra column.


The exact spreadsheet I have already got, and doesn't show it.
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby danjuma » Mon Sep 06, 2010 11:21 pm

Just something you might consider for the future Gary if you do have the time. :wink:

BACKR or LAYR works by canceling an unmatched bet, and thereby canceling the bet ref in column T to enable the placing of a new bet. Unfortunately, using these triggers does not cancel the bet ref of the unmatched offset bet in column Z, so a new bet can't be placed. So modifying the triggers to cancel all bet references and place the new bets, or new triggers that will do this will be desirable.

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

Postby GaryRussell » Tue Sep 07, 2010 7:41 am

danjuma wrote:
GaryRussell wrote:I assumed you had downloaded the spreadsheet from the following post.
http://gruss-software.co.uk/forum/viewtopic.php?t=4659



Just realised you probably have an earlier version of this spreadsheet. If you download it again you will see the extra column.


The exact spreadsheet I have already got, and doesn't show it.

GreenUp.xls or greenUp_OpposingOdds.xls?

GreenUp.xls definitely has that column. If you've downloaded it again and still cannot see it then you must have a cached version of an older sheet. You should close all browser windows before trying again.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby danjuma » Tue Sep 07, 2010 10:45 am

Hi Gary,

I have closed all browser windows and downloaded it again, still can't see it. Column AB displays 'matched bets'. Below is link to a screen shot:

http://flic.kr/p/8yTTfi

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

Postby GaryRussell » Tue Sep 07, 2010 11:22 am

I don't think you noticed in my reply that I said it is included in GreenUp.xls, not GreenUp_OpposingOdds.xls. I did not update that spreadsheet.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby danjuma » Tue Sep 07, 2010 12:46 pm

GaryRussell wrote:I don't think you noticed in my reply that I said it is included in GreenUp.xls, not GreenUp_OpposingOdds.xls. I did not update that spreadsheet.



Ah, Gotcha!
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm


Return to Discussion

Who is online

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