I would really appreciate if anyone can help me.
If it goes wrong i would like to exit the race with 0 profit.
Its not as simply as it may sound at least for me.
Example
I lay horse 1 at odd 2.00
I lay horse 2 at odd 5.20
Lets forget all other horses and just say that i will have a potencial loss in horse 2 of 1.20£ and a potencial profit on horse 1 of 0.60£
Now this is where it gets complicated in my opinion.
To exit the race with a 0 pl in both those horses what formula should i use to tell the bot with maximum lay price it can use?
I think i need to use the negative profit loss from horse 2 and ABS(horse2_profit_loss) to lay horse 1 but at what maximum lay price.
I tried attempt to green but that will place 2 bets, one in each horse, i would like to place only one bet and i would prefer it to be on horse 1 (the one with a potential profit)
Thank you.