Rule #1
Place stops where your idea is WRONG, not where you can afford them. If you can't afford the structural , size down.
For breakouts
Just inside the broken level. If price returns inside the range, the failed.
For pullbacks
Beyond the extreme (below the pullback low in an uptrend, above the pullback high in a downtrend).
For reversals
Beyond the that triggered the setup.
What to avoid
Round-number stops. Stops exactly at the swing high/low (get swept). Arbitrary dollar-based stops divorced from structure.
