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
Double green-up
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.
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.
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/
https://www.betangel.com/cash-out-confusion/
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.
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.
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
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