Roboballs42 Auto Bull/Bear Flag (ZigZag) + Targets [Parallel]Roboballs42 • Auto Bull/Bear Flag (ZigZag) + Targets automatically detects bull flags and bear flags using a ZigZag-style pivot engine, draws a parallel flag channel anchored back to the flagpole (xB), and projects the channel only a limited number of bars into the future (no infinite rays).
While a flag is active, the script shows a live breakout arrow as soon as price breaks the channel intrabar. Once the breakout confirms, the arrow locks at the breakout candle and the flag is considered complete. Patterns that get invalidated (price breaks the “wrong side” of the flag) are automatically deleted to keep the chart clean.
If you enjoy this indicator and want to support the project, BTC donations are appreciated:
bc1qvda8daynuqhpx8e9g07ddyelhpmv4ja5wc9cmm
Key Features
Auto Bull Flags + Bear Flags
Parallel channel that extends left to the flagpole (no incomplete flags)
Limited forward projection (Projection bars) to avoid endless lines
Live breakout arrow (realtime) + locked arrow on confirmation
Measured-move target plotted on confirmed breakout
Invalidation cleanup (delete patterns when price violates the wrong side)
Custom controls: pivot sensitivity, pole size (ATR), flag depth %, max flag length, touch tolerance, breakout type, invalidation type, and memory limits
Notes
“Early pivots” can repaint like a standard fast ZigZag.
This indicator is a pattern-visualization tool, not financial advice.
Penunjuk Pine Script®






















