(advances / declines) / (up volume / down volume)
Low readings, below 1 show relative strength and high readings, above 1 show relative weakness. $TRIN can be used to detect overbought/oversold conditions.
The chart below shows $TRIN. Notice how it dipped below 0.5 which is considered overbought.