# harami

Enters long when a black candle forms a harami above the 50-day MA and enters short when a white candle forms a harami below the 50-day MA.

Canonical: https://prismaticalgos.com/compendium/algo/1451-harami
Record ID: 1451
Catalog rank: 2993 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Price Action & Market Structure (E)
Source: https://www.prorealcode.com/prorealtime-trading-strategies/a-harami-trading-strategy-code-for-daily-eurusd/
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

Build warnings: DAILY_LOW_COUNT: daily-or-slower timeframe on a single instrument. Expect well under 100 trades in five years, so a backtest will rarely reach statistical significance on its own.

## Recorded profile

- symbols: EURUSD
- timeframes: D1
- sessions: Not specified
- market_regime: any

## Indicators

- MA: {"period": 50}; applied to: close

## Recorded long-entry rules

- high[0] < high[1]
- low[0] > low[1]
- close > MA(50)
- close < open

## Recorded short-entry rules

- high[0] < high[1]
- low[0] > low[1]
- close < MA(50)
- close > open

## Recorded exit rules

- barindex - tradeindex = 1

## Recorded filters

- exclude Sunday candles

## Risk controls

- Stop loss: null
- Take profit: null
- Position sizing: n shares
