Cup Finder calculates circular boundary levels across a user-defined loopback range and checks whether a specified percentage of historical bars fall within the computed channel width. When a valid cup structure is detected, the indicator displays informative text labels on the price chart showing the pattern's radius and inclusion rate, with optional channel lines. Main inputs allow adjusting the search loopback length, channel width tolerance, breakout source, and contained bar percentage threshold.
Automated cup pattern detection
Adjustable channel width and contained bar rate
Breakout source selection between Close and High/Low
Chart labels displaying radius and bar inclusion percentage
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Number of Bars to search
int
150
loopback
Channel Width of the Cup
input
5.
widthr
Source for Breakout
string
Close
check_hc
Contained Bar Rate %
input
75.
include_rate
Show Channels of Cups
bool
false
show_channel
Don't Show Labels
bool
false
no_label
Remove Old Lines
bool
false
remove_old_lines
Remove Old Labels
bool
false
remove_old_labels
Colors
color
color.lime
bullcolor
bearcolor
color
color.red
bearcolor
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
Sideway Zones Live is an overlay indicator that estimates inner and outer sideways bands from recent highs and lows with a rational quadratic kernel. It tracks swing pivots over a loopback period and counts bars that remain between the outer high and low. Afte
This indicator plots dynamic support and resistance levels on the price chart. It detects pivot highs and lows using the pivot length and tracks touches to build strength-based levels. Support and resistance zones appear as colored boxes while lines mark key l
This indicator identifies High Of Low Price (HOLP) and Low Of High Price (LOHP) candlestick setups based on price extremes over a specified lookback period. A HOLP signal triggers when the current bar closes above the high of a recent session low, whereas a LO
This indicator calculates and plots Donchian Channels directly on the price chart. It determines the highest high and lowest low over a user-selected lookback period using an optimized monotonic deque algorithm, as well as a middle basis line computed as their
This indicator tracks bar lows during consecutive rising highs using Pine Script arrays. When at least four lows accumulate or the price breaches the minimum low in the stack, the script sorts the recorded lows in ascending order and flushes them. It plots up
This indicator tracks smart money market structure directly on the price chart. It calculates dual-period swing highs and swing lows to detect Changes of Character (CHoCH), Breaks of Structure (BOS), inducements, and liquidity sweeps. When structural levels ar