I considered pressure switches on the hydraulic lines, but I would rather not have the mechanism bind against the stops, but come to a repeatable, controlled stop by bumping a limit switch.

Magnets and reed switches are another possibility, but I just don't trust them as much as a straight mechanical switch in this type of heavy machinery application.