# N Candles v6

Buys on bullish candlesticks and sells on bearish ones after finding N identical candlesticks in a row, with options for handling 'black sheep' candles.

Canonical: https://prismaticalgos.com/compendium/algo/86-n-candles-v6
Record ID: 86
Catalog rank: 747 (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/20000
Evidence label (unverified): backtest_shown

## 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

Claim warnings: HIGH PROFIT FACTOR: claimed 3.06. Treat as an in-sample or curve-fitted figure until reproduced out of sample.; THIN SAMPLE: 45 trades - below the ~100 needed before a win rate or profit factor carries much information.
Opacity warnings: UNDEFINED ENTRY TERM: the entry conditions are prose naming a concept with no numeric definition, so two readers would implement them differently. Advisory only -- this does not affect the score.

## Recorded profile

- symbols: AUDJPY, EURCHF, AUDUSD, USDJPY, GBPUSD, USDCHF, USDCAD, EURCAD, #AA, EURJPY, EURUSD
- timeframes: D1
- sessions: Not specified
- market_regime: any

## Indicators

- iChaikin: Not specified; applied to: Not specified
- iMA: Not specified; applied to: Not specified

## Recorded long-entry rules

- N identical bullish candlesticks in a row

## Recorded short-entry rules

- N identical bearish candlesticks in a row

## Recorded exit rules

- Closing all positions, Closing positions, which are opposite to the 'black sheep', Closing positions, which are in the same direction as the 'black sheep'

## Recorded filters

- Use trade hours - enable/disable the time filter
- Start hour - trading start hour
- End hour - trading end hour

## Risk controls

- Stop loss: not used if set to 0
- Take profit: not used if set to 0
- Position sizing: Lot - position volume
