intergrating "Greening up" spreadsheet in mine.

Please post any questions regarding the program here.

Moderator: 2020vision

intergrating "Greening up" spreadsheet in mine.

Postby sjaak1943 » Sat Nov 17, 2012 10:56 pm

My spreadsheet code has only declarations in VBA like this:

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


Where do i put them in the code from Gary's worksheet?

My trigger is this one:
=IF(OR(T5="CANCELLED";AND(X5>0;W5>0));"CLEAR";IF(AND(start="YES";AF5>=tick_gap;AC5>=rank;R5<>"";X5>=0);"LAY-TL" &tick_offset&"-F"&fill_kill&"-SL1";""))
Gary;s trigger is:
=IF($T$2="Y";Y5;"") and must be part of mine.

Who can help, tried a lot with no effort until now?

Sjaak
sjaak1943
 
Posts: 174
Joined: Tue Oct 31, 2006 9:50 pm
Location: Schagen, the Netherlands

Postby alrodopial » Sun Nov 18, 2012 6:01 pm

I assume in AF5, something like this

=TickDiff(F5,H5)
or
=getPreOdds(F5)
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm

Postby sjaak1943 » Mon Nov 19, 2012 8:53 am

It's not what i mean. I want to use my own workbook "trading Gaps" in conjunction with Gary's workbook "Greening Up".
sjaak1943
 
Posts: 174
Joined: Tue Oct 31, 2006 9:50 pm
Location: Schagen, the Netherlands

Postby sjaak1943 » Mon Nov 19, 2012 3:51 pm

Problem solved thanks to Dave.
sjaak1943
 
Posts: 174
Joined: Tue Oct 31, 2006 9:50 pm
Location: Schagen, the Netherlands


Return to Help

Who is online

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