When trading occurs in a limited range, traders open long positions during a price rebound from support and short positions during a rebound from resistance level.
It is clear that a limited trading range will not last forever, so traders should set stops below the support level (when working with longs) and above the resistance level (when working with shorts).