Help with a trigger

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

Moderator: 2020vision

Help with a trigger

Postby wine » Wed Sep 01, 2010 3:23 pm

Hi,

I've tried this and the trigger isn't working. I'm using it on soccer markets inplay.

=IF(AND($E$2="In Play",$F$2="",$R12>=3,$R12<=7),"BACK-TL5-IP","")

Any ideas where i've gone wrong?

When it is working, i'd like to repeat the trigger if the first one is matched, (both back and tick offset). If someone could show me how that's done, i'd be very grateful.

Thanks for your help.
wine
 
Posts: 16
Joined: Fri Feb 05, 2010 5:36 am

Postby U.F.O » Wed Sep 01, 2010 3:44 pm

Nothing wrong with your if statement,
providing the cell F2 is actually empty ie not 0

what info goes in cell F2 anyway ?
U.F.O
 
Posts: 228
Joined: Tue May 19, 2009 3:21 pm

Postby U.F.O » Wed Sep 01, 2010 4:17 pm

Oh I see now
Suspended is displayed in F2

that should work fine then,
if it doesn't it means something else other than a blank is being displayed in that cell when suspended is not, if that makes sence.
U.F.O
 
Posts: 228
Joined: Tue May 19, 2009 3:21 pm

Postby GaryRussell » Thu Sep 02, 2010 7:39 am

When you set up the Excel link tick "Offset bet matched flag" under "Additional columns". Column Y will contain "Y" when both bets are matched. You can than use a formula like the following.

Code: Select all
=if(Y5="Y","CLEAR",IF(AND($E$2="In Play",$F$2="",$R12>=3,$R12<=7),"BACK-TL5-IP","")
)
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby wine » Thu Sep 02, 2010 12:41 pm

GaryRussell wrote:When you set up the Excel link tick "Offset bet matched flag" under "Additional columns". Column Y will contain "Y" when both bets are matched. You can than use a formula like the following.

Code: Select all
=if(Y5="Y","CLEAR",IF(AND($E$2="In Play",$F$2="",$R12>=3,$R12<=7),"BACK-TL5-IP","")
)



Thanks for that formula. Does the first "if" have to be lower case?

Also, will the persistance be "keep" on these bets? If not, is there a way of doing that?

I'll try this out later, and let you know how it went.

Thank you once again.
wine
 
Posts: 16
Joined: Fri Feb 05, 2010 5:36 am

Postby GaryRussell » Thu Sep 02, 2010 1:37 pm

No, it doesn't matter if upper or lower case. "-IP" on the end of the trigger means that both back and offset lay bets will be keep bets.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby wine » Thu Sep 02, 2010 1:59 pm

Great. Thank you very much!
wine
 
Posts: 16
Joined: Fri Feb 05, 2010 5:36 am

Postby wine » Thu Sep 02, 2010 4:15 pm

Hi

It's not placing the bets. I've noticed that in column Y, it's displaying an N. Presumably it needs to display Y for a bet to be placed?

Best regards
wine
 
Posts: 16
Joined: Fri Feb 05, 2010 5:36 am

Postby GaryRussell » Thu Sep 02, 2010 4:22 pm

No. That won't be it. If it's not placing bets in the first place then there's possibly something wrong with your formula or your understanding of how it works. It will only display "Y" when the back bet has been placed and matched and then it will fire the CLEAR trigger which will clear column T so that the next bet can be triggered. A bet can only be triggered when column T is blank.

1) Is your trigger appearing in column Q and are columns R and S polulated?
2) If the answer to question 1 is yes then is column T blank so that it can place a bet?
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby wine » Mon Sep 13, 2010 4:03 pm

Hi
I'm replying on a different PC to the one I normally use, so I can't check at the mo.

I tried the trigger on the horse racing, and it worked, so I guess it's set up for horse racing. Are there different columns in the football? Also, i'd like to use the coupon markets in soccer inplay over/under 1.5, so there are lots of matches, would the trigger need to be different for that?

I just want to back then tick offset 5.

Also, can I specify between which minutes of the match to bet?

Thanks for your help.
wine
 
Posts: 16
Joined: Fri Feb 05, 2010 5:36 am

Postby GaryRussell » Tue Sep 14, 2010 8:38 am

It's not just horse racing. It shouldn't matter which market you are using it on. There is nothing different about football markets.

Which bets aren't being placed, the back bet or the lay bet?

BA does not know when a market turned in play so you would need to be linked to the market before it went in play and capture the time when "In Play" appears in cell E2. You will need to use VBA to capture this.

You could use the following code in sheet1 module to output the number of minutes since the market turned in play to cell [T1] and then use this in your trigger formula. It will only work if the market was not in play when you first linked it.

Code: Select all
Option Explicit

Dim inPlayTime As Date
Dim turnedInPlay As Boolean
Dim currentMarket As String

Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Columns.Count = 16 Then
       If [A1] <> currentMarket Then
           currentMarket = [A1]
           turnedInPlay = False
       End If
       If [E2] = "In Play" And Not turnedInPlay Then
           turnedInPlay = True
           inPlayTime = Now
       End If
       Application.EnableEvents = False
       If turnedInPlay Then [T1] = DateDiff("n", inPlayTime, Now) Else [T1] = 0
       Application.EnableEvents = True
    End If
End Sub
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK


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.