Hi MarkV
I can confirm that I am not deleting settled markets automatically.
For the trigger "at the end of an event" doesn't the condition "Trigger laying Number of runs in the market is greater than 0" essentially mean the trigger should run when there is a matched bet in the market, and the matched bet was put in the market by the trigger called "laying"
Here is the trigger log for the trigger called "at the end of an event" for the second last race at Kempton.
The bet_cntr variable was decreased by 1 and there was a matched bet in the market.
05:28:00 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Idle).
05:33:02 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:33:08 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:33:13 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:33:18 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:33:23 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:33:28 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:33:33 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:33:39 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:33:44 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:33:49 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:33:54 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:34:00 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:34:05 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:34:10 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:34:15 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:34:20 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:34:25 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:34:31 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:34:36 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:34:41 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:34:46 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:34:51 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:34:56 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:35:02 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:35:07 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:35:12 Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap: Inappropriate market status (Suspended).
05:35:17 Checking market "Horse Racing / GB / Kemp 10th Jun / 05:30 Kemp 10th Jun - 6f Hcap".
05:35:17 Checking condition and Trigger laying Number of runs in the market is greater than 0.
05:35:17 Condition is: TRUE. valid for 10 selections: May Remain, Private Matter, Inaam, Human Nature, Three Little Birds, Inexes, Pedestal, Nezar, Di Matteo, Imhotep.
05:35:17 Selection: May Remain, initial expr.: bet_cntr-1, intermediate: 3-1, final: 2.
05:35:17 Setting variable bet_cntr to 2.
The trigger log for the trigger "at the end of an event" is below.
For this race the bet was never matched so was deleted when the event turned in-play
05:58:01 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (Idle).
06:03:04 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:03:11 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:03:14 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:03:21 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:03:27 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:03:33 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:03:39 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:03:46 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:03:52 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:03:58 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:04:04 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:04:10 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:04:16 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:04:23 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:04:29 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:04:35 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:04:41 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:04:48 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:04:54 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:05:00 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:05:06 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:05:12 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:05:18 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:05:25 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (In-Play).
06:05:31 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (Suspended).
06:05:35 Horse Racing / GB / Kemp 10th Jun / 06:00 Kemp 10th Jun - 1m4f Hcap: Inappropriate market status (Suspended).
There is nothing after that last two lines saying "Inappropriate market status (Suspended)."