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.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.
Back at SP - EVERY Selection
- ShaunWhite
- Posts: 10570
- Joined: Sat Sep 03, 2016 3:42 am
- jamesedwards
- Posts: 4370
- Joined: Wed Nov 21, 2018 6:16 pm
I use it all the time. Some of my rulesfiles are rather long and complex. Every nanosecond counts in TPD land!ShaunWhite wrote: ↑Wed Mar 29, 2023 8:40 pmCan'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.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.

It also means you kick out only one SV calculation or one log entry rather than duplicating those too.
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'?ShaunWhite wrote: ↑Wed Mar 29, 2023 3:11 pmThe 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.
- ShaunWhite
- Posts: 10570
- Joined: Sat Sep 03, 2016 3:42 am
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.Anbell wrote: ↑Thu Mar 30, 2023 10:49 amI'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'?ShaunWhite wrote: ↑Wed Mar 29, 2023 3:11 pmThe 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.
For a different sort of interesting you could place before cancelShaunWhite wrote: ↑Thu Mar 30, 2023 1:16 pm3 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.

- ShaunWhite
- Posts: 10570
- Joined: Sat Sep 03, 2016 3:42 am
