Close Trade If In Loss Over 10 Secs Guardian Automation Bot

Post Reply
User avatar
Dallas
Posts: 22671
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

Digby3192 wrote:
Sat Jun 12, 2021 4:34 pm
Dallas wrote:
Sat Jun 12, 2021 3:43 pm
Digby3192 wrote:
Sat Jun 12, 2021 5:26 am


I'm not sure if the exit strategy worked as it should, have copied from the log.

12/06/2021 14:19:55: [G_Auto 1] : Store Value for 12. Toryjoy: exit = 12.5 - 50% = 6.2
12/06/2021 14:19:55: [G_Auto 1] : $ 5.00 Back bet placed on 12. Toryjoy at 12. Entirely unmatched when it initially reached the market. Ref: 235671085364
12/06/2021 14:20:39: Guardian has detected that the market is in-play
12/06/2021 14:20:39: Guardian has detected that the market is suspended
12/06/2021 14:20:40: Guardian has detected that the market is now unsuspended
12/06/2021 14:22:06: [G_Auto 1] : Store Value for 12. Toryjoy: new exit = 0 + 10 ticks = 1.11
12/06/2021 14:22:06: [G_Auto 1] : Store Value for 12. Toryjoy: new exit = 0 + 10 ticks = 1.11
12/06/2021 14:22:07: [G_Auto 1] : Store Value for 12. Toryjoy: new exit = 0 + 10 ticks = 1.11
12/06/2021 14:22:08: [G_Auto 1] : Store Value for 12. Toryjoy: new exit = 0 + 10 ticks = 1.11
12/06/2021 14:22:09: [G_Auto 1] : Store Value for 12. Toryjoy: new exit = 0 + 10 ticks = 1.11
12/06/2021 14:22:10: [G_Auto 1] : Store Value for 12. Toryjoy: new exit = 0 + 10 ticks = 1.11
12/06/2021 14:22:11: [G_Auto 1] : Store Value for 12. Toryjoy: new exit = 0 + 10 ticks = 1.11
12/06/2021 14:22:12: [G_Auto 1] : Store Value for 12. Toryjoy: new exit = 0 + 10 ticks = 1.11
12/06/2021 14:22:14: [G_Auto 1] : Store Value for 12. Toryjoy: new exit = 0 + 10 ticks = 1.11
12/06/2021 14:22:15: [G_Auto 1] : Store Value for 12. Toryjoy: new exit = 0 + 10 ticks = 1.11
12/06/2021 14:22:15: Guardian has detected that the market is suspended
What market was it used on?
That looks like something hit 1.01 10 secs before the end of the race and it never changed?
Looking at the time of your post I'm assuming it was a Aus race?

Maybe try it on a UK race if you can, Aus in-play markets are very gap and illiquid compared to UK races so it may need additional changes for these types of markets to take into account the gaps etc

BTW, i've just noticed you'd posted the same messages in two topics so I've merged them both together here to make it less confusing
Correct, it was on an Australian race as I am from Australia. The volume of the race was $539864 as was a main Saturday arvo meeting. I will try on a UK meet and post whether I encounter the same problem, however in the meantime, how should I adjust the rule for a typical Australian market?
TBH i don't trade in-play Aus horse racing I just know the markets are gappy compared to the UK races, so i'd need to watch a few to see exactly how much, if there's much difference between different Aus races and what impact that would then have on these rules combined to give a definitive answer.
Roobetter
Posts: 43
Joined: Wed Jun 23, 2021 12:48 pm

Can someone please tell me when this greensup for a loss it puts on multiple positions and actually creates a liability on the horse it traded out of it (if it wins).
I have Green Up Selection - Close Trade on Selection with Greening - Allow rule to trigger 3 times/1 second re-arm.
User avatar
Dallas
Posts: 22671
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

Roobetter wrote:
Fri Sep 10, 2021 4:42 am
Can someone please tell me when this greensup for a loss it puts on multiple positions and actually creates a liability on the horse it traded out of it (if it wins).
I have Green Up Selection - Close Trade on Selection with Greening - Allow rule to trigger 3 times/1 second re-arm.
If you are betting in-play you need to use a re-arm time longer than the in-play bet delay otherwise you'll be firing in further green up bets before the first has had chance to reach the market and be matched
FrankArch
Posts: 158
Joined: Mon Nov 01, 2021 10:05 am

Hi Dallas,

Would this work if I had multiple selections? IE Dutching the first 3 favs. Would I need it to change it to EVERY SELECTION instead of ANY SELECTION. Would it then look at the profit/loss globally across all 3 selections or look at them independantly? Obviously I can find out myself with trial and error, but would be grateful if you have the time to reply and advise.
User avatar
Dallas
Posts: 22671
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

FrankArch wrote:
Tue Jan 04, 2022 11:41 am
Hi Dallas,

Would this work if I had multiple selections? IE Dutching the first 3 favs. Would I need it to change it to EVERY SELECTION instead of ANY SELECTION. Would it then look at the profit/loss globally across all 3 selections or look at them independantly? Obviously I can find out myself with trial and error, but would be grateful if you have the time to reply and advise.
You'd need a set of the three rules for each selection you intend it to trigger on, ie, they'll need to be able to set/reset independently to each other and remain locked to that selection

But before you do that you'll first need to make some changes, on the signal loss and reset in profit rules change the 'Green all condition' to a 'close trade profit condition' (with greening ticked)

Then apply the original three rules to the fav
next use the icon with two green arrows to duplicate each of those and apply the next three to the 2nd fav
then do that again for the 3rd fav

Finally because the favs order will continually change you need to ensure they are locked, to do this add a 'Fix order of market selection' and arm it to trigger at the same time as your back bet rules and most importantly put this fix order rule at the top of your rules so it triggers 1st before any bets get placed.
Jimbo95
Posts: 26
Joined: Thu Sep 03, 2020 10:27 am

Just ran this for the first time today on a lay bot. It didn't kick in at the £5 loss as expected. Can anyone suggest what went wrong? Thanks in advance.
5/9/2022 13:39:36: [G_Auto 1] : £ 0.95 Lay bet placed on Bonita B at 11.5. Fully matched at 11.5. Ref: 267768222779
5/9/2022 13:41:12: Guardian has detected that the market is suspended
5/9/2022 13:41:13: Guardian has detected that the market is in-play
5/9/2022 13:41:13: Guardian has detected that the market is now unsuspended
5/9/2022 13:42:19: [G_Auto 4] : Automation Signal for market: loss = 1
5/9/2022 13:42:19: [G_Auto 4] : Automation Signal for market: loss - Cleared
5/9/2022 13:42:20: [G_Auto 4] : Automation Signal for market: loss = 1
5/9/2022 13:42:21: [G_Auto 4] : Automation Signal for market: loss = 2
5/9/2022 13:42:22: [G_Auto 4] : Automation Signal for market: loss = 3
5/9/2022 13:42:23: [G_Auto 4] : Automation Signal for market: loss = 4
5/9/2022 13:42:25: [G_Auto 4] : Automation Signal for market: loss = 5
5/9/2022 13:42:26: [G_Auto 4] : Automation Signal for market: loss = 6
5/9/2022 13:42:26: Guardian has detected that the market is suspended
User avatar
Dallas
Posts: 22671
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

Jimbo95 wrote:
Mon May 09, 2022 1:53 pm
Just ran this for the first time today on a lay bot. It didn't kick in at the £5 loss as expected. Can anyone suggest what went wrong? Thanks in advance.
5/9/2022 13:39:36: [G_Auto 1] : £ 0.95 Lay bet placed on Bonita B at 11.5. Fully matched at 11.5. Ref: 267768222779
5/9/2022 13:41:12: Guardian has detected that the market is suspended
5/9/2022 13:41:13: Guardian has detected that the market is in-play
5/9/2022 13:41:13: Guardian has detected that the market is now unsuspended
5/9/2022 13:42:19: [G_Auto 4] : Automation Signal for market: loss = 1
5/9/2022 13:42:19: [G_Auto 4] : Automation Signal for market: loss - Cleared
5/9/2022 13:42:20: [G_Auto 4] : Automation Signal for market: loss = 1
5/9/2022 13:42:21: [G_Auto 4] : Automation Signal for market: loss = 2
5/9/2022 13:42:22: [G_Auto 4] : Automation Signal for market: loss = 3
5/9/2022 13:42:23: [G_Auto 4] : Automation Signal for market: loss = 4
5/9/2022 13:42:25: [G_Auto 4] : Automation Signal for market: loss = 5
5/9/2022 13:42:26: [G_Auto 4] : Automation Signal for market: loss = 6
5/9/2022 13:42:26: Guardian has detected that the market is suspended
You weren't in a loss for long enough, it got to 6secs then the race ended
Jimbo95
Posts: 26
Joined: Thu Sep 03, 2020 10:27 am

Dallas,
Thanks might adjust to 6 secs
Radio Rod
Posts: 15
Joined: Sun Aug 15, 2021 10:16 pm

Sorry if I've missed this somewhere else, but is it possible to set a signal if a Stop is triggered? I'm placing a Lay bet with Offset and Stop.

I can see it trigger in the log file e.g.

30/08/2022 18:51:36: [G_Auto 1] : £ 0.03 Back bet placed on Royal Prospect at 26. Entirely unmatched when it initially reached the market. Ref: 278948397454
30/08/2022 18:52:30: Stop triggered. Modify bet 278948397454 from 0.03 @ 26 to 0.21 @ 3.3 New Ref: 278948504021 and Additional £ 0.18 bet placed as Ref: 278948501523

30/08/2022 18:52:30: Stop triggered. Modify bet 278948501523 from 0.18 @ 26 to 0.18 @ 3.3 New Ref: 278948504022
30/08/2022 18:52:59: Guardian has detected that the market is suspended

Haven't yet found out how to set a Signal for it.

Thanks
Rod
User avatar
Dallas
Posts: 22671
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

Radio Rod wrote:
Tue Aug 30, 2022 7:14 pm
Sorry if I've missed this somewhere else, but is it possible to set a signal if a Stop is triggered? I'm placing a Lay bet with Offset and Stop.

I can see it trigger in the log file e.g.

30/08/2022 18:51:36: [G_Auto 1] : £ 0.03 Back bet placed on Royal Prospect at 26. Entirely unmatched when it initially reached the market. Ref: 278948397454
30/08/2022 18:52:30: Stop triggered. Modify bet 278948397454 from 0.03 @ 26 to 0.21 @ 3.3 New Ref: 278948504021 and Additional £ 0.18 bet placed as Ref: 278948501523

30/08/2022 18:52:30: Stop triggered. Modify bet 278948501523 from 0.18 @ 26 to 0.18 @ 3.3 New Ref: 278948504022
30/08/2022 18:52:59: Guardian has detected that the market is suspended

Haven't yet found out how to set a Signal for it.

Thanks
Rod
A stop bet is just a regular back/lay placed by the software if the price moves against your opening trade

So you'd just use a 'Set/Modify Signal' rule and set your signal as required on the signal tab
But then include a condition/s to identify when that stop would of been triggered

For example if your opening bet was always a back bet in that file you could use the following conditions
Number of unmatched bets condition on selection is equal to 0
Matched Bets Amounts Condition
Total amount of your lay bets
is greater than £0

The only way those two conditions could be both satisfied is if your stop bet have been triggered and then matched
Radio Rod
Posts: 15
Joined: Sun Aug 15, 2021 10:16 pm

Thanks for the reply Dallas, that makes sense. I put it in this thread as it is pertinent to my current strategy. I lay an outsider at market price with a high offset back bet about 40 ticks above the lay bet and a stop around 40 ticks below the lay bet. This has worked pretty well, but as you know, if the horse is having a good race the odds will come in and trigger the stop loss, but it can still go on to lose. I can accept a small loss if the horse goes on to win, but it’s annoying to have a loss if the horse does not win! If the odds start to drift out again after the stop has been triggered I want to place another lay bet to turn the loss back into a profit (or a smaller loss!).

Hence I wanted to know when the stop had been triggered and then wait a few seconds to see where the odds had got to, i.e. have they gone back up above the stop level so it’s unlikely to win and reasonably safe to lay it again.

If you’ve done a strategy like this I’d be grateful if you could point me to it. If not, I’d be grateful if you could help as I’ve just bought into BA Pro having used the Betdaq version for a while, and these signal features are new to me.

Many thanks
Rod
User avatar
Dallas
Posts: 22671
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

Radio Rod wrote:
Wed Aug 31, 2022 8:10 am
Thanks for the reply Dallas, that makes sense. I put it in this thread as it is pertinent to my current strategy. I lay an outsider at market price with a high offset back bet about 40 ticks above the lay bet and a stop around 40 ticks below the lay bet. This has worked pretty well, but as you know, if the horse is having a good race the odds will come in and trigger the stop loss, but it can still go on to lose. I can accept a small loss if the horse goes on to win, but it’s annoying to have a loss if the horse does not win! If the odds start to drift out again after the stop has been triggered I want to place another lay bet to turn the loss back into a profit (or a smaller loss!).

Hence I wanted to know when the stop had been triggered and then wait a few seconds to see where the odds had got to, i.e. have they gone back up above the stop level so it’s unlikely to win and reasonably safe to lay it again.

If you’ve done a strategy like this I’d be grateful if you could point me to it. If not, I’d be grateful if you could help as I’ve just bought into BA Pro having used the Betdaq version for a while, and these signal features are new to me.

Many thanks
Rod
For what you are asking for I'd stick to something like this 'Close if in loss X seconds' as it cuts out a lot of the short term noise and volatility in-running, yes there will be times even after being in a loss for X seconds a horse may then go on to lose (and you'd miss out on some profit), but re-laying every time it drifts out again after being stopped out could end up very costly

Especially if the stop keeps getting triggered by a quick spike down followed by a almost instant bounce back
Radio Rod
Posts: 15
Joined: Sun Aug 15, 2021 10:16 pm

Wise words, thanks Dallas.

I have moved away from the BA offset bet and created my own trigger through automation. This limits my loss if the horse goes on to win, and places one lay bet after X seconds if the odds are above the trigger. This lay bet gives a break even race or very small profit if the horse goes on to lose and only a slightly greater loss if the horse goes on to win. Tried it on all uk races for the last few days on very low stakes and I’ve been in profit every day. Early days and some tweaking to do but it looks promising so far.

Agree with you on market volatility, liquidity is a big issue in the last two thirds of a race causing massive price swings and false triggers as the market is mopped up. Your method should help me smooth this out. Thank you.
User avatar
ShaunWhite
Posts: 9731
Joined: Sat Sep 03, 2016 3:42 am

Radio Rod wrote:
Sun Sep 04, 2022 2:23 pm
Agree with you on market volatility, liquidity is a big issue in the last two thirds of a race causing massive price swings and false triggers as the market is mopped up. Your method should help me smooth this out. Thank you.
Remember you're poacher turned gamekeeper now. Massive swings and volatility are your opportunity to make money from punters and especially people keen to 'green up' or stop losses. Every situation you're finding difficult is one you should turn to your advantage because basically wherever people are losing, you want to be the one they're losing too.

It's a mindset thing, people are so used to being the customer/punter they forget to stand on the other side of the counter, and sometimes can't even imagine what advantage that gives them. Making money from gambling is bloody difficult, making money from gamblers isn't half as hard.
Radio Rod
Posts: 15
Joined: Sun Aug 15, 2021 10:16 pm

Interesting insight on the flip Shaun. I find that at the business end of a race when the losing horses are starting to fade away the lay odds rise steadily but the back odds can vary hugely from a couple of ticks away from the lay odds to suddenly 10-20 ticks away from the lay and then immediately back again. This can be enough to trigger my stop prematurely, where it looks as if it shouldn’t have triggered at all.

It’s making my head hurt figuring ways around this so maybe I need a new approach.
Post Reply

Return to “Bet Angel Automation - General”