Hi
It looks like some parts of the trigger file are missing and I can't see some of the formulas in full.
Attached is the simple staking plan for lay bets modified to lay third favourite in-play when the favourites back price drops below 2.00. The screenshot shows 7 races tested in Time Machine.
Please note the trigger will lay the selection that is third favourite at the moment the favourites back price is below 2.00.
Observation from testing: Although there is a limit for maximum bet size in the constant, you can see from the statement there were some high liabilities. You might want to play around with reducing the max bet size.
I did not have a loss during this testing but I can confirm the loss recovery works ok. Please test all triggers in test mode.