"I want a trigger that, every time the home team (to be set as a parameter, home or away team), is winning 1-0 and scores the second goal in the football match against the losing team (0 goals), it generates a lay against the losing team (match odds market) as long as the lay odds are below or equal to 30 (to be set as a parameter as well).
In other words, every time the match turns to 2-0, at the moment of the second goal, it generates a lay against the losing team as long as the lay odds are below 30.
I want a option 2 based on the same strategy , once the match is 2-0 at the moment the losing team score the first goal turning the match to 2-1, lay a bet againt the losing team since the odd is below or equal to20 (put is as parametrer so that I can modify it if necessary)
And option 3 is also based on the same strategy, once the match is 2-0 when the losing team draw the match to 2-2 lay a bet against the the team that drew the match (match odds market)
since the odd is below or equal to 10 (put is as parametrer so that I can modify it if necessary)
As for the bet amount, you can use the default $10 (put is as parametrer so that I can modify it if necessary).