Scans M5, M15, H1, H4, D1 charts for classical candlestick patterns, backtest their performance with realistic entry/exit simulation, and run a live scanner that alerts when a new pattern appears.
https://github.com/richardawr/mt5-ca...ner-backtester
Features
20+ patterns: Doji, Hammer, Engulfing, Morning/Evening Star, Three White Soldiers, Marubozu, Harami, Tweezers, Rising/Falling Three Methods, etc.
Stop Loss / Take Profit based on ATR (configurable multiplier, R:R ratio)
Higher‑timeframe ATR for fast timeframes (M5/M15 automatically use H1 ATR → realistic SL/TP)
Entry verification (stop orders only filled if touched on next candle)
Forward evaluation with intra‑candle path simulation – avoids look‑ahead bias
R‑level tracking (up to R5) and hit‑rate analysis
Volume confirmation and D1 trend filter
Deduplication – picks the highest‑priority pattern per candle
Session classification (Asia, London, NY, etc.)
Full backtests over date ranges → CSV reports, summary tables, and text reports
Live scanner – monitors all active timeframes and prints formatted alerts when a new candle closes
Position sizing (risk‑based) displayed in alerts
Basic Usage Live Scanner (default) Monitors all active timeframes (M5, M15, H1, H4, D1) and prints alerts whenever a new candle closes and a pattern is detected.
python mt5_multitf_pattern_scanner.py To scan only specific timeframes:
python mt5_multitf_pattern_scanner.py --timeframes H1 H4 D1
Press Ctrl+C to stop.
One‑Shot Scan Scan the latest closed candle on all active timeframes and exit.
python mt5_multitf_pattern_scanner.py --mode scan Quick Backtest (last N bars) Simulate patterns on the most recent N candles (default 500) for a given timeframe. Useful for a fast performance snapshot.
python mt5_multitf_pattern_scanner.py --mode backtest --bars 500 --timeframes H4 Full Backtest (date‑ranged) Run a complete backtest over a specified date range. Generates CSV files (detections, pattern summary, session summary) and a detailed text report.
https://www.forexfactory.com/attachm...2?d=1778154067
https://www.forexfactory.com/attachm...4?d=1778154096
https://www.forexfactory.com/attachm...5?d=1778154137
https://github.com/richardawr/mt5-ca...ner-backtester
Features
20+ patterns: Doji, Hammer, Engulfing, Morning/Evening Star, Three White Soldiers, Marubozu, Harami, Tweezers, Rising/Falling Three Methods, etc.
Stop Loss / Take Profit based on ATR (configurable multiplier, R:R ratio)
Higher‑timeframe ATR for fast timeframes (M5/M15 automatically use H1 ATR → realistic SL/TP)
Entry verification (stop orders only filled if touched on next candle)
Forward evaluation with intra‑candle path simulation – avoids look‑ahead bias
R‑level tracking (up to R5) and hit‑rate analysis
Volume confirmation and D1 trend filter
Deduplication – picks the highest‑priority pattern per candle
Session classification (Asia, London, NY, etc.)
Full backtests over date ranges → CSV reports, summary tables, and text reports
Live scanner – monitors all active timeframes and prints formatted alerts when a new candle closes
Position sizing (risk‑based) displayed in alerts
Basic Usage Live Scanner (default) Monitors all active timeframes (M5, M15, H1, H4, D1) and prints alerts whenever a new candle closes and a pattern is detected.
python mt5_multitf_pattern_scanner.py To scan only specific timeframes:
python mt5_multitf_pattern_scanner.py --timeframes H1 H4 D1
Press Ctrl+C to stop.
One‑Shot Scan Scan the latest closed candle on all active timeframes and exit.
python mt5_multitf_pattern_scanner.py --mode scan Quick Backtest (last N bars) Simulate patterns on the most recent N candles (default 500) for a given timeframe. Useful for a fast performance snapshot.
python mt5_multitf_pattern_scanner.py --mode backtest --bars 500 --timeframes H4 Full Backtest (date‑ranged) Run a complete backtest over a specified date range. Generates CSV files (detections, pattern summary, session summary) and a detailed text report.
https://www.forexfactory.com/attachm...2?d=1778154067
https://www.forexfactory.com/attachm...4?d=1778154096
https://www.forexfactory.com/attachm...5?d=1778154137
while the objective is profit, the job description is risk management