Servant assistance please

Servants, just tap your bell to call them.
Post Reply
chrismckinnel
Posts: 2
Joined: Sun Feb 02, 2020 2:10 am

Hi there,

I have created a servant that I intend to have the following behaviour:

1) Right before the off, bet on certain runners based on their projected SP, and convert these bets to take the SP - working
1a) Only bet on each runner once - not working, see below
2) Monitor all runners every second to see if any others fall within the projected SP range right up until the market goes in play - working
3) Cancel any unmatched bets that fall outside the projected SP range if the projected SP has changed - no idea how to do this

Regarding 1a above, every now and again there will be a 2nd bet placed on a runner pretty much at the same moment the market goes in play, but there is a condition of the back rule that says the market must not be in play.

Regarding 3, it doesn't look like there is an option for cancelling a bet based on its projected SP. All I could find were ticks and % away from SP.

I've attached the .baf file, and some logs below of the 1a issue happening (the cancel line is me cancelling manually).

Any help appreciated!


=== Logs ===

1/13/2022 21:50:51: [G_Auto 1] : $ 0.25 Back bet placed on 7. Okinawa Beach at 1000. Entirely unmatched when it initially reached the market. Ref: 255716159332
1/13/2022 21:50:52: [G_Auto 1] : $ 0.25 Back bet placed on 8. Writers Reign at 1000. Entirely unmatched when it initially reached the market. Ref: 255716159898
1/13/2022 21:50:51: [G_Auto 1] : Modify bet persistence 255716159332 from 'Cancel' to 'Take SP'
1/13/2022 21:50:52: [G_Auto 1] : Modify bet persistence 255716159898 from 'Cancel' to 'Take SP'

1/13/2022 21:52:38: Guardian has detected that the market is in-play
1/13/2022 21:52:38: Guardian has detected that the market is suspended
1/13/2022 21:52:40: Guardian has detected that the market is now unsuspended
1/13/2022 21:52:40: [G_Auto 1] : $ 0.25 Back bet placed on 7. Okinawa Beach at 1000. Entirely unmatched when it initially reached the market. Ref: 255716231019
1/13/2022 21:53:07: Cancelling bets 255716231019
1/13/2022 21:54:40: Guardian has detected that the market is suspended
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 18032
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

>>3) Cancel any unmatched bets that fall outside the projected SP range if the projected SP has changed - no idea how to do this

Add a 'Cancel unmatched bets on selection (price dependant)' rule

Then on the conditions tab start a group which the group type 'one or more conditions must be true'
Add a Projected SP condition >28 and Projected SP condition <20
end group
https://www.betangel.com/user-guide/gro ... tions.html

If you add a 'time since market unsuspended condition' is greater than 2 seconds, that will ensure no double bets are placed as it goes in-play as there will be a brief moment when there are no unmatched and no matched because the unmatched isn't there anymore but BF hasn't yet returned the matched bet/s info from the SP
chrismckinnel
Posts: 2
Joined: Sun Feb 02, 2020 2:10 am

Awesome, thanks so much, Dallas.
Post Reply

Return to “Bet Angel - Servants”