Help with Scalping Bot Please

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
howarth4422
Posts: 20
Joined: Thu Oct 18, 2018 3:58 pm

I am attempting to make a scalping bot based on the 'Scalping WOM' bot found on here. I have set it to place back bets only when certain prices move/don't move and the WOM is less than 50%. Also I have added in rules to cancel the back bets when either the price or WOM changes. However I have noticed something isn't quite right but cant work out what. I think maybe the offset bet isn't triggering sometimes. This is the log for one of todays races.


06/05/2019 13:24:46: [G_Auto] : £ 50.00 Back bet placed on Ferrobin at 1.68. Entirely unmatched when it initially reached the market. Ref: 10000 ( Fill or kill bet with 30 seconds delay. Offsetting by 1 ticks. Stop at 7 ticks. Place stop at 8 ticks )
06/05/2019 13:24:46: [G_Auto] : £ 50 unmatched bet (Ref:10000) was killed.
06/05/2019 13:26:20: [G_Auto] : £ 50.00 Back bet placed on Ferrobin at 1.68. Entirely unmatched when it initially reached the market. Ref: 10001 ( Fill or kill bet with 30 seconds delay. Offsetting by 1 ticks. Stop at 7 ticks. Place stop at 8 ticks )
06/05/2019 13:26:20: [G_Auto] : £ 50 unmatched bet (Ref:10001) was killed.
06/05/2019 13:26:26: [G_Auto] : £ 50.00 Back bet placed on Ferrobin at 1.69. Entirely unmatched when it initially reached the market. Ref: 10002 ( Fill or kill bet with 30 seconds delay. Offsetting by 1 ticks. Stop at 7 ticks. Place stop at 8 ticks )
06/05/2019 13:26:26: [G_Auto] : £ 50 of unmatched bet (Ref:10002) was filled before remainder was killed. Position Closed therefore no offset/stop required.
06/05/2019 13:29:45: [G_Auto] : Greened up Ferrobin by Laying 53.82 at 1.57
06/05/2019 13:31:36: Guardian has detected that the market is in-play
06/05/2019 13:35:42: Guardian has detected that the market is suspended

I don't understand if all the bets were killed why has it layed 53.82 to green up? is it something to do with them getting partly matched?
Thanks
howarth4422
Posts: 20
Joined: Thu Oct 18, 2018 3:58 pm

06/05/2019 16:56:25: [G_Auto] : £ 50.00 Back bet placed on Stubborn Logic at 2.84. Entirely unmatched when it initially reached the market. Ref: 10019 ( Fill or kill bet with 30 seconds delay. Offsetting by 1 ticks. Stop at 7 ticks. Place stop at 8 ticks )
06/05/2019 16:56:26: [G_Auto] : £ 50 unmatched bet (Ref:10019) was killed.
06/05/2019 16:56:45: [G_Auto] : £ 50.00 Back bet placed on Stubborn Logic at 2.88. Entirely unmatched when it initially reached the market. Ref: 10020 ( Fill or kill bet with 30 seconds delay. Offsetting by 1 ticks. Stop at 7 ticks. Place stop at 8 ticks )
06/05/2019 16:56:46: [G_Auto] : £ 50 of unmatched bet (Ref:10020) was filled before remainder was killed. Position Closed therefore no offset/stop required.
06/05/2019 16:57:34: Placed closure bet on Stubborn Logic by Laying 50.00 at 2.88
06/05/2019 16:59:30: Guardian has detected that the market is suspended
06/05/2019 16:59:38: Guardian has detected that the market is now unsuspended

Log from another race today
User avatar
Dallas
Posts: 22674
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

It looks like your bet is beginning to be matched just as it's cancelled by the WOM cancel bet

You can use 'Batches' to start offsetting your bet as it begins to get matched
https://www.betangel.com/user-guide/offset_batches.html
howarth4422
Posts: 20
Joined: Thu Oct 18, 2018 3:58 pm

Dallas wrote:
Mon May 06, 2019 6:22 pm
It looks like your bet is beginning to be matched just as it's cancelled by the WOM cancel bet

You can use 'Batches' to start offsetting your bet as it begins to get matched
https://www.betangel.com/user-guide/offset_batches.html
Thanks dallas will have a look at that
howarth4422
Posts: 20
Joined: Thu Oct 18, 2018 3:58 pm

Dallas wrote:
Mon May 06, 2019 6:22 pm
It looks like your bet is beginning to be matched just as it's cancelled by the WOM cancel bet

You can use 'Batches' to start offsetting your bet as it begins to get matched
https://www.betangel.com/user-guide/offset_batches.html
just been testing it with the dogs just to see if that helped but there's definitely something wrong with the offset.for example this back bet of £50 got entirely matched but then the log says something about the offset not being required
any ideas?

06/05/2019 20:27:07: [G_Auto] : £ 50.00 Back bet placed on 3. Affleck Bolt at 2.08. Entirely unmatched when it initially reached the market. Ref: 10074 ( Fill or kill bet with 30 seconds delay. Offsetting by 1 ticks. Stop at 7 ticks. Place stop at 8 ticks )
06/05/2019 20:27:09: [G_Auto] : £ 50 of unmatched bet (Ref:10074) was filled before remainder was killed. Position Closed therefore no offset/stop required.
06/05/2019 20:28:45: [G_Auto] : Greened up 3. Affleck Bolt by Laying 45.61 at 2.28
06/05/2019 20:31:24: Guardian has detected that the market is suspended
User avatar
BetScalper
Posts: 1139
Joined: Sun Jul 02, 2017 10:47 pm

howarth4422 wrote:
Mon May 06, 2019 8:36 pm
Dallas wrote:
Mon May 06, 2019 6:22 pm
It looks like your bet is beginning to be matched just as it's cancelled by the WOM cancel bet

You can use 'Batches' to start offsetting your bet as it begins to get matched
https://www.betangel.com/user-guide/offset_batches.html
just been testing it with the dogs just to see if that helped but there's definitely something wrong with the offset.for example this back bet of £50 got entirely matched but then the log says something about the offset not being required
any ideas?

06/05/2019 20:27:07: [G_Auto] : £ 50.00 Back bet placed on 3. Affleck Bolt at 2.08. Entirely unmatched when it initially reached the market. Ref: 10074 ( Fill or kill bet with 30 seconds delay. Offsetting by 1 ticks. Stop at 7 ticks. Place stop at 8 ticks )
06/05/2019 20:27:09: [G_Auto] : £ 50 of unmatched bet (Ref:10074) was filled before remainder was killed. Position Closed therefore no offset/stop required.
06/05/2019 20:28:45: [G_Auto] : Greened up 3. Affleck Bolt by Laying 45.61 at 2.28
06/05/2019 20:31:24: Guardian has detected that the market is suspended
Same thing happens to me.

You on WiFi connection ?
howarth4422
Posts: 20
Joined: Thu Oct 18, 2018 3:58 pm

BetScalper wrote:
Mon May 06, 2019 8:55 pm
howarth4422 wrote:
Mon May 06, 2019 8:36 pm
Dallas wrote:
Mon May 06, 2019 6:22 pm
It looks like your bet is beginning to be matched just as it's cancelled by the WOM cancel bet

You can use 'Batches' to start offsetting your bet as it begins to get matched
https://www.betangel.com/user-guide/offset_batches.html
just been testing it with the dogs just to see if that helped but there's definitely something wrong with the offset.for example this back bet of £50 got entirely matched but then the log says something about the offset not being required
any ideas?

06/05/2019 20:27:07: [G_Auto] : £ 50.00 Back bet placed on 3. Affleck Bolt at 2.08. Entirely unmatched when it initially reached the market. Ref: 10074 ( Fill or kill bet with 30 seconds delay. Offsetting by 1 ticks. Stop at 7 ticks. Place stop at 8 ticks )
06/05/2019 20:27:09: [G_Auto] : £ 50 of unmatched bet (Ref:10074) was filled before remainder was killed. Position Closed therefore no offset/stop required.
06/05/2019 20:28:45: [G_Auto] : Greened up 3. Affleck Bolt by Laying 45.61 at 2.28
06/05/2019 20:31:24: Guardian has detected that the market is suspended
Same thing happens to me.

You on WiFi connection ?

No wired. think it could be a connection problem though? i assumed not as it says 'no offset,stop required' as if theres a reason for it not triggering
Rowers
Posts: 6
Joined: Tue Feb 13, 2018 11:03 pm

I am having the same problem. it seems that if you have an offset bet, and in the moment when your bet gets matched and its about to offset it, and the order to "cancel all bets" is sent, it will not send that offset bet.
and I get the error:
"Position Closed therefore no offset/stop required"
Archery1969
Posts: 3194
Joined: Thu Oct 24, 2019 8:25 am
Location: Newport

I fixed it by having signal rules at the top with 1 second refresh.

Basically if back matched > lay matched then set signal no_cancel

Then on your cancel trigger check that no_cancel is not set.

Likewise if lay matched > back matched etc
Finbar147
Posts: 18
Joined: Sat Mar 06, 2021 4:50 am

I'm having this exact issue, is there somewhere I can see the post from Archery1969 explained? Getting that error a lot of the time and would be great to get rid of it

My issue being the one stated by Rowers:
I am having the same problem. it seems that if you have an offset bet, and in the moment when your bet gets matched and its about to offset it, and the order to "cancel all bets" is sent, it will not send that offset bet.
and I get the error:
"Position Closed therefore no offset/stop required"
Post Reply

Return to “Bet Angel - Automation”