# Gartley Harmonic Pattern Detection

Detects Gartley harmonic patterns on the chart and generates buy/sell signals based on Fibonacci retracement levels.

Canonical: https://prismaticalgos.com/compendium/algo/249-gartley-harmonic-pattern-detection
Record ID: 249
Catalog rank: 1703 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Price Action & Market Structure (E)
Source: https://www.mql5.com/en/articles/19331
Evidence label (unverified): source_code

## Scope and limitations

These are machine-extracted research records, not verified trading systems. Catalog rank measures specification detail and claimed evidence, not profitability. The catalog extraction pipeline did not independently backtest these records. Its separate selected testing ledger does not validate the wider corpus. Rules, labels and parameters can be incomplete or wrong; consult the original source and its reuse terms.

No endorsement, ownership claim or source-code reuse permission is implied.

## Extraction warnings

No automated warnings recorded; this is not validation.

## Recorded profile

- symbols: any
- timeframes: M15, H1, D1
- sessions: any
- market_regime: any

## Indicators

No indicator stack recorded.

## Recorded long-entry rules

- if IsSwingHigh(high, i, z) and IsSwingLow(low, j, z) and low[j] < X and low[j] < A and high[k] > A

## Recorded short-entry rules

- if IsSwingHigh(high, i, z) and IsSwingLow(low, j, z) and low[j] < X and low[j] < A and high[k] > A

## Recorded exit rules

- not explicitly stated in the text

## Recorded filters

- Not specified.

## Risk controls

- Stop loss: placed at the swing low that formed point D
- Take profit: set using a 1:3 risk-to-reward ratio, meaning the TP distance will be three times the size of the SL
- Position sizing: not explicitly stated in the text
