New AI Backtesting Assistant Launch!

Half Cup

Jul 18, 2024
Static chart image
Price Action Based
Support and Resistance
Signals
Drawing Tool
Patterns
Pivot Based (Retrospective)

Works on the Following Platforms

tradingviewSymbolTradingView
For free use on the TradingView platform
ninjatraderNinjaTrader
For free use on the NinjaTrader platform
metatrader4MetaTrader 4
For free use on the MetaTrader 4 platform
metatrader5MetaTrader 5
For free use on the MetaTrader 5 platform
thinkorswimThinkorswim
For free use on the Thinkorswim platform

The Half Cup indicator detects and displays patterns with the shape of a Half Cup, initiating a channel. From this channel, breakouts are detected and highlighted with dots.

Users can control the shape of the Half Cup and the channel length through various settings.

Do note that the displayed half cups are displayed retrospectively, making them subject to backpainting.

USAGE

indicator image

The idea behind the indicator is derived from the Cup & Handle pattern, which requires waiting for the pattern full completion.

Our Half Cup publication aims to find opportunities when the potential cup is only formed halfway.

indicator image

In this example, a green dot shows the first breakout of the upper channel extremity. A few bars later, the price went under it, after which it returned above, triggering a second green dot. Both triggers were good opportunities in this case, and the price rose afterward.

The Half Cup pattern can be the start of a potential complete Cup & Handle (As in the example above, a complete Cup pattern (without the Handle) is shown, manually drawn with dashed lines).

indicator image

Every green/red dot, whether on a bullish or bearish pattern, points to a breakout respectively above/below the channel.

indicator image

Besides drawing patterns and the corresponding breakouts, the Half Cup indicator can also provide insights into trends and potential opportunities in the long run.

DETAILS

Validation

indicator image

Several criteria must be fulfilled before a visible pattern on the chart is drawn.

Calculations are done beforehand to know where the Half Cup pattern would be positioned.

The pattern's bottom and top edges are checked for the number of bars whose closing price is outside the half-cup area. When the number of breakouts above/below is equal to or lower than the user-defined settings (Max % Breaks Top/Bottom), the pattern is drawn together with a brighter-colored channel next to it.

Dots highlighting the channel's breakout can be drawn from that moment until the end of both channel lines.

Positioning

indicator image

Users can adjust the following settings to fit their needs:

  • % Broadness: Moves the Top/Bottom line (bullish or bearish) diagonally upwards/downwards.
  • Vertical Shift: Shifts the entire pattern up/down.
  • Channel Length: Sets the line length of the channel.

Note that adjusting the position of the pattern will change the validation; the script will be rerun to check if patterns are still valid or if new patterns can be drawn. Some patterns may disappear, while new ones may appear.

Before adjusting the position, the user can set Max % Breaks Top/Bottom at 100%. When the positioning is set, Max % Breaks Top/Bottom can be set as desired.

Updated Drawings

indicator image

The Half Cup pattern is always drawn retrospectively (that is it is subject to backpainting), the channel is drawn from the bar from where the pattern is detected. Every breakout of the channel will remain visible as dots.

When a new swing high/low is found while the previous swing low/high remains the same, the pattern is updated to minimize clutter. The dots of earlier drawings will remain visible (to ensure no repainting occurs), but the color becomes faded, as such bright dots are associated with patterns that are visible on the chart, while faded dots are from removed/updated patterns.

SETTINGS

  • Swing Length: Period used for the swing detection, with higher values returning longer-term Swing Levels.

Validation

  • Max % Breaks Bottom: Allowed maximum amount of bars where the closing price is below the bottom of the Half Cup pattern against the total width of the pattern (bars).
  • Max % Breaks Top: Allowed maximum amount of bars where the closing price is above the top of the Half Cup pattern against the total width of the pattern (bars).

Positioning

  • % Broadness: Moves the Top/Bottom line (bullish or bearish) diagonally upwards/downwards.
  • Vertical Shift: Shifts the entire pattern up/down.
  • Channel Length: Sets the line length of the channel.

Trading is risky and many will lose money in connection with trading activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other markets involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.

Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.

As a provider of technical analysis tools for charting platforms, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content or tool we provide.

Charts used on this site are by TradingView in which the majority of our tools are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com. TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.

This does not represent our full Disclaimer. Please read our full disclaimer.

© 2025 LuxAlgo Global, LLC.