Phil (Harlequin) has it correct. I have (well buried at lower level as part storage access) this set up with auto-reverser, but even more complicated with further branch line & storage loops access. This has been running without issue for over 10 years now.
Only thing to watch is ensure reverser feed section is as long the lonest train (in my case 7car HST with power units both ends).
Dave