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.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.