Swing Circles - Signals occur in real time throughout the duration of the candle. They may appear and disappear throughout the candle that they're tracking but when the candle closes there is no re-paint. These are solid signals. I've added 1 single alert whenever and Swing Circle triggers red or green.
- Swing Circles combines two momentum indicators — a smoothed CCI and Williams %R — to flag potential exhaustion points where price may be overextended in one direction while the underlying momentum tells a conflicting story.
The CCI (Commodity Channel Index) measures how far price has deviated from its average. When it's reading extremely high or low it tells us price has made a significant move. The Slow %R (Williams Percent Range) measures where price sits within its range over a longer lookback period — near the top of its range or near the bottom.
The signal logic looks for disagreement between the two:
- 🔴 Red circle above the candle — CCI is extremely elevated (above 150), meaning price has surged hard, BUT the Slow %R is sitting deep in oversold territory (below -65), meaning over the longer lookback price is actually near the bottom of its range. That contradiction suggests the short-term push may be exhausted and a reversal could be coming.
- 🟢 Green circle below the candle — CCI is extremely depressed (below -150), meaning price has sold off hard, BUT the Slow %R is near the top of its range (above -35), again a contradiction that suggests the selloff may be losing steam.
- In short — it's hunting for moments where short-term momentum has gone to an extreme but the bigger picture range context isn't confirming it, which is often where swing reversals set up.
- To get MORE signals — make the conditions EASIER to meet:
- CCI thresholds — bring them closer to zero. 150/-150 → 130/-130 → 100/-100. The CCI will cross those levels more frequently so circles fire more often.
%R thresholds — bring them closer to -50 (the midpoint). So -65 → -55 and -35 → -45. That widens the zone where %R qualifies, making it easier for both conditions to be true at the same time.
- CCI Length — shorten it (e.g. 13 → 8). A shorter CCI is more reactive and will spike to extremes more often.
Slow %R Length — shorten it (e.g. 112 → 60). A shorter lookback makes %R more sensitive and it will swing around more frequently.
Enable smoothing on %R — counterintuitively this can sometimes increase signals by keeping %R in a qualifying zone longer since smoothing slows its exit.
- To get FEWER signals — make the conditions HARDER to meet:
- CCI thresholds — push them further from zero. 150/-150 → 175/-175 → 200/-200. Fewer bars will reach those extremes.
%R thresholds — push them toward the edges. -65 → -75 and -35 → -25. Now %R needs to be deeper in its extreme to qualify.
- CCI Length — lengthen it (e.g. 13 → 20). A longer CCI is smoother and spikes to extremes less often.
Slow %R Length — lengthen it (e.g. 112 → 150+). A longer lookback makes %R very slow moving and harder to reach extremes.
HMA Length — lengthen it (e.g. 8 → 13). More smoothing on the CCI means it moves more slowly and is less likely to spike past your threshold.
Indicador Pine Script®
















