OPEN-SOURCE SCRIPT
Zone Tap Counter: Support & Resistance Strength

What is this indicator?
This script is designed to help traders objectively monitor the strength and significance of price zones by counting and visualizing how many times price “taps” confirmed support and resistance levels. The indicator leverages swing high/low detection to automatically plot relevant zones and uses price tap frequency as an objective strength metric.
How does it work?
Zone Identification:
Tap Counting Logic:
Visual Feedback:
How to use it:
Originality & Calculation Details:
Disclaimer:
This indicator is for educational and analytical purposes only. It does not predict future price movement, guarantee profits, or recommend specific trades. Always use your own analysis and risk management. See TradingView’s House Rules for more details.
This script is designed to help traders objectively monitor the strength and significance of price zones by counting and visualizing how many times price “taps” confirmed support and resistance levels. The indicator leverages swing high/low detection to automatically plot relevant zones and uses price tap frequency as an objective strength metric.
How does it work?
Zone Identification:
- The script uses the Pine Script functions ta.pivothigh and ta.pivotlow to detect confirmed swing highs and lows on your chart. Each swing high establishes a resistance zone, and each swing low establishes a support zone.
- Only confirmed pivots are used, ensuring all signals are strictly non-repainting.
Tap Counting Logic:
- For every candle, the indicator checks whether price touches (comes within a small, user-set tolerance) of any currently tracked support or resistance zone. To avoid counting repeated taps in the same move, the script ensures only unique bar taps are registered.
- Each time price taps a zone, a counter for that zone is incremented.
- Both the tolerance for taps (percentage-based), and the depth/history of zones tracked are fully adjustable in settings.
Visual Feedback:
- Zones with more taps are drawn darker (lower transparency), making it easy to spot the strongest/hardest-tested levels on the chart.
- A label on each zone displays the current tap count (e.g., "3x"), giving direct feedback about which support/resistance are most significant in the current view.
- Only recent zones (user-configurable) are shown to keep charts clear and useful.
How to use it:
- Add the indicator to your TradingView chart.
- Set the swing length and tap tolerance in settings to match your market or timeframe (short swing length for scalping, longer swings for bigger structure).
- Watch for zones with high tap counts and darker lines: These zones represent areas where price has repeatedly reacted, suggesting they may be important for your trading decisions.
- You can adjust the minimum number of taps needed for a zone to be highlighted and the number of zones to display for your preferred visual clarity.
- Combine this tool with other analysis for confirmation—tap counts should not be seen as trading signals, but as supporting information.
Originality & Calculation Details:
- This script does NOT simply merge or overlay existing indicators. The calculation method is original: it uses swing-based support/resistance and applies unique tap-count logic, designed for objective zone strength visualization.
- No repainting logic is present.
- All code and visualization methods are documented and transparent.
Disclaimer:
This indicator is for educational and analytical purposes only. It does not predict future price movement, guarantee profits, or recommend specific trades. Always use your own analysis and risk management. See TradingView’s House Rules for more details.
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.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
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.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.