Adding further close trade in Lay to Back automation

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
PeteSw62
Posts: 37
Joined: Thu Mar 30, 2023 9:13 pm

Hi
Today I was playing with the Lay to Back automation as described in Peter's video.

Using data from Informracing's free day, I made several choices across the Doncaster races. I was pleased with most of the results. Only one failed. Luckily though I was in practice mode otherwise one horse would have wiped out the profits for several weeks of playing and matched betting.

So I'm wondering if I can add something to the automation that would close the trade should the shorten rather than lengthen?

This is what happened, the horse, (There's The Door) was troublesome in the stalls, the odds lengthened before the race was off, the lay went in at 14.5, but then the odds never went 10 clicks above but continued to drop and the horse finally won the race.
It would seem like there needs to be some check after the initial lay to see whether the odds are dropping and if so place a bet at the best market price.
Is that possible? If so can someone please point me in the right direction to implement it?
Many thanks.
PeteSw62
Posts: 37
Joined: Thu Mar 30, 2023 9:13 pm

So I have had a further play after reading about signals.
I've attached what I think is working, but would appreciate any feedback.

I think I've set my automation to:
  • Initialise signals - a signal called oddsShortneing to be bot set
  • Place a lay bet with offset - the same as original automation
  • Check for odds shortening using using Historic Relative Odds condition and set oddsShortneing to 1 if they are
  • Place a 3rd best market price back bet if oddsShortning is set to 1
I'm not certain about the times though?

I also wonder whether the whole things needs a check on the lay odds so it does not try and lay a bet with more liability than I have available or am willing to lose?

I'm trying to test it now, but obviously needs the right conditions.
Thank you
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

The easiest way would be to green up when you specified loss amount is reached, that just needs one addition rule and condition as detailed here
viewtopic.php?f=47&t=11488

But if you did want to green up after a number of ticks the easiest way to do that is to go onto the Stored value tab of your lay rule
and store the lay price
with an adjustment of
minus 'X' ticks (and enter the number of ticks loss you want it to trigger the stop bet at)

Then instead of using a 'Green all selections' rule, use a 'Close Trade on selection with Greening' rule applied to 'ANY' selection
and add the following two conditions
Number of place bet triggers condition on selection is greater than 0

Stored value condition
Selections back price
is less than
a stored value named (whatever you called it)

and that will do it
PeteSw62
Posts: 37
Joined: Thu Mar 30, 2023 9:13 pm

Dallas wrote:
Mon Apr 03, 2023 12:07 pm
The easiest way would be to green up when you specified loss amount is reached, that just needs one addition rule and condition as detailed here
viewtopic.php?f=47&t=11488

But if you did want to green up after a number of ticks the easiest way to do that is to go onto the Stored value tab of your lay rule
and store the lay price
with an adjustment of
minus 'X' ticks (and enter the number of ticks loss you want it to trigger the stop bet at)

Then instead of using a 'Green all selections' rule, use a 'Close Trade on selection with Greening' rule applied to 'ANY' selection
and add the following two conditions
Number of place bet triggers condition on selection is greater than 0

Stored value condition
Selections back price
is less than
a stored value named (whatever you called it)

and that will do it
Much appreciated thank you. I will give that a go.
PeteSw62
Posts: 37
Joined: Thu Mar 30, 2023 9:13 pm

Hiya
I think it is working, but I just wanted to check my understanding.

So I deleted all the rules around using signals and just added one new 'Green All Selections' rule that had the condition:
Green All Profit Condition, is less than, an entered amount, and then -3.

I've set that last rule to trigger up to 5 times and wait 3 seconds before rearming as suggested.

I watched it on two races and it seems to work.

Am I correct in thinking it is looking at the greened p/l and if that drops to -3 it triggers? The individual horse's p/l dropped lower than -£3 several times, but then when I looked at the greened value I could see it seemed to trigger when it looked like it spiked below -£3.

I just want to double check as I find often with any kind of programming it is possible to think I understand what I have written only to find sometime later that I was not quite right.
Thank you again.
Pete
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

PeteSw62 wrote:
Mon Apr 03, 2023 2:48 pm
Hiya
I think it is working, but I just wanted to check my understanding.

So I deleted all the rules around using signals and just added one new 'Green All Selections' rule that had the condition:
Green All Profit Condition, is less than, an entered amount, and then -3.

I've set that last rule to trigger up to 5 times and wait 3 seconds before rearming as suggested.

I watched it on two races and it seems to work.

Am I correct in thinking it is looking at the greened p/l and if that drops to -3 it triggers? The individual horse's p/l dropped lower than -£3 several times, but then when I looked at the greened value I could see it seemed to trigger when it looked like it spiked below -£3.

I just want to double check as I find often with any kind of programming it is possible to think I understand what I have written only to find sometime later that I was not quite right.
Thank you again.
Pete
Yes that's it, you've set it up perfectly and understood it correctly

As soon as your P/L goes past -£3 (even for a fraction of a second) the rule will trigger

You can be more creative and tell it to only trigger if the loss has been more than -£3 for several consecutive seconds, so will eliminate it triggering if its just short term spike - but equally it could be well into a loss before it triggers if its really running well and steaming in
There's and example file here which does that
viewtopic.php?f=56&t=11954

You can just use the copy button and copy all the rules into your file then set the time and loss amount to whatever suits
viewtopic.php?f=37&t=13568
PeteSw62
Posts: 37
Joined: Thu Mar 30, 2023 9:13 pm

Dallas wrote:
Mon Apr 03, 2023 5:10 pm
PeteSw62 wrote:
Mon Apr 03, 2023 2:48 pm
Hiya
I think it is working, but I just wanted to check my understanding.

So I deleted all the rules around using signals and just added one new 'Green All Selections' rule that had the condition:
Green All Profit Condition, is less than, an entered amount, and then -3.

I've set that last rule to trigger up to 5 times and wait 3 seconds before rearming as suggested.

I watched it on two races and it seems to work.

Am I correct in thinking it is looking at the greened p/l and if that drops to -3 it triggers? The individual horse's p/l dropped lower than -£3 several times, but then when I looked at the greened value I could see it seemed to trigger when it looked like it spiked below -£3.

I just want to double check as I find often with any kind of programming it is possible to think I understand what I have written only to find sometime later that I was not quite right.
Thank you again.
Pete
Yes that's it, you've set it up perfectly and understood it correctly

As soon as your P/L goes past -£3 (even for a fraction of a second) the rule will trigger

You can be more creative and tell it to only trigger if the loss has been more than -£3 for several consecutive seconds, so will eliminate it triggering if its just short term spike - but equally it could be well into a loss before it triggers if its really running well and steaming in
There's and example file here which does that
viewtopic.php?f=56&t=11954

You can just use the copy button and copy all the rules into your file then set the time and loss amount to whatever suits
viewtopic.php?f=37&t=13568
Oh that would be great. On testing today there were several times it triggered on what seemed to be a fraction of a seconds drop. I'll have to see how to do that tomorrow. Thank you.
Post Reply

Return to “Bet Angel - Automation”