I need to put in a rule that if a back bet is taken when its near the off time the bet will go in at BFSP.
This is because I've had a few lay bets get matched then the back bet doesn't and the horse wins the race so instead of a trade its just a lay bet.
e.g. the lay bet gets matched at 6.0 then the price drops a bit to 5.6 and never goes higher if the BFSP is 5.8 then I figure its better to take a small loss than a big one if it wins.
Any ideas how I could do this?