- Fri Sep 15, 2017 4:04 pm
#18495
I have a bot which places an initial BACK bet.
My after-bet rules contain instructions to place a trade-out bet, and also instructions to close the trade under certain conditions.
I'm having an occasional problem whereby the trade-out LAY bet is placed and unmatched, after which the close conditions are met and a second LAY bet is placed... and then both LAY bets end up getting matched, resulting in a loss of money.
How can I avoid this? I'm struggling to experiment because the situation only ever seems to arise in live mode.
If I set the max number of unmatched bets to 1, then surely this will prevent the bot from placing the close bet.
How can I set the bot to cancel any unmatched LAY bets when the conditions arise for another LAY bet to be placed?
My after-bet rules contain instructions to place a trade-out bet, and also instructions to close the trade under certain conditions.
I'm having an occasional problem whereby the trade-out LAY bet is placed and unmatched, after which the close conditions are met and a second LAY bet is placed... and then both LAY bets end up getting matched, resulting in a loss of money.
How can I avoid this? I'm struggling to experiment because the situation only ever seems to arise in live mode.
If I set the max number of unmatched bets to 1, then surely this will prevent the bot from placing the close bet.
How can I set the bot to cancel any unmatched LAY bets when the conditions arise for another LAY bet to be placed?