LAYR

Please post any questions regarding the program here.

Moderator: 2020vision

LAYR

Postby Kentucky » Sat Apr 17, 2010 9:43 am

Hi All

Could someone explain how the LAYR trigger works?

What I want to do is use LAYR-F5

The way I see it is using the above trigger if the the bet is not matched after 5 seconds it will be cancelled and then resubmitted is this correct?

What happens if the bet is partially matched?

What happens if the bet is fully matched?

Thanks in advance
Kentucky
 
Posts: 22
Joined: Tue Aug 04, 2009 8:01 am

Re: LAYR

Postby 2020vision » Sat Apr 17, 2010 10:08 am

Hi Kentucky, hope this helps?

The way I see it is using the above trigger if the the bet is not matched after 5 seconds it will be cancelled and then resubmitted is this correct?

This will be CANCELLED after 5 seconds and not resubmitted - you need to clear the
bet ref cell afterwards to enable another bet.

If you use the BACKR or LAYR triggers the bet reference will have N as the suffix (e.g 3230882684N)
which prevents the software from looping endlessly replacing your bet.

What happens if the bet is partially matched?

If a bet is partially matched and the unmatched portion has not been cancelled then the
bet reference will have P as the suffix (eg. 3230882684P). If the remainder of the stake is
subsequently matched then the P will be removed from the bet ref. If the unmatched portion
is cancelled (either manually or using CANCEL trigger) then the P will be removed.

What happens if the bet is fully matched?

From the above I hope I am right in assuming that the bet ref will be suffixed with N?

Regards - Michael :)
User avatar
2020vision
Moderator
 
Posts: 605
Joined: Sun Feb 17, 2008 10:24 pm
Location: Nottingham

Postby GaryRussell » Sat Apr 17, 2010 10:15 am

LAYR is for replacing a bet at different stake and odds. It will cancel the unmatched bet and place it again. I provided it because Betfair do not allow you to update the odds and stake in one request. The new bet will have N appended to the reference to prevent it doing this over and over again.

What happens if the bet is partially matched?

LAYR will not trigger at all against partially matched bets.

What happens if the bet is fully matched?

Fill or kill applied to LAYR doesn't really have a use. LAYR is expecting to find a bet reference in column T, but this won't be there if the bet was fully cancelled.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby Kentucky » Sat Apr 17, 2010 11:46 am

I'm a little confused now

2020 says
This will be CANCELLED after 5 seconds and not resubmitted - you need to clear the
bet ref cell afterwards to enable another bet.

yet Gary says
It will cancel the unmatched bet and place it again. I provided it because Betfair do not allow you to update the odds and stake in one request. The new bet will have N appended to the reference to prevent it doing this over and over again.

I understand that if it is partially matched then nothing will happen
and if it is fully matched before the 5 second then nothing will happen

Its just the LAYR-F5 not being matched within 5 seconds

the stake will not change but the odds will change Will I have to clear the T column? If so what is there a TRIGGER I can use?

Thanks
Ken
Kentucky
 
Posts: 22
Joined: Tue Aug 04, 2009 8:01 am

Postby 2020vision » Sat Apr 17, 2010 2:52 pm

Hi Kentucky :)

hope this is ok to say but I actually opened BA and placed bets using LAYR-F5.
The bet is indeed placed and bet ref generated...

The result was after 5 seconds the bet ref showed CANCELLED and did not
change or remove itself. After about a minute I simply deleted CANCELLED
and guess what? Another bet was placed and that in turn went CANCELLED.

That's hands on experience to me, hope Gary is ok with me being so precise?
Hence I said if you want a repeat get CANCELLED removed. Seems to work
when used like this exactly the same as LAY-F5 - unless I have missed something?

Thanks again - Michael :)

P.S. Try it for yourself using £2 stake and very low unmatchable odds?
Looks to me like LAYR should be used to overwrite an already existing bet?
User avatar
2020vision
Moderator
 
Posts: 605
Joined: Sun Feb 17, 2008 10:24 pm
Location: Nottingham

Postby GaryRussell » Sat Apr 17, 2010 3:33 pm

2020vision wrote:Hi Kentucky :)

hope this is ok to say but I actually opened BA and placed bets using LAYR-F5.
The bet is indeed placed and bet ref generated...

The result was after 5 seconds the bet ref showed CANCELLED and did not
change or remove itself. After about a minute I simply deleted CANCELLED
and guess what? Another bet was placed and that in turn went CANCELLED.

That's hands on experience to me, hope Gary is ok with me being so precise?
Hence I said if you want a repeat get CANCELLED removed. Seems to work
when used like this exactly the same as LAY-F5 - unless I have missed something?

Thanks again - Michael :)

P.S. Try it for yourself using £2 stake and very low unmatchable odds?
Looks to me like LAYR should be used to overwrite an already existing bet?

I think that's the point. He thought LAYR-F5 would automatically allow another bet to be placed after fill or kill cancelled the bet. It is as you say no different to LAY-F5 when used like this.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby GaryRussell » Sat Apr 17, 2010 3:36 pm

Kentucky wrote:I'm a little confused now

2020 says
This will be CANCELLED after 5 seconds and not resubmitted - you need to clear the
bet ref cell afterwards to enable another bet.

yet Gary says
It will cancel the unmatched bet and place it again. I provided it because Betfair do not allow you to update the odds and stake in one request. The new bet will have N appended to the reference to prevent it doing this over and over again.

I understand that if it is partially matched then nothing will happen
and if it is fully matched before the 5 second then nothing will happen

Its just the LAYR-F5 not being matched within 5 seconds

the stake will not change but the odds will change Will I have to clear the T column? If so what is there a TRIGGER I can use?

Thanks
Ken

You can just use LAY-F5 and use the CLEAR trigger to clear column T to allow another bet to be placed. Your formula should check for "CANCELLED" appearing in column T and then use the CLEAR trigger.
Last edited by GaryRussell on Sat Apr 17, 2010 3:47 pm, edited 1 time in total.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby Kentucky » Sat Apr 17, 2010 5:18 pm

I think I get this now :idea:

If I Use LAYR-F5-CLEAR

will that work?

or should I include another formula

If (T5="CANCELLED","CLEAR","")

Thanks

Ken
Kentucky
 
Posts: 22
Joined: Tue Aug 04, 2009 8:01 am

Postby 2020vision » Sat Apr 17, 2010 8:53 pm

If I Use LAYR-F5-CLEAR

will that work?

or should I include another formula

If (T5="CANCELLED","CLEAR","")


Kentucky - neither of those triggers will work for you...

If you place the following trigger in Q5 then it will do what you seem to be asking?
It will place a lay bet at odds in column R for stakes in column S, if not filled
it will then be killed after 5 seconds, then it will be resubmitted - during which
time the odds available may have changed?

=IF(T5="CANCELLED","CLEAR",(IF(T5="","LAYR-F5")))

However in my tests it appeared to keep going around in a loop - is this what
you wanted? Also using standard LAY-F5 does exactly the same thing as LAYR-F5.
To gain more control over this you would have to add more conditions.

Hope this is informative and helps you to grasp things?

Ttfn - Michael :)

P.S. If more experienced users read this and want to join in, be my guest
because to be honest I am just starting to try and get my head around
this interesting aspect of using BA after many months of manual trading.
User avatar
2020vision
Moderator
 
Posts: 605
Joined: Sun Feb 17, 2008 10:24 pm
Location: Nottingham

Postby Kentucky » Sun Apr 18, 2010 10:35 am

Thanks for that will try it today

Kentucky
Kentucky
 
Posts: 22
Joined: Tue Aug 04, 2009 8:01 am

Postby 2020vision » Sun Apr 18, 2010 6:28 pm

Quick update Kentucky...

On reflection I noticed False kept appearing - trigger below
should correct this? Makes no difference how it works - just tidier.

=IF(T5="CANCELLED","CLEAR",(IF(T5="","LAYR-F5","")))

Ttfn - Michael :)
User avatar
2020vision
Moderator
 
Posts: 605
Joined: Sun Feb 17, 2008 10:24 pm
Location: Nottingham

Postby Kentucky » Mon Apr 19, 2010 10:19 am

Everything seems to be working fine now
Thanks for all your help

Kentucky
Kentucky
 
Posts: 22
Joined: Tue Aug 04, 2009 8:01 am

Postby eclipse » Mon Apr 26, 2010 4:35 pm

Will LAYR replace a stop loss bet that hasn't been matched?
User avatar
eclipse
 
Posts: 226
Joined: Mon Apr 16, 2007 10:54 am
Location: S. E. England

Postby GaryRussell » Mon Apr 26, 2010 5:12 pm

eclipse wrote:Will LAYR replace a stop loss bet that hasn't been matched?


No. It is equivalent to using CANCEL and then using LAY.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby Drunkenight » Wed Apr 28, 2010 7:57 pm

=IF(T5="CANCELLED","CLEAR",(IF(T5="","LAYR-F5","")))

This will clear the bet and place a new bet only if the bet is unmatched. Which I am sure is what Ken wants. I was just wondering if you know a good way of placing a new bet regardless of whether the bet is matched or not.
Drunkenight
 
Posts: 247
Joined: Thu Apr 02, 2009 1:38 pm

Next

Return to Help

Who is online

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