When a trend breaks, swing traders typically get in the game. At the end of a trend, there is usually some price volatility as the new trend tries to establish itself. Swing traders buy or sell as that price volatility sets in. Swing trades are usually held for more than a day but for a shorter time than trend trades. Swing traders often create a set of trading rules based on technical or fundamental analysis.
These trading rules or algorithms are designed to identify when to buy and sell a security. While a swing-trading algorithm does not have to be exact and predict the peak or valley of a price move, it does need a market that moves in one direction or another. A range-bound or sideways market is a risk for swing traders.