Hammer Reversal StructureThe script combines:
Hammer / inverse hammer geometry
Recent support or resistance zone interaction
Sweep-and-reclaim behavior
Optional cluster shelf and prior range context
Volume confirmation
Optional EMA 9 / EMA 20 / VWAP confluence notes
This version is designed to reduce weak textbook-only signals by requiring the candle to form in a more meaningful location on the chart. It supports both Trend and Consolidation modes, includes configurable strictness, and offers debug tools such as candidate labels, gate tables, and plotted structure levels for review and tuning.
Signals shown:
H = Bull Hammer
IH = Bearish Inverse Hammer
Best used as a reversal-context tool, not as a standalone entry system.
Pine Script® indicator






















