I am trying to write a trigger (see attached) that does the following:
1. Wait for x number of lays placed in the market (football games) to lose, then place a lay bet.
2. If the placed lay bet wins, restart at 1.
3. If the placed lay bet loses, then have a loss recoupment until bet wins, with a max loss in place to protect the bank. If max loss reached, then restart at 1.
The attached trigger is almost there, but does not work correctly, most likely due to some small thing that I cannot see.