I was searching a cheap solution to control reversing loops, and finally I found it using double latching relays. Just for 4€ you can control reversing loops in DCC.
Latching relays are those that keep the position without power supply. You can change the position of the relay just sending a pulse. Double latching means that you can control the relay with two signals and you don't need to invert the polarity to change the position.
Many people will not find it useful unless you have Uhlenbrock modules or any kind of detection modules capable to send commands to the accessories modules. If your detection modules are not able to do it, the only possible solution with relays is to control the reversing loop with a PC software.
In my case, I did a detection section before entering the reversing loop and other at the end inside the loop. Each detection causes to activate an output connected to the relay and switches the polarity. That's something that you can configure in the Uhlenbrock detection modules through the Loconet.
If someone is interested,
here you have all the information and specifications.

Cheers,
Dani.