Laying in Win Market and Backing In Place Market
Back and lay on the same horse: lay to a fixed liability on the favourite in the win market if the odds are between 2 and 5.0. Back a fixed amount on the same horse in the place market providing the odds are 1.5 or higher.
The triggers in the file are easily adjustable. You can set the liability of the lay bet and the size of the back bet in the constants. You may wish to switch the fixed liability to a fixed amount. In that case change the formula in the Amount of the laying trigger to just lay_liab.
The price ranges for both bets are also set in the constants.