# ZigZag PA Strategy V4.1

Detects various chart patterns and Fibonacci retracement levels to generate buy/sell signals.

Canonical: https://prismaticalgos.com/compendium/algo/1927-zigzag-pa-strategy-v4-1
Record ID: 1927
Catalog rank: 2848 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Price Action & Market Structure (E)
Source: https://www.prorealcode.com/topic/zigzag-pa-strategy-v4-1-code-conversion-request/
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: 60
- sessions: any
- market_regime: any

## Indicators

- zigzag: {}; applied to: close

## Recorded long-entry rules

- buy_patterns_00 or buy_patterns_01 and close <= f_last_fib(target01_ew_rate)

## Recorded short-entry rules

- sel_patterns_00 or sel_patterns_01 and close >= f_last_fib(target01_ew_rate)

## Recorded exit rules

- high >= f_last_fib(target01_tp_rate) or low <= f_last_fib(target01_sl_rate)
- low <= f_last_fib(target01_tp_rate) or high >= f_last_fib(target01_sl_rate)

## Recorded filters

- showPatterns
- showFib0000
- showFib0236
- showFib0382
- showFib0500
- showFib0618
- showFib0764
- showFib1000
- useAltTF
- useHA

## Risk controls

- Stop loss: low <= f_last_fib(target01_sl_rate) or high >= f_last_fib(target01_sl_rate)
- Take profit: high >= f_last_fib(target01_tp_rate) or low <= f_last_fib(target01_tp_rate)
- Position sizing: target01_trade_size
