Now that the selection has been identified (in Part 1, a horse in lane x in a race with more than x selections), I'd like some triggers to be met before initiating a trade.
Firstly, for this example, I'd like to place a lay bet only when the horse has odds in range 10 to 20 when the following 2 triggers are met:
1- Our selection has dropped in position since X seconds in play.
2- The number 1 and 2 position horses both have back odds less then 2 (and our selection is not position 1,2 or 3)
So after Part 2, we have a working bot that will execute a lay bet within odds range of 10 to 20 on our selection (based on the 2 triggers in Part 1) ONLY IF the 2 triggers in Part 2 are true