OPEN-SOURCE SCRIPT
Gabriel Cypher Pattern Detector

Bullish: X low → A high → B at 0.382–0.618 of XA → C at 1.130–1.414 extension of XA → D projected at 0.786 of XC
Bearish: exact mirror
When C confirms, it labels "waiting for D" and draws a dashed line at the projected D price
When D is hit (the trigger you asked for): draws the full X-A-B-C-D legs, marks D as the Breakout Point, and draws the Breakout Range — T1 at 0.382 and T2 at 0.618 retrace of the CD leg — plus a dotted stop line just beyond X
Alert fires on D-hit stating bullish/bearish with entry, stop, T1, T2 prices (use "Any alert() function call" as before)
Pattern invalidates automatically if price runs beyond X before reaching D
Fib tolerance is adjustable in settings (default ±6%) since real charts rarely hit ratios perfectly.
Bearish: exact mirror
When C confirms, it labels "waiting for D" and draws a dashed line at the projected D price
When D is hit (the trigger you asked for): draws the full X-A-B-C-D legs, marks D as the Breakout Point, and draws the Breakout Range — T1 at 0.382 and T2 at 0.618 retrace of the CD leg — plus a dotted stop line just beyond X
Alert fires on D-hit stating bullish/bearish with entry, stop, T1, T2 prices (use "Any alert() function call" as before)
Pattern invalidates automatically if price runs beyond X before reaching D
Fib tolerance is adjustable in settings (default ±6%) since real charts rarely hit ratios perfectly.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.