Flag Pattern Angelo
- 지표
- Brighton Mufaro Mudzingwa
- 버전: 1.0
- 활성화: 5
Brandon Angelo Flag Pattern — how it works
This indicator automatically detects classic bull and bear flag chart patterns in real time. The detection happens in three stages for each bar.
First it looks for a flagpole — a sharp, strong directional move over a configurable number of bars ( FlagpoleBars , default 5) that must exceed a minimum percentage size ( FlagpoleMinPct ). For a bullish flag the pole must close net higher than it opened; for a bearish flag, net lower.
Second it identifies the flag — a consolidation zone of between FlagMinBars and FlagMaxBars bars immediately following the pole. The flag's price range must not retrace more than FlagMaxRetrace percent of the pole's size, and it must not exceed the pole's extreme (no new highs above a bullish pole top, no new lows below a bearish pole bottom). This ensures the consolidation is a genuine pause rather than a reversal.
Third it confirms the breakout — the current bar must close beyond the flag's channel boundary (above the flag high for bulls, below the flag low for bears) and must itself be a directional candle. An optional volume filter can require the breakout candle's volume to exceed the average flag volume by a configurable multiplier.
When all three stages pass, an entry arrow is plotted at the breakout bar (below the low for buys, above the high for sells), and optional stop-loss markers are drawn at the flag's lowest low or highest high plus a buffer. The flag channel boundaries are drawn as dotted trendlines. Signals are only ever placed on closed bars, making the indicator fully non-repainting. Alerts fire via popup, push, or email on the most recently completed bar only
