Dear mcbee,
What I meant to say is if I lay $50 at odds of 7, the liability for that bet will be $300. I wanted the bot to place that bet but as well as the game goes on and no goal is scored, it should place a back bet at a certain time so that the loss for that selection is $200 (4 times the stake).
However if the bot lays at odds of 5 or below, the bet should run till the end.
Essentially, if a lay bet is placed by the bet , I should only lose 4 units (max) if the bet goes against me.
Hope its is clear, thanks for your assistance.