You can try to put the line and right click > start tracking. See if that works but it's likely it won't work in your case as the horses pass in front of the tracked post.
If you want to put on lines that "stick" to the objects in the scene despite the camera rotation, I'm working on it and there should be something in the next version. At first it will be only for qualitative markers though, I don't expect it to be accurate enough for measurements.
edit: in your case if I understand correctly the ends of the line should be attached to objects that are not visible on the same frame together is that correct?
edit2: I checked this in the dev version and it should work with the new camera motion compensation. You can lay down a line across the scene where both ends aren't visible together at any given time. Now to see if this type of busy scene will work with camera motion estimation.