Double green-up

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
User avatar
brimson25
Posts: 512
Joined: Sat Apr 08, 2017 11:42 am

I've been playing with lay to back automation for a while, but I'm not talented at this, to say the least, so still using testing using very small stakes (£10 by liability).

I have a rule to green up if the loss is less than £1. I have set this to trigger 3 times with a 3 second interval. This has worked fine, but there was a wild market yesterday, and the green up rules seems to have trigged twice, resulting in a £2 loss. I'd like this not to happen, and think it could probably be achieved by setting a signal to say - only do this once. But I want only to stop it working multiple times if it has completed greening, not merely triggered. That is, if the greening isn't complete, I want it to have another 2 goes.

Perhaps I just have to accept that this is a very weird thing to happen, and live with it. In the past I have found that solving one "problem" plunges you into another, which you hadn't realised was possible! And so I am loathe to knacker a rule which mostly works.

I have asked chatgpt but it sometimes seems to make things up? Perhaps I'm too ignorant to get it. I have reproduced the log below. I would appreciate any advice. Thank you!

7/14/2025 11:59:17: Guardian has detected that the market is suspended
7/14/2025 11:59:18: Guardian has detected that the market is now unsuspended
7/14/2025 14:19:25: Guardian has detected that the market is suspended
7/14/2025 14:19:26: Guardian has detected that the market is now unsuspended
7/14/2025 14:40:58: Guardian has detected that the market is suspended
7/14/2025 14:40:59: Guardian has detected that the market is in-play
7/14/2025 14:40:59: Guardian has detected that the market is now unsuspended
7/14/2025 14:41:01: [G_Auto 1] : £ 4.65 Lay bet placed on Eternal Sunshine at 3.15. Entirely unmatched when it initially reached the market. Ref: 394796929242 ( Fill or kill bet with 20 seconds delay. Offsetting by 15 ticks with greening. Stop at 12 ticks. Place stop at 15 ticks )
7/14/2025 14:41:01: [G_Auto 1] : £ 4.65 of unmatched bet (Ref:394796929242) was filled before remainder was killed.
7/14/2025 14:41:02: [G_Auto 1] : £ 3.76 Back bet placed on Eternal Sunshine at 3.9. Entirely unmatched when it initially reached the market. Ref: 394796931430
7/14/2025 14:41:05: Stop triggered. Modify bet 394796931430 from 3.76 @ 3.9 to 5.19 @ 2.76 New Ref: 394796934902 and Additional £ 1.43 bet placed as Ref: 394796933449
7/14/2025 14:41:05: Stop triggered. Modify bet 394796933449 from 1.43 @ 3.9 to 1.43 @ 2.76 New Ref: 394796934903
7/14/2025 14:41:06: [G_Auto 1] : Greened up Eternal Sunshine by Backing 5.68 at 2.58
7/14/2025 14:41:09: [G_Auto 1] : Greened up Eternal Sunshine by Laying 4.22 at 3.4
7/14/2025 14:41:55: Guardian has detected that the market is suspended
User avatar
Dallas
Posts: 23525
Joined: Sun Aug 09, 2015 10:57 pm

Using signals wouldn't help in this situation

Looking at your log your previous green up placed at 14:41:06 will have been in the process of being matched (with the matched bet info not yet returned to Bet Angel on your PC by Betfair) at exactly the time it triggered again.
It's usually quite rare this happens but is unavoidable 100% of the time.
User avatar
Euler
Posts: 26362
Joined: Wed Nov 10, 2010 1:39 pm

It's really tricky to hedge or put a stop loss in-play. It needs to be managed very carefully, especially in the latter stages of the race.

https://www.betangel.com/cash-out-confusion/
User avatar
brimson25
Posts: 512
Joined: Sat Apr 08, 2017 11:42 am

Thanks both. I'm pleased that I didn't go down a signal rabbithole!

In a situation like this, and I appreciate you can't offer strategy advice, would it be more prudent to close the trade without greening?

Or to simply decide: this happens very seldom, I have to live with it.

What attracted me to greening the idea that I had some sort of general idea about what my loss was capped at.
User avatar
brimson25
Posts: 512
Joined: Sat Apr 08, 2017 11:42 am

One more specific question - what is the difference between the green up rule, and the close trade (with greening) rule? Is the latter somehow simpler?

Thanks again.
User avatar
Dallas
Posts: 23525
Joined: Sun Aug 09, 2015 10:57 pm

Its just a rare situation that you need to factor in to any strategy, just the same as Betfair going down, or data being sent or received being delayed, or your internet going down completely or PC suddenly crashing at just the wrong moment


There is no difference to how the rules will perform in your situation
Green all is for when greening up trades on multiple selections at the same time
Close trade on selection with greening allows you to green up a single selection but leave trades on other selections open
If you only have a trade open on one runner it makes doesn't make any difference which you use
User avatar
brimson25
Posts: 512
Joined: Sat Apr 08, 2017 11:42 am

Thanks very much Dallas. I appreciate your time.
Post Reply

Return to “Bet Angel - Automation”