This has worked for a few times.
Plot the target's course.
Get in front of the target and point the same course of the target. Stop engines, allow target to pass overhead. When it is 250 meters away, launch a magnetic shot.
As the target is retreating, this gives time for the torpedo to arm.