....
Martin, how did you limit the number of bets sent at any one time to 4?
There are 2 ways to limit the number of bets which are sent at once:
1.) In the condition of back or lay action, add in the last line:
matching_number is less than 5
If number of selections which match all previous conditions is greater or equal 5, trigger does nothing.
2.) In the condition of back or lay action, add in the last line:
match_4_sel_index is greater or equal then sel_index
or
matching_number is less than 5
If number of selections which match all previous conditions is greater or equal 5, trigger only does the action for the first 4 selections. You need the matching_number condition if market has less than 5 mathing selections, because match_4_sel_index is 0 if there are less than 5 matching selections.