Designing bot to lay front three runners if drifted set amount of ticks in running, using historical odds condition to identify candidates.
If one horse starts coming in I want to exit that position but leave the other two drifting.
Have tried close trade eg bet fair row 1 if that is the horse that's coming in for monetary value of -1 but it won't fire.
Any help would be appreciated spent six hrs trying to figure it out

