# HAN

Trades based on the last two Heiken Ashi candles, buying when the latest candle is bearish and selling when it is bullish.

Canonical: https://prismaticalgos.com/compendium/algo/6424-han
Record ID: 6424
Catalog rank: 1670 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Risk, Money Management & Portfolio Overlays (J)
Source: https://www.mql5.com/en/code/13191
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: Not specified
- timeframes: Not specified
- sessions: Not specified
- market_regime: any

## Indicators

- Heiken Ashi: {}; applied to: null

## Recorded long-entry rules

- latest completed Heiken Ashi candle is bearish, its body is longer than previous candle's body, previous candle is also bearish, and latest candle has no upper wick

## Recorded short-entry rules

- latest completed Heiken Ashi candle is bullish, its body is longer than previous candle's body, previous candle is also bullish, and latest candle has no lower wick

## Recorded exit rules

- exit the short position if the latest completed Heiken Ashi candle is bearish, the previous candle is also bearish, and latest candle has no upper wick
- exit the long position if the latest completed Heiken Ashi candle is bullish, the previous candle is also bullish, and latest candle has no lower wick

## Recorded filters

- Not specified.

## Risk controls

- Stop loss: null
- Take profit: null
- Position sizing: based on the ATR indicator if MM = true, otherwise fixed base position size
