Back at SP - EVERY Selection

Advanced automation available in Guardian - Chat with others and share files here.
User avatar
ShaunWhite
Posts: 10570
Joined: Sat Sep 03, 2016 3:42 am

jamesedwards wrote:
Wed Mar 29, 2023 5:50 pm
'Any' saves time. If you want X to happen when any selection achieves Y condition; if you choose 'every' then Guardian will check through every single selection when it could have just stopped after it hit the first one.
Can't see that saving more than a few nanoseconds tbh. And if your chosen selection is last to be checked its checked them all already. "Any n" might have been more descriptive where you can set n to how many you want, 99 meaning all? 'n' could even be an sv based on number of runners.
User avatar
jamesedwards
Posts: 4370
Joined: Wed Nov 21, 2018 6:16 pm

ShaunWhite wrote:
Wed Mar 29, 2023 8:40 pm
jamesedwards wrote:
Wed Mar 29, 2023 5:50 pm
'Any' saves time. If you want X to happen when any selection achieves Y condition; if you choose 'every' then Guardian will check through every single selection when it could have just stopped after it hit the first one.
Can't see that saving more than a few nanoseconds tbh. And if your chosen selection is last to be checked its checked them all already. "Any n" might have been more descriptive where you can set n to how many you want, 99 meaning all? 'n' could even be an sv based on number of runners.
I use it all the time. Some of my rulesfiles are rather long and complex. Every nanosecond counts in TPD land! ;)

It also means you kick out only one SV calculation or one log entry rather than duplicating those too.
Anbell
Posts: 2407
Joined: Fri Apr 05, 2019 2:31 am

ShaunWhite wrote:
Wed Mar 29, 2023 3:11 pm
Anbell wrote:
Sun Apr 17, 2022 10:33 am
Another thing that would be handy for me is if we could use SP Limit to back to win a fixed amount. I know that is difficult because we dont have a price (yet) but if we could back to win say $100 at the current price we'd get close enough.
The way I handle bets with a stake that varies (sp or sp hedging dependant on exposure usually) can be simulated in BA I think. Ie store the price, stake and exposure when you place the bet, if the price moves by a given amount, or your exposure changes, compare that with your existing bet, and if the stake has changed by say, a quid or the side has, then cancel/replace the bet. You need thresholds on the change otherwise it amends it too often. Especially true near the start because if they go off mid cancek/replace you can get caught with your trousers down.

Basically keep cancelling/replacing as the price moves to adjust your stake.
I'm aware that you're posting to a year-old thread here, but do you have success recalibrating your book this way? How frequently do you get caught with your pants down when the race begins between 'cancel old bets' and 'place new bets'?
User avatar
ShaunWhite
Posts: 10570
Joined: Sat Sep 03, 2016 3:42 am

Anbell wrote:
Thu Mar 30, 2023 10:49 am
ShaunWhite wrote:
Wed Mar 29, 2023 3:11 pm
Anbell wrote:
Sun Apr 17, 2022 10:33 am
Another thing that would be handy for me is if we could use SP Limit to back to win a fixed amount. I know that is difficult because we dont have a price (yet) but if we could back to win say $100 at the current price we'd get close enough.
The way I handle bets with a stake that varies (sp or sp hedging dependant on exposure usually) can be simulated in BA I think. Ie store the price, stake and exposure when you place the bet, if the price moves by a given amount, or your exposure changes, compare that with your existing bet, and if the stake has changed by say, a quid or the side has, then cancel/replace the bet. You need thresholds on the change otherwise it amends it too often. Especially true near the start because if they go off mid cancek/replace you can get caught with your trousers down.

Basically keep cancelling/replacing as the price moves to adjust your stake.
I'm aware that you're posting to a year-old thread here, but do you have success recalibrating your book this way? How frequently do you get caught with your pants down when the race begins between 'cancel old bets' and 'place new bets'?
3 or 4 a day out of about 800. Half a percent-ish but I do trade beyond scheduled start right through the actual start. I could cure it by wrapping them up into a single request but haven't got round to it. They're a wash over the long term and the big ups and downs keep it interesting.
foxwood
Posts: 434
Joined: Mon Jul 23, 2012 2:54 pm

ShaunWhite wrote:
Thu Mar 30, 2023 1:16 pm
Anbell wrote:
Thu Mar 30, 2023 10:49 am
... How frequently do you get caught with your pants down when the race begins between 'cancel old bets' and 'place new bets'?
3 or 4 a day out of about 800. Half a percent-ish but I do trade beyond scheduled start right through the actual start. I could cure it by wrapping them up into a single request but haven't got round to it. They're a wash over the long term and the big ups and downs keep it interesting.
For a different sort of interesting you could place before cancel :)
User avatar
ShaunWhite
Posts: 10570
Joined: Sat Sep 03, 2016 3:42 am

foxwood wrote:
Thu Mar 30, 2023 6:22 pm
For a different sort of interesting you could place before cancel :)
:D been there got the t-shirt. The saving grace is that there's so many so it's never too long before it levels out. The extra commision it generates doesn't do any harm either. This ammending stakes isn't foolproof because sp is rarely spot on your best guess but it's no bad.
Post Reply

Return to “Bet Angel - Automation”