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?
Help with 2 bets firing at the same time.
- 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.
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.ShaunWhite wrote: ↑Wed Jul 24, 2019 8:41 pmLike 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.
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.mcgoo wrote: ↑Thu Jul 25, 2019 6:55 amHad 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 conditioninghelps. 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
![]()
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??
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
but maybe Dallas would have a better answer
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
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