OPEN-SOURCE SCRIPT
Gabriel Falling & Rising Wedge Detector w/Breakout Price Target

How it works:
Resistance line (red dashed) from last 2 pivot highs; support line (blue dashed) from last 2 pivot lows — both must slope the same direction and converge (min convergence % tunable)
Breakout marker: purple "▲ BREAKOUT" label on close above resistance (falling wedge) or "▼ BREAKDOWN" below support (rising wedge)
Target zone: orange box + price label, projected either by wedge height at its widest point or back to the pattern start (selectable); zone width adjustable
Alerts fire with ticker, timeframe, breakout price, and target; wedge invalidates on wrong-side escape, apex reached without breakout, or age limit
Tunables: pivot length, min/max wedge width in bars, convergence %, per-direction toggles.
Resistance line (red dashed) from last 2 pivot highs; support line (blue dashed) from last 2 pivot lows — both must slope the same direction and converge (min convergence % tunable)
Breakout marker: purple "▲ BREAKOUT" label on close above resistance (falling wedge) or "▼ BREAKDOWN" below support (rising wedge)
Target zone: orange box + price label, projected either by wedge height at its widest point or back to the pattern start (selectable); zone width adjustable
Alerts fire with ticker, timeframe, breakout price, and target; wedge invalidates on wrong-side escape, apex reached without breakout, or age limit
Tunables: pivot length, min/max wedge width in bars, convergence %, per-direction toggles.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.