# ThreeBarPattern

Detects bullish and bearish candlestick patterns and executes trades based on RSI and MACD confirmations.

Canonical: https://prismaticalgos.com/compendium/algo/282-threebarpattern
Record ID: 282
Catalog rank: 2224 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Mean Reversion & Counter-Trend (B)
Source: https://www.mql5.com/en/articles/17702
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: _Symbol
- timeframes: M5
- sessions: Not specified
- market_regime: trending|ranging|volatile|breakout|any

## Indicators

- RSI: {"period": 14}; applied to: close
- MACD: {"fast_period": 12, "signal_period": 9, "slow_period": 26}; applied to: close

## Recorded long-entry rules

- Three consecutive bullish candles, followed by 1 or 2 bearish candles, and a confirming bullish candle
- RSI > 50 and MACD main > MACD signal

## Recorded short-entry rules

- Three consecutive bearish candles, followed by 1 or 2 bullish candles, and a confirming bearish candle
- RSI < 50 and MACD main < MACD signal

## Recorded exit rules

- Not specified.

## Recorded filters

- Not specified.

## Risk controls

- Stop loss: StopLoss * Point
- Take profit: TakeProfit * Point
- Position sizing: In_Lot
