If you have a balloon or a wye, you will have a reversing section.? One way to effect the polarity change for these tracks is to use a relay attached to the switch machine at the throat of a balloon or wye.? aka a "throat controlled relay."? For more on reversing, see my website at:??? Also, see my column in the April 2021 issue of Model Railroader.
Allan Gartner
Wiring for DCC
DCC Currents, Model Railroader