The problem with last_lost is that you can only place one bet at a time otherwise it could miss a loss when it places lots of bets. This is what I'm trying to get around.
So I need to take into consideration, total balance, number of bets in statement, money in play, number or bets for money in play, total profit/loss. From here we can calculate if the betting system is on target or needs to recoupe total loss.
We can then place lots off bets at once and calculate recoupe bet size at any point.
Any help with the in play challenge would be really appreciated.
Kind regards
Byron