The polarity (or train direction) of the rails is shown on the product. Uses a dual colour LED. When DC is detected the LED will be either green or red, when DCC (16VAC) is detected both LEDs light and the colour will be orange.
eBay