Howdy - I have an automation where I place a bet on certain horses, once per horse, using book%.
Relevant Conditions:
1 unmatched bets on selection = 0
2. matched bets on selection = 0
3 Number of place bet triggers on selection = 0 (thanks JukeBox!)
I'm streaming at 200 ms. Restrict refresh at 60 secs.
I want to place the bets as late as possible, and I want to TAKE SP ALL if bets not matched.
I've got the Place Bets to trigger 24 times, rearming 0.1sec, and I've got TAKE SP set to trigger 24 times every second.
The problem is that if Place Bets hasnt finished the 24 triggers before the first TAKE SP trigger, then Place Bets doesnt finish the cycle. It appears (?) that TAKE SP is triggering one of the above conditions, even though no bets have been placed on the particular horse.
Of course, I could just start the Place Bets thing earlier, or the TAKE SP thing later, but that doesnt quite suit!
TLDR: Can I have overlapping Place Bet / TAKE SP timeframes?
Thanks.
TAKE SP ALL interfering with Place bets?
Anbell, 0.1sec triggers but only 200ms (0.2sec) refresh - I think you need to slow one down or speed the other up to give its best chance - I generally ensure refresh rate is more granular than the trigger requirements in the file.Anbell wrote: ↑Thu Apr 02, 2020 7:56 amHowdy - I have an automation where I place a bet on certain horses, once per horse, using book%.
Relevant Conditions:
1 unmatched bets on selection = 0
2. matched bets on selection = 0
3 Number of place bet triggers on selection = 0 (thanks JukeBox!)
I'm streaming at 200 ms. Restrict refresh at 60 secs.
I want to place the bets as late as possible, and I want to TAKE SP ALL if bets not matched.
I've got the Place Bets to trigger 24 times, rearming 0.1sec, and I've got TAKE SP set to trigger 24 times every second.
The problem is that if Place Bets hasnt finished the 24 triggers before the first TAKE SP trigger, then Place Bets doesnt finish the cycle. It appears (?) that TAKE SP is triggering one of the above conditions, even though no bets have been placed on the particular horse.
Of course, I could just start the Place Bets thing earlier, or the TAKE SP thing later, but that doesnt quite suit!
TLDR: Can I have overlapping Place Bet / TAKE SP timeframes?
Thanks.
Incidently re conditions - using cond 3 means you don't need conds 1 or 2 - might shave a gnat's off the the processing time.
Thanks Jukebox. Yeah, I figured that the first two were redundant, after your advice.Jukebox wrote: ↑Thu Apr 02, 2020 10:46 amAnbell, 0.1sec triggers but only 200ms (0.2sec) refresh - I think you need to slow one down or speed the other up to give its best chance - I generally ensure refresh rate is more granular than the trigger requirements in the file.
Incidently re conditions - using cond 3 means you don't need conds 1 or 2 - might shave a gnat's off the the processing time.
The 0.1sec/200ms thing doesnt seem to be a problem in terms of getting the bets placed. It works fine 95% of the time. The only problem is that when the first TAKE SP ALL is triggered, it stops the remainder of the Place Bets from being placed.
I'll take your advice and slow it down anyway. Thanks again.
ok - it's been working all day, but then the same issue occured again.
The race was scheduled for 17:45:00, and didn't start till 17:45:43
I've got Place Bets to start at 6 seconds before start to 30 seconds after. Trigger 12 times with 0.5s rearm.
The only condition is Number of Place Bets = 0
I've got Take SP from 0:00 before event start to 30s after event start. Trigger 30 times with 1sec rearm.
There were 8 runners. It placed the first 5 bets, TAKE SP was triggered at race time, the race didnt start for another 45s, but the bets on the last 3 runners werent placed for some reason.
I'm making about 5% ROI on this automation - except for the blow-outs when my bets arent placed.
Thanks for any advice in advance!
3/04/2020 17:44:54: [G_Auto] : $ 27.03 Back bet placed on 1. Art Royal at 3.7. Entirely unmatched when it initially reached the market. Ref: 198990601408
3/04/2020 17:44:55: [G_Auto] : $ 27.03 Back bet placed on 2. Merlins Missile at 3.7. Entirely unmatched when it initially reached the market. Ref: 198990601917
3/04/2020 17:44:57: [G_Auto] : $ 25.64 Back bet placed on 3. Grandana Quality at 3.9. Entirely unmatched when it initially reached the market. Ref: 198990602570
3/04/2020 17:44:58: [G_Auto] : $ 18.52 Back bet placed on 4. Aston Jansz at 5.4. Entirely unmatched when it initially reached the market. Ref: 198990603345
3/04/2020 17:44:59: [G_Auto] : $ 1.18 Back bet placed on 5. Guard Of Honour at 85. Entirely unmatched when it initially reached the market. Ref: 198990604550
3/04/2020 17:45:00: [G_Auto] : Modify bet persistence 198990601408 from 'Cancel' to 'Take SP'
3/04/2020 17:45:00: [G_Auto] : Modify bet persistence 198990601917 from 'Cancel' to 'Take SP'
3/04/2020 17:45:00: [G_Auto] : Modify bet persistence 198990602570 from 'Cancel' to 'Take SP'
3/04/2020 17:45:00: [G_Auto] : Modify bet persistence 198990603345 from 'Cancel' to 'Take SP'
3/04/2020 17:45:00: [G_Auto] : Modify bet persistence 198990604550 from 'Cancel' to 'Take SP'
3/04/2020 17:45:43: Guardian has detected that the market is suspended
The race was scheduled for 17:45:00, and didn't start till 17:45:43
I've got Place Bets to start at 6 seconds before start to 30 seconds after. Trigger 12 times with 0.5s rearm.
The only condition is Number of Place Bets = 0
I've got Take SP from 0:00 before event start to 30s after event start. Trigger 30 times with 1sec rearm.
There were 8 runners. It placed the first 5 bets, TAKE SP was triggered at race time, the race didnt start for another 45s, but the bets on the last 3 runners werent placed for some reason.
I'm making about 5% ROI on this automation - except for the blow-outs when my bets arent placed.
Thanks for any advice in advance!
3/04/2020 17:44:54: [G_Auto] : $ 27.03 Back bet placed on 1. Art Royal at 3.7. Entirely unmatched when it initially reached the market. Ref: 198990601408
3/04/2020 17:44:55: [G_Auto] : $ 27.03 Back bet placed on 2. Merlins Missile at 3.7. Entirely unmatched when it initially reached the market. Ref: 198990601917
3/04/2020 17:44:57: [G_Auto] : $ 25.64 Back bet placed on 3. Grandana Quality at 3.9. Entirely unmatched when it initially reached the market. Ref: 198990602570
3/04/2020 17:44:58: [G_Auto] : $ 18.52 Back bet placed on 4. Aston Jansz at 5.4. Entirely unmatched when it initially reached the market. Ref: 198990603345
3/04/2020 17:44:59: [G_Auto] : $ 1.18 Back bet placed on 5. Guard Of Honour at 85. Entirely unmatched when it initially reached the market. Ref: 198990604550
3/04/2020 17:45:00: [G_Auto] : Modify bet persistence 198990601408 from 'Cancel' to 'Take SP'
3/04/2020 17:45:00: [G_Auto] : Modify bet persistence 198990601917 from 'Cancel' to 'Take SP'
3/04/2020 17:45:00: [G_Auto] : Modify bet persistence 198990602570 from 'Cancel' to 'Take SP'
3/04/2020 17:45:00: [G_Auto] : Modify bet persistence 198990603345 from 'Cancel' to 'Take SP'
3/04/2020 17:45:00: [G_Auto] : Modify bet persistence 198990604550 from 'Cancel' to 'Take SP'
3/04/2020 17:45:43: Guardian has detected that the market is suspended
As the last action was exactly at the time the race was scheduled to start have you overlooked something silly like the resrict refresh or arm trigger settings to allow the 30 seconds until after scheduled start.Anbell wrote: ↑Fri Apr 03, 2020 8:32 amok - it's been working all day, but then the same issue occured again.
The race was scheduled for 17:45:00, and didn't start till 17:45:43
I've got Place Bets to start at 6 seconds before start to 30 seconds after. Trigger 12 times with 0.5s rearm.
The only condition is Number of Place Bets = 0
I've got Take SP from 0:00 before event start to 30s after event start. Trigger 30 times with 1sec rearm.
There were 8 runners. It placed the first 5 bets, TAKE SP was triggered at race time, the race didnt start for another 45s, but the bets on the last 3 runners werent placed for some reason.
I'm making about 5% ROI on this automation - except for the blow-outs when my bets arent placed.
Thanks for any advice in advance!
3/04/2020 17:44:54: [G_Auto] : $ 27.03 Back bet placed on 1. Art Royal at 3.7. Entirely unmatched when it initially reached the market. Ref: 198990601408
3/04/2020 17:44:55: [G_Auto] : $ 27.03 Back bet placed on 2. Merlins Missile at 3.7. Entirely unmatched when it initially reached the market. Ref: 198990601917
3/04/2020 17:44:57: [G_Auto] : $ 25.64 Back bet placed on 3. Grandana Quality at 3.9. Entirely unmatched when it initially reached the market. Ref: 198990602570
3/04/2020 17:44:58: [G_Auto] : $ 18.52 Back bet placed on 4. Aston Jansz at 5.4. Entirely unmatched when it initially reached the market. Ref: 198990603345
3/04/2020 17:44:59: [G_Auto] : $ 1.18 Back bet placed on 5. Guard Of Honour at 85. Entirely unmatched when it initially reached the market. Ref: 198990604550
3/04/2020 17:45:00: [G_Auto] : Modify bet persistence 198990601408 from 'Cancel' to 'Take SP'
3/04/2020 17:45:00: [G_Auto] : Modify bet persistence 198990601917 from 'Cancel' to 'Take SP'
3/04/2020 17:45:00: [G_Auto] : Modify bet persistence 198990602570 from 'Cancel' to 'Take SP'
3/04/2020 17:45:00: [G_Auto] : Modify bet persistence 198990603345 from 'Cancel' to 'Take SP'
3/04/2020 17:45:00: [G_Auto] : Modify bet persistence 198990604550 from 'Cancel' to 'Take SP'
3/04/2020 17:45:43: Guardian has detected that the market is suspended
Yeah - Ive got those covered. THanks.
Ive decided to just start putting the bets on a few secs early - that should at least put a bandaid on it. Thanks for your help.
I'm still struggling with this one, if anyone has any ideas. (It works most of the time, but maybe 10 times today it doesnt work.)
The race start was 18.11
There were 8 runners: 2-8, and 10.
I'm placing a bet at 10 secs before event start - to 3 hours after. Trigger 12 times, Rearm after 0.3s.
Take SP ALL starting 2secs before start to 1 hour after off, trigger 1000 times, 1 sec re-arm.
The only conditions on the Place Bet rule are:
market not in play
projected SP is > 0 (if the race doesnt have BSP I dont want to bet)
price of fave is > 1.5 (it was 4.2)
Number of bets placed on the selection is zero
According to the log (below) - the first bets started on schedule at 18:10:50. The first 4 bets went through appropriately, then there was a 6 second gap where there were no bets, and then the TAKE SP happened at 18:10:58, on plan, but there were no other bets placed in the next 36 seconds.
Refresh 200ms / Restrict refresh 60 before to 60 after
Does anyone have any tips? (Reminder that it works ok 95%-ish of the time - so the basic formula seems correct, but it appears that there's a problem handling exceptions of some sort)
thank you very much.
5/04/2020 18:10:40: [G_Auto] : Store Value for 10. Jardel: projectedsp = 4.389
5/04/2020 18:10:41: [G_Auto] : Store Value for 10. Jardel: faveprice = 4.2
5/04/2020 18:10:50: [G_Auto] : $ 11.36 Back bet placed on 2. Pocket Missile at 8.8. Entirely unmatched when it initially reached the market. Ref: 199062553960
5/04/2020 18:10:50: [G_Auto] : $ 25.97 Back bet placed on 3. Dynamic Diesel at 3.85. Entirely unmatched when it initially reached the market. Ref: 199062554387
5/04/2020 18:10:51: [G_Auto] : $ 10.00 Back bet placed on 4. Metal Reactor at 10. Entirely unmatched when it initially reached the market. Ref: 199062554718
5/04/2020 18:10:52: [G_Auto] : $ 5.41 Back bet placed on 5. Demon Princess at 18.5. Entirely unmatched when it initially reached the market. Ref: 199062556066
5/04/2020 18:10:58: [G_Auto] : Modify bet persistence 199062553960 from 'Cancel' to 'Take SP'
5/04/2020 18:10:58: [G_Auto] : Modify bet persistence 199062554387 from 'Cancel' to 'Take SP'
5/04/2020 18:10:58: [G_Auto] : Modify bet persistence 199062554718 from 'Cancel' to 'Take SP'
5/04/2020 18:10:58: [G_Auto] : Modify bet persistence 199062556066 from 'Cancel' to 'Take SP'
5/04/2020 18:11:34: Guardian has detected that the market is suspended
The race start was 18.11
There were 8 runners: 2-8, and 10.
I'm placing a bet at 10 secs before event start - to 3 hours after. Trigger 12 times, Rearm after 0.3s.
Take SP ALL starting 2secs before start to 1 hour after off, trigger 1000 times, 1 sec re-arm.
The only conditions on the Place Bet rule are:
market not in play
projected SP is > 0 (if the race doesnt have BSP I dont want to bet)
price of fave is > 1.5 (it was 4.2)
Number of bets placed on the selection is zero
According to the log (below) - the first bets started on schedule at 18:10:50. The first 4 bets went through appropriately, then there was a 6 second gap where there were no bets, and then the TAKE SP happened at 18:10:58, on plan, but there were no other bets placed in the next 36 seconds.
Refresh 200ms / Restrict refresh 60 before to 60 after
Does anyone have any tips? (Reminder that it works ok 95%-ish of the time - so the basic formula seems correct, but it appears that there's a problem handling exceptions of some sort)
thank you very much.
5/04/2020 18:10:40: [G_Auto] : Store Value for 10. Jardel: projectedsp = 4.389
5/04/2020 18:10:41: [G_Auto] : Store Value for 10. Jardel: faveprice = 4.2
5/04/2020 18:10:50: [G_Auto] : $ 11.36 Back bet placed on 2. Pocket Missile at 8.8. Entirely unmatched when it initially reached the market. Ref: 199062553960
5/04/2020 18:10:50: [G_Auto] : $ 25.97 Back bet placed on 3. Dynamic Diesel at 3.85. Entirely unmatched when it initially reached the market. Ref: 199062554387
5/04/2020 18:10:51: [G_Auto] : $ 10.00 Back bet placed on 4. Metal Reactor at 10. Entirely unmatched when it initially reached the market. Ref: 199062554718
5/04/2020 18:10:52: [G_Auto] : $ 5.41 Back bet placed on 5. Demon Princess at 18.5. Entirely unmatched when it initially reached the market. Ref: 199062556066
5/04/2020 18:10:58: [G_Auto] : Modify bet persistence 199062553960 from 'Cancel' to 'Take SP'
5/04/2020 18:10:58: [G_Auto] : Modify bet persistence 199062554387 from 'Cancel' to 'Take SP'
5/04/2020 18:10:58: [G_Auto] : Modify bet persistence 199062554718 from 'Cancel' to 'Take SP'
5/04/2020 18:10:58: [G_Auto] : Modify bet persistence 199062556066 from 'Cancel' to 'Take SP'
5/04/2020 18:11:34: Guardian has detected that the market is suspended
-
- Posts: 1624
- Joined: Fri Nov 20, 2015 9:38 am
Is there still a "projected" SP after the race starts (your conditions depend on it). Maybe it sets it to zero or null when the race starts?
Could always set it to a stored value and / or set it to display in log to see what value is set. Or use actual SP when in play...
Could always set it to a stored value and / or set it to display in log to see what value is set. Or use actual SP when in play...
And in fact where I said that the condition is
"projected SP is > 0"
That's not technically true.
Twenty secs before race time I set a value ("projectedsp ") of the fave in the race and write it to the log - such as:
5/04/2020 18:10:40: [G_Auto] : Store Value for 10. Jardel: projectedsp = 4.389
And the condition in the Place Bet is specifically whether the Stored Value called projectedsp is > 0
ETA: And the same is true for the price of the fave
"projected SP is > 0"
That's not technically true.
Twenty secs before race time I set a value ("projectedsp ") of the fave in the race and write it to the log - such as:
5/04/2020 18:10:40: [G_Auto] : Store Value for 10. Jardel: projectedsp = 4.389
And the condition in the Place Bet is specifically whether the Stored Value called projectedsp is > 0
ETA: And the same is true for the price of the fave