If kb02 is looking for an automatic control of a “stop, then reverse, stop, & go back” dc power for a single track (like you might see with a trolley), then santafewilly’s reverser should work. If he’s looking to automatically control a reverse loop or a wye, to sense when the loco needs the power reversed automatically, that’s probably going to require a DCC system such as PSX-AR