1. Place Lay bet – I know this one is

2. Choose selection based on the odds I stipulate in parameters – again, I’m comfortable with this.
3. This is the part I need help with:
If the hedged loss amount across all selections is EQUAL OR GREATER than the lay stake used in step 1, hedge out for loss.