When trading occurs within a limited range, traders open long positions during a price bounce from support, and short positions during a bounce 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).