OPEN-SOURCE SCRIPT
Gap & Crap Detector V1

Gap & Crap Detector (5% Gap Detector + % Labels)
This indicator automatically detects stocks that gap up ≥ 5% (adjustable) from the previous day’s close and tracks whether the move holds or fails over the next three candles.
🔍 How It Works
Yellow % Label → Appears on every candle that gaps up ≥ 5%, showing the exact percentage gap.
Gap & Go (Green Label) → Triggers when the next 3 candles close above the gap-day low, signaling momentum continuation.
Gap & Crap (Red Label) → Triggers immediately if any of the next 3 candles close below the gap-day low, signaling momentum failure.
⚙️ Inputs & Customization
Gap % Threshold – Default 5% (adjustable)
Label Size – Tiny / Small / Normal / Large / Huge
Opacity Controls – Independently set transparency for yellow, red, and green labels
Gap & Go Offset – Adjust how high above the candle the green label appears
🧠 Usage
Use this tool to identify breakout gaps and verify whether price action confirms (Gap & Go) or fails (Gap & Crap).
Ideal for momentum traders, swing traders, Ovtlyr Plan M, and gap strategy backtesting.
This indicator automatically detects stocks that gap up ≥ 5% (adjustable) from the previous day’s close and tracks whether the move holds or fails over the next three candles.
🔍 How It Works
Yellow % Label → Appears on every candle that gaps up ≥ 5%, showing the exact percentage gap.
Gap & Go (Green Label) → Triggers when the next 3 candles close above the gap-day low, signaling momentum continuation.
Gap & Crap (Red Label) → Triggers immediately if any of the next 3 candles close below the gap-day low, signaling momentum failure.
⚙️ Inputs & Customization
Gap % Threshold – Default 5% (adjustable)
Label Size – Tiny / Small / Normal / Large / Huge
Opacity Controls – Independently set transparency for yellow, red, and green labels
Gap & Go Offset – Adjust how high above the candle the green label appears
🧠 Usage
Use this tool to identify breakout gaps and verify whether price action confirms (Gap & Go) or fails (Gap & Crap).
Ideal for momentum traders, swing traders, Ovtlyr Plan M, and gap strategy backtesting.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.