Help with a L2B horse bot with a Stop Loss 50% of opening Lay Liability bet.

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
Duderino
Posts: 22
Joined: Wed Dec 09, 2015 7:51 pm

Dallas wrote:
Sat Sep 29, 2018 7:49 pm
Duderino wrote:
Sat Sep 29, 2018 5:08 pm
Dallas wrote:
Sat Sep 22, 2018 6:52 pm
The back bet will trigger when it's at 50% of your lay price and place the bet at that price
You might want to change this to place it a few ticks lower in case the price crashes in
Dallas - for the Stop Loss condition 'The Last Traded Price...' I set the 'Adjustment' field to Minus 5 ticks - thinking that if for instance the Stop Loss was set to fire at 2.64 it would fire at 2.54 avoiding being left behind if the market came in - however in practice mode it fired at 2.64..???
For the stop loss, I assume you are using a regular back bet?
If so on the parameters tab make sure you place at 'Below best reverse market price'
Thanks - the problem I can't work out is using the Baf you created the stop loss is set as a Stored Value Price on the parameters tab so I can't change this to match 'Below best reverse market price' without losing the position of the Stop Loss...

I'm really struggling Dallas!!
Duderino
Posts: 22
Joined: Wed Dec 09, 2015 7:51 pm

[/quote]

Thanks - the problem I can't work out is using the Baf you created the stop loss is set as a Stored Value Price on the parameters tab so I can't change this to match 'Below best reverse market price' without losing the position of the Stop Loss...

I'm really struggling Dallas!!
[/quote]

Bad for to reply to one's own post...

Ahead of some testing I might have cracked it - I added a further stored value which deducted 10 ticks from the original stored value 'stop' - and have used this second stored value as the 'place at' parameter - so I think the Stop Loss will trigger at the first value, but place the back bet at the second value - does this look sound?
User avatar
Dallas
Posts: 22713
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

Duderino wrote:
Sun Sep 30, 2018 9:31 am


Thanks - the problem I can't work out is using the Baf you created the stop loss is set as a Stored Value Price on the parameters tab so I can't change this to match 'Below best reverse market price' without losing the position of the Stop Loss...

I'm really struggling Dallas!!
Duderino wrote:
Sun Sep 30, 2018 9:31 am
Bad for to reply to one's own post...

Ahead of some testing I might have cracked it - I added a further stored value which deducted 10 ticks from the original stored value 'stop' - and have used this second stored value as the 'place at' parameter - so I think the Stop Loss will trigger at the first value, but place the back bet at the second value - does this look sound?
If its still not working pop another message later today and i'll import the file again tomorrow when I open BA
I can't remember off the top of my head how exactly I created as it was a user request so was put together quickly and with no detailed description like I use in my own threads
Duderino
Posts: 22
Joined: Wed Dec 09, 2015 7:51 pm

Hey Dallas - the query is working seemingly perfectly thanks - still trying small stakes albeit in live mode - I've erring on the side of caution with deducting ticks from the Stop Loss - after all BA matches at the best price so if I'm heavy on the ticks all is well - if you see what I mean.

Thanks for all your help - much appreciated.
User avatar
Dallas
Posts: 22713
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

Duderino wrote:
Mon Oct 01, 2018 5:53 pm
Hey Dallas - the query is working seemingly perfectly thanks - still trying small stakes albeit in live mode - I've erring on the side of caution with deducting ticks from the Stop Loss - after all BA matches at the best price so if I'm heavy on the ticks all is well - if you see what I mean.

Thanks for all your help - much appreciated.
Thanks for the update and I'm glad to hear you have it working :)
karltrades
Posts: 13
Joined: Wed Jan 01, 2020 9:55 pm

Hey everyone. Particular thanks to Dallas for all of the content he has shared!

i was just wondering if anyone could look at this BAF and see why the offset bet hasn't been matched? I'll copy an example of the log below too...it seems to be taking my lay but not matching the offset...it's worked out thus far, but one day a horse will drift and then win (hopefully the stop works ok!)


29/01/2020 14:14:50: [G_Auto] : Store Value for Looks Like Murt: stop = 6 - 50% = 3
29/01/2020 14:14:50: [G_Auto] : £ 4.00 Lay bet placed on Looks Like Murt at 6. Fully matched at 6. Ref: 193109506753 ( Fill or kill bet with 5 seconds delay. Offsetting by 20 ticks with greening. )
29/01/2020 14:14:50: [G_Auto] : £ 2.40 Back bet placed on Looks Like Murt at 10. Entirely unmatched when it initially reached the market. Ref: 193109507150
29/01/2020 14:15:19: Guardian has detected that the market is suspended
29/01/2020 14:15:21: Guardian has detected that the market is in-play
29/01/2020 14:15:21: Guardian has detected that the market is now unsuspended
29/01/2020 14:21:39: Guardian has detected that the market is suspended

TIA,
Karl
You do not have the required permissions to view the files attached to this post.
Jukebox
Posts: 1576
Joined: Thu Sep 06, 2012 8:07 pm

Your initial bet goes in pre-off, the offset gets created as soon as its matched - but you haven't marked the offset to be kept in-play.
Add a rule to keep your unmatched back bet in play.
karltrades
Posts: 13
Joined: Wed Jan 01, 2020 9:55 pm

karltrades wrote:
Wed Jan 29, 2020 3:23 pm
Hey everyone. Particular thanks to Dallas for all of the content he has shared!

i was just wondering if anyone could look at this BAF and see why the offset bet hasn't been matched? I'll copy an example of the log below too...it seems to be taking my lay but not matching the offset...it's worked out thus far, but one day a horse will drift and then win (hopefully the stop works ok!)


29/01/2020 14:14:50: [G_Auto] : Store Value for Looks Like Murt: stop = 6 - 50% = 3
29/01/2020 14:14:50: [G_Auto] : £ 4.00 Lay bet placed on Looks Like Murt at 6. Fully matched at 6. Ref: 193109506753 ( Fill or kill bet with 5 seconds delay. Offsetting by 20 ticks with greening. )
29/01/2020 14:14:50: [G_Auto] : £ 2.40 Back bet placed on Looks Like Murt at 10. Entirely unmatched when it initially reached the market. Ref: 193109507150
29/01/2020 14:15:19: Guardian has detected that the market is suspended
29/01/2020 14:15:21: Guardian has detected that the market is in-play
29/01/2020 14:15:21: Guardian has detected that the market is now unsuspended
29/01/2020 14:21:39: Guardian has detected that the market is suspended

TIA,
Karl
i'm an idiot. Just hit me from nowhere, I've not set a rule to keep unmatched bets in play! :roll:
karltrades
Posts: 13
Joined: Wed Jan 01, 2020 9:55 pm

Jukebox wrote:
Wed Jan 29, 2020 3:30 pm
Your initial bet goes in pre-off, the offset gets created as soon as its matched - but you haven't marked the offset to be kept in-play.
Add a rule to keep your unmatched back bet in play.
Hi Jukebox - thanks for the reply. Didn't see this before I'd realised what was going on - I was overcomplicating the issue when it should have been staring me in the face! I added a 'keep all' rule to the file which seems to be working.
karltrades
Posts: 13
Joined: Wed Jan 01, 2020 9:55 pm

Dallas wrote:
Sat Sep 22, 2018 6:52 pm
I had a very similar file at hand so quickly modified it slightly to do what you have asked for, give it a go in practice mode until you know its working how you want.

The back bet will trigger when it's at 50% of your lay price and place the bet at that price
You might want to change this to place it a few ticks lower in case the price crashes in
Hi Dallas, thanks for all the great work you've done and shared around here!

I am using a slightly modified version of this file. An issue I've had is the offset being matched as well as the stop. E.g. today, my back offset was matched, but then the price must have come in because a couple of minutes later the stop was triggered, giving me scratch instead of a green.

I have tried the following to resolve the issue: cancel all unmatched bets rule, with number of matched bets condition =2 (so if the stop is hit and matched, the unmatched back offset should disappear). However, the 'stop' rule is set to trigger when the price trades below 50% of my lay price and is set to 'always armed.' Can I stop this rule if my back offset is matched?

Thanks again!
Karl
User avatar
Dallas
Posts: 22713
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

karltrades wrote:
Thu Jan 30, 2020 10:49 pm
Dallas wrote:
Sat Sep 22, 2018 6:52 pm
I had a very similar file at hand so quickly modified it slightly to do what you have asked for, give it a go in practice mode until you know its working how you want.

The back bet will trigger when it's at 50% of your lay price and place the bet at that price
You might want to change this to place it a few ticks lower in case the price crashes in
Hi Dallas, thanks for all the great work you've done and shared around here!

I am using a slightly modified version of this file. An issue I've had is the offset being matched as well as the stop. E.g. today, my back offset was matched, but then the price must have come in because a couple of minutes later the stop was triggered, giving me scratch instead of a green.

I have tried the following to resolve the issue: cancel all unmatched bets rule, with number of matched bets condition =2 (so if the stop is hit and matched, the unmatched back offset should disappear). However, the 'stop' rule is set to trigger when the price trades below 50% of my lay price and is set to 'always armed.' Can I stop this rule if my back offset is matched?

Thanks again!
Karl
Stop losses are attached to an offset bet so once one is matched the other is cancelled so you must have something else triggering causing whatever it is
karltrades
Posts: 13
Joined: Wed Jan 01, 2020 9:55 pm

Dallas wrote:
Fri Jan 31, 2020 9:48 am
karltrades wrote:
Thu Jan 30, 2020 10:49 pm
Dallas wrote:
Sat Sep 22, 2018 6:52 pm
I had a very similar file at hand so quickly modified it slightly to do what you have asked for, give it a go in practice mode until you know its working how you want.

The back bet will trigger when it's at 50% of your lay price and place the bet at that price
You might want to change this to place it a few ticks lower in case the price crashes in
Hi Dallas, thanks for all the great work you've done and shared around here!

I am using a slightly modified version of this file. An issue I've had is the offset being matched as well as the stop. E.g. today, my back offset was matched, but then the price must have come in because a couple of minutes later the stop was triggered, giving me scratch instead of a green.

I have tried the following to resolve the issue: cancel all unmatched bets rule, with number of matched bets condition =2 (so if the stop is hit and matched, the unmatched back offset should disappear). However, the 'stop' rule is set to trigger when the price trades below 50% of my lay price and is set to 'always armed.' Can I stop this rule if my back offset is matched?

Thanks again!
Karl
Stop losses are attached to an offset bet so once one is matched the other is cancelled so you must have something else triggering causing whatever it is
Hi Dallas, thanks for the reply. Sorry I've not been clear there, but I am using a signal to set a net stake back bet, if the horse reaches 50% of the lay price, similar to the file you shared further up this topic. What I'd like is for this rule, which is set to always armed, to not trigger IF my offset has already been matched. is this achievable? I'd rather do it this way than lock in a red which is what would happen if using the offset with greening and stop function. Thanks again!
iangrant230
Posts: 41
Joined: Mon Sep 04, 2017 7:27 pm

Ive made a bot to lay in 3 stages at certain percentages below the SP then once a lay has been taken offsets it with greening.

If it the bot matches the a back bet to green up how do i then kill the unmatched lay bets on that selection that are still in the market?

Also how would i apply a stop loss for a set percentage of total bank liability?

Thanks in advance
RogerTaurus
Posts: 14
Joined: Fri Nov 09, 2018 11:47 pm

How do i Add a rule to keep an unmatched back bet in play in automation i cant seem to find a rule in conditions
eatyourgreens
Posts: 243
Joined: Sun Feb 18, 2018 12:53 am

General Tab , Rule type, "keep all unmatched bets" . Time it to trigger after your bets have been placed.

goodluck
Have a nice day! :-)
Post Reply

Return to “Bet Angel - Automation”