Simple Gap Indicator

Key Features:
Gap Detection: Automatically identifies gap-up and gap-down events based on user-defined sensitivity.
Customizable Display Styles: Choose between lines or boxes to represent gaps visually, depending on your preference.
Extend Options: Control how far the lines or boxes extend on the chart (None, Right, Left, Both).
User-Friendly Inputs: Adjust the number of bars to examine and sensitivity to gap size for precise customization.
Dynamic Visualization:
Gap-Up Events: Highlighted in green for easy identification of bullish gaps.
Gap-Down Events: Highlighted in red for bearish gaps.
Key Features:
Gap Detection: Automatically detects gap-up and gap-down situations by comparing the high and low values of consecutive bars from a custom timeframe.
Gap Sensitivity: Adjust the sensitivity level to determine the minimum size of a gap that should be considered significant. This allows for fine-tuning the detection based on market conditions and asset volatility.
Custom Timeframe Support: Users can define a separate timeframe for gap calculation, helping to identify gaps on different timeframes than the chart itself.
Visual Customization: Choose between two display styles—Lines or Boxes—to represent gaps. Customize gap colors (green for gap-ups, red for gap-downs) to suit your charting preferences.
Extend Option: Extend the gap display to the right, left, or both sides, or choose not to extend for a more compact chart.
Timeframe Mismatch Notification: The script alerts you if the gap's timeframe differs from the chart's timeframe, helping you understand the context of the gaps more clearly.
Ideal For:
Traders looking to spot price gaps on the chart and monitor if they are filled or remain unclosed.
Those who trade around gap-based strategies such as gap-filling or breakout strategies.
Users who prefer fine-tuning the sensitivity and display style of gap indicators.
This script is designed to be a reliable and flexible tool for gap traders, allowing for better gap analysis and a clearer visualization of key market movements.
Fixed an issue with color in box mode. The gap boxes now correctly display color as intended, improving visibility of underlying chart elements.
Additional Notes
No changes were made to the line display mode or other functionalities of the indicator.
Users are encouraged to update to this version for the best visual representation of gaps in box mode.
Enhanced Gap Sensitivity Calculation:
Gap sensitivity calculation is now based on ATR (Average True Range) instead of simple percentage difference, providing a more accurate detection of significant gaps.
User-defined sensitivity threshold (gap_sensitivity) allows fine-tuning the sensitivity level with improved precision.
Transparency Control:
Added option to control gap box transparency (gap_transparency) ranging from 0 (opaque) to 100 (fully transparent).
🔹 What's New?
Added "Show only gaps starting in visible screen" option
When enabled, the indicator displays only gaps that begin within the current chart view (zoomed/scrolled area).
Default: OFF (shows all gaps historically).
🔹 Why Use It?
✔ Reduces clutter by hiding gaps outside your active analysis range.
✔ Focuses on relevant price levels for tighter decision-making.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Sie können dieses Script für einen schnellen Zugang auf einem Chart Ihren Favoriten hinzufügen — erfahren Sie hier mehr.
Haftungsausschluss
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Sie können dieses Script für einen schnellen Zugang auf einem Chart Ihren Favoriten hinzufügen — erfahren Sie hier mehr.