Half Cup
By LuxAlgoJul 18, 2024
Half Cup is an indicator on Vela, our next-generation charting platform, written in Pine Script®.
The Half Cup indicator trades the Cup & Handle's opening act. Rather than waiting for a full basin and handle to complete, it detects price curving through half of a rounded shape (essentially one side of a rounding bottom or top) wraps that arc in a channel, and marks channel breakouts with dots: bullish opportunities in green, bearish in red.
How to Trade the Half Cup?
- Green dot: price has closed above the upper line of a half-cup channel, bullish or bearish, a potential entry, and after a rebound back under the line, a fresh dot marks the level being reclaimed.
- Red dot: price has closed below the lower line of either channel, the downside mirror.
- Channel drawn: the pattern has passed validation against the Max % Breaks thresholds, and dots can keep printing until the channel completes.
- Beyond entries: the curved channels double as a trend read, framing longer-term opportunities while the shape develops, sometimes ahead of a completed cup formation.
Patterns are drawn with hindsight: each channel is backpainted from its detection point. Breakout dots, however, stay where they printed, so price reactions at the marked levels can be judged honestly; separate colors distinguish currently visible patterns from ones later updated or removed.
Half Cup Settings
- Swing Length: the swing detection period; larger values anchor patterns to longer-term structure.
- Max % Breaks Bottom / Max % Breaks Tops: the share of bars allowed to close beyond the lower or upper line before a candidate is rejected. Start near 100% to explore placements, then tighten for stricter detection.
- % Broadness: tilts the top and bottom lines diagonally to fit bullish or bearish curvature.
- Vertical Shift: nudges the whole pattern up or down on the chart.
- Channel Length: how far the channel lines extend.
Frequently Asked Questions
Free to use
Run it on Vela. Go further with a paid plan.
- Up to 500 strategy alerts, with webhook automation
- Up to 10× the chart history of Free
- Orderflow lookback up to full history
- More Quant usage to customize it, plus extra usage when you need it
- Futures data alongside crypto, stocks, forex and commodities
Also works on
Related indicators
Run it on Vela. Make it yours with Quant.
Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.





