Help with 2 bets firing at the same time.

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
User avatar
Hepburn
Posts: 236
Joined: Sun Feb 25, 2018 11:58 pm

Hello my bot sometimes fires 2 bets into the market at exactly the same time. I have the umatched bet and matched bet conditions set to = 0.

Is there a way to close the trade on the second bet?
User avatar
Dallas
Posts: 23532
Joined: Sun Aug 09, 2015 10:57 pm

Why does it fire two at the same time?
User avatar
ShaunWhite
Posts: 10472
Joined: Sat Sep 03, 2016 3:42 am

Like Dallas says, fix the problem not the symptom.
Belt and braces would be to set a signal when the bet fires, that way you're checking unmatched bets, matched bets and your very own 'have i done this before' signal. Then there's no way a 2nd bet can sneak through.
User avatar
Hepburn
Posts: 236
Joined: Sun Feb 25, 2018 11:58 pm

Im laying when a certain situation arises and have triggers on each selection in order of favourtism.
User avatar
Hepburn
Posts: 236
Joined: Sun Feb 25, 2018 11:58 pm

ShaunWhite wrote:
Wed Jul 24, 2019 8:41 pm
Like Dallas says, fix the problem not the symptom.
Belt and braces would be to set a signal when the bet fires, that way you're checking unmatched bets, matched bets and your very own 'have i done this before' signal. Then there's no way a 2nd bet can sneak through.
impossible they have the same time stamp.
User avatar
Hepburn
Posts: 236
Joined: Sun Feb 25, 2018 11:58 pm

im going to try a green up if 2 bets matched to close it all and get out the market.
User avatar
mcgoo
Posts: 898
Joined: Thu Jul 18, 2013 12:30 pm

Had the same thing happen to me the other night and have seen it before.Both bets fire at the same second.No amount of signalling or unmatched bet conditioning :) helps. It appears to happen infrequently/randomly and shakes one's faith in the automation.But as others have mentioned you have to code to allow for it-green all etc as you have figured out.Bit of a pain though..doubled my loss the other night :(
User avatar
Hepburn
Posts: 236
Joined: Sun Feb 25, 2018 11:58 pm

mcgoo wrote:
Thu Jul 25, 2019 6:55 am
Had the same thing happen to me the other night and have seen it before.Both bets fire at the same second.No amount of signalling or unmatched bet conditioning :) helps. It appears to happen infrequently/randomly and shakes one's faith in the automation.But as others have mentioned you have to code to allow for it-green all etc as you have figured out.Bit of a pain though..doubled my loss the other night :(
Yes its definately been a head scratcher. It happend twice yesterday and the day before. I have thoroughly checked all my settings and found no errors at all.

I was wondering whether it possible to set a signal rule on the selection that has the matched bet to ignore that selection, and then to add a close trade rule on any selection with the 'amounts matched greater than ' condition. As im using a fixed liabilty any over X amount to close.
it that possible anyone know??
User avatar
cmuddle
Posts: 160
Joined: Tue Apr 18, 2017 7:12 pm

yes happened to me as well, I think it fires second bet at the time when the bet condition changes from unmatched to matched and it could be milliseconds, one way would be to extend the rearming time or add condition "time since the selection contained a fill or kill bet"

but maybe Dallas would have a better answer
User avatar
Dallas
Posts: 23532
Joined: Sun Aug 09, 2015 10:57 pm

The rules get checked in order so even if you had 2 rules using the same conditions so are able to trigger on the same refresh if you do as Shaun suggested and set a signal with the first of them then use a signal set condition on the second that would stop the later rule in your list triggering if the first has
User avatar
Hepburn
Posts: 236
Joined: Sun Feb 25, 2018 11:58 pm

oki doki il give it a go. Thanks Dallas and everyone.
User avatar
mcgoo
Posts: 898
Joined: Thu Jul 18, 2013 12:30 pm

This happened 5 times last night again..on a bot that I have run a variation of for 12 months with nowhere near that amount of issue.The entry bet timings haven't changed. I restarted BA to see if that cures it. Both bets are placed at the same second effectively negating conditions that would prevent multiple bets. In theory each opening try should be 12 seconds apart.Will try again tonight.Just an update in case anyone else saw something similar yesterday
User avatar
Hepburn
Posts: 236
Joined: Sun Feb 25, 2018 11:58 pm

I have them all on signals now and its still happening.

This is what i have now..

Signal--> Lay bet
x multiple

should i try

Signal--> Signal ( check duplicate ) --> Lay bet
x multiple
User avatar
Hepburn
Posts: 236
Joined: Sun Feb 25, 2018 11:58 pm

Ive added a stop sig for the market on each lay bet and added the market condition within the lay bet rule. Will see how this goes.
buyshirts
Posts: 484
Joined: Sat Apr 18, 2009 12:37 pm

Did you manage to stop the double firing?
I'm getting a similar problem can i ask how many rules do you have in the bot?
Post Reply

Return to “Bet Angel - Automation”