This TradingView script identifies and visualizes price gaps that occur between consecutive bars, providing traders with a powerful tool to track potential market shifts. It highlights gap-ups and gap-downs where the price difference between two consecutive bars exceeds a user-defined threshold, offering an insightful view into market behavior.
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.