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. اقرأ المزيد في شروط الاستخدام.