HH HL LL LH Trading Guide

Last updated: July 22, 2026

The HH HL LL LH (ZigZag) is a quantitative technical analysis tool. HH HL LL LH Indicator Higher High, Higher Low, Lower Low, Lower High labels based on ZigZag.

What does the indicator show?

  • Market Structure & Momentum: Visualizes prevailing trend directions and key reversal zones.
  • BUY / SELL Signals: Highlights confirmed entry and exit opportunities based on quantitative rules.
  • Dynamic Boundaries: Provides adaptive levels for managing trade risk and reward expectations.

Key Settings

  • ZigZag Length (zigzagLen): Controls the calculation period and sensitivity for market detection.
  • Show Zigzag Lines (showZigzag): Controls the calculation period and sensitivity for market detection.
  • Show Labels (showLabels): Controls the calculation period and sensitivity for market detection.
  • Label Offset (labelOffset): Controls the calculation period and sensitivity for market detection.
  • Show Event Backgrounds (showEvents): Controls the calculation period and sensitivity for market detection.
  • HH (hh): Controls the calculation period and sensitivity for market detection.
  • HL (hl): Controls the calculation period and sensitivity for market detection.
  • LL (ll): Controls the calculation period and sensitivity for market detection.
  • LH (lh): Controls the calculation period and sensitivity for market detection.
  • Event HH (event_hh): Controls the calculation period and sensitivity for market detection.
  • Event HL (event_hl): Controls the calculation period and sensitivity for market detection.
  • Event LL (event_ll): Controls the calculation period and sensitivity for market detection.
  • Event LH (event_lh): Controls the calculation period and sensitivity for market detection.
  • Last was HH Event (last_was_hh): Controls the calculation period and sensitivity for market detection.
  • Last was LH Event (last_was_lh): Controls the calculation period and sensitivity for market detection.
  • Last was HL Event (last_was_hl): Controls the calculation period and sensitivity for market detection.
  • Last was LL Event (last_was_ll): Controls the calculation period and sensitivity for market detection.
  • Last Overall was HH (last_overall_was_hh): Controls the calculation period and sensitivity for market detection.
  • Last Overall was HL (last_overall_was_hl): Controls the calculation period and sensitivity for market detection.
  • Last Overall was LL (last_overall_was_ll): Controls the calculation period and sensitivity for market detection.
  • Last Overall was LH (last_overall_was_lh): Controls the calculation period and sensitivity for market detection.
  • Higher High (hh): Controls the calculation period and sensitivity for market detection.
  • Higher Low (hl): Controls the calculation period and sensitivity for market detection.
  • Lower Low (ll): Controls the calculation period and sensitivity for market detection.
  • Lower High (lh): Controls the calculation period and sensitivity for market detection.
  • Event HH (event_hh): Controls the calculation period and sensitivity for market detection.
  • Event HL (event_hl): Controls the calculation period and sensitivity for market detection.
  • Event LL (event_ll): Controls the calculation period and sensitivity for market detection.
  • Event LH (event_lh): Controls the calculation period and sensitivity for market detection.
  • Last was HH Event (last_was_hh): Controls the calculation period and sensitivity for market detection.
  • Last was LH Event (last_was_lh): Controls the calculation period and sensitivity for market detection.
  • Last was HL Event (last_was_hl): Controls the calculation period and sensitivity for market detection.
  • Last was LL Event (last_was_ll): Controls the calculation period and sensitivity for market detection.
  • Last Overall was HH (last_overall_was_hh): Controls the calculation period and sensitivity for market detection.
  • Last Overall was HL (last_overall_was_hl): Controls the calculation period and sensitivity for market detection.
  • Last Overall was LL (last_overall_was_ll): Controls the calculation period and sensitivity for market detection.
  • Last Overall was LH (last_overall_was_lh): Controls the calculation period and sensitivity for market detection.

How to use Strategy Parameters (Condition Source)

Within the Strategy Tester module, this indicator can be used both as a direct signal source and as a market-state filter.

1. Signal Events

  • hh - Higher High event signal.
  • hl - Higher Low event signal.
  • ll - Lower Low event signal.
  • lh - Lower High event signal.
  • event_hh - Event HH event signal.
  • event_hl - Event HL event signal.
  • event_ll - Event LL event signal.
  • event_lh - Event LH event signal.
  • last_was_hh - Last was HH Event event signal.
  • last_was_lh - Last was LH Event event signal.
  • last_was_hl - Last was HL Event event signal.
  • last_was_ll - Last was LL Event event signal.
  • last_overall_was_hh - Last Overall was HH event signal.
  • last_overall_was_hl - Last Overall was HL event signal.
  • last_overall_was_ll - Last Overall was LL event signal.
  • last_overall_was_lh - Last Overall was LH event signal.

2. Filters and Trade Levels

  • zigzagLen - ZigZag Length value used for structural qualification or thresholds.
  • showZigzag - Show Zigzag Lines value used for structural qualification or thresholds.
  • showLabels - Show Labels value used for structural qualification or thresholds.
  • labelOffset - Label Offset value used for structural qualification or thresholds.
  • showEvents - Show Event Backgrounds value used for structural qualification or thresholds.
  • hh - HH value used for structural qualification or thresholds.
  • hl - HL value used for structural qualification or thresholds.
  • ll - LL value used for structural qualification or thresholds.
  • lh - LH value used for structural qualification or thresholds.
  • event_hh - Event HH value used for structural qualification or thresholds.
  • event_hl - Event HL value used for structural qualification or thresholds.
  • event_ll - Event LL value used for structural qualification or thresholds.
  • event_lh - Event LH value used for structural qualification or thresholds.
  • last_was_hh - Last was HH Event value used for structural qualification or thresholds.
  • last_was_lh - Last was LH Event value used for structural qualification or thresholds.
  • last_was_hl - Last was HL Event value used for structural qualification or thresholds.
  • last_was_ll - Last was LL Event value used for structural qualification or thresholds.
  • last_overall_was_hh - Last Overall was HH value used for structural qualification or thresholds.
  • last_overall_was_hl - Last Overall was HL value used for structural qualification or thresholds.
  • last_overall_was_ll - Last Overall was LL value used for structural qualification or thresholds.
  • last_overall_was_lh - Last Overall was LH value used for structural qualification or thresholds.

Strategy Example: Enter Long when buySignal is true and trendFilter == 1, ensuring trades align with dominant momentum.

Continue Research

Explore the full academy, the product documentation, and the main platform pages for deeper crypto backtesting and strategy research.

Browse all academy guides Read the documentation Compare platform plans See the research engine