Servant assistance please

Servants, just tap your bell to call them.
Post Reply
chrismckinnel
Posts: 3
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: 22674
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: 3
Joined: Sun Feb 02, 2020 2:10 am

Awesome, thanks so much, Dallas.
chrismckinnel
Posts: 3
Joined: Sun Feb 02, 2020 2:10 am

Hi again,

I'd like to modify my cancel bet rule so it cancels unmatched bets on any runners based on favouritism, however it doesn't seem to be triggering.

The intended behaviour I'm trying to get is to cancel bets on all runners that are not 7th, 8th or 9th favourite (in this case).

I'm trying to do this because I'm betting on Australian racing where the projected BSP changes a lot and the order of favouritism changes as it gets closer and closer to the off.

Thanks for any help.

=== logs ===

1/20/2022 19:44:50: [G_Auto 1] : $ 1.00 Back bet placed on 2. Road To Blue Sky at 1000. Entirely unmatched when it initially reached the market. Ref: 256318318059
1/20/2022 19:44:51: [G_Auto 1] : Modify bet persistence 256318318059 from 'Cancel' to 'Take SP'


1/20/2022 19:44:51: [G_Auto 1] : $ 1.00 Back bet placed on 5. Jarrahmond at 1000. Entirely unmatched when it initially reached the market. Ref: 256318318900
1/20/2022 19:44:52: [G_Auto 1] : Modify bet persistence 256318318900 from 'Cancel' to 'Take SP'


1/20/2022 19:44:52: [G_Auto 1] : $ 1.00 Back bet placed on 8. The Nella Maris at 1000. Entirely unmatched when it initially reached the market. Ref: 256318319506
1/20/2022 19:44:53: [G_Auto 1] : $ 1.00 Back bet placed on 6. Rostino at 1000. Entirely unmatched when it initially reached the market. Ref: 256318320183
1/20/2022 19:44:53: [G_Auto 1] : Modify bet persistence 256318319506 from 'Cancel' to 'Take SP'


1/20/2022 19:44:54: [G_Auto 1] : Modify bet persistence 256318320183 from 'Cancel' to 'Take SP'


1/20/2022 19:45:52: Guardian has detected that the market is suspended
1/20/2022 19:45:53: Guardian has detected that the market is in-play
1/20/2022 19:45:53: Guardian has detected that the market is now unsuspended
1/20/2022 19:47:57: Guardian has detected that the market is suspended
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Bet Angel - Servants”