Engulfing candle self-test, 2026-10-21T19:46:44.599Z 1. Hand-worked bars (after 520 flat warm-up bars at 2000) A. bullish engulfing (2000/2001/1990/1992 then 1992/2005/1989/2003): long at the next open 2003, stop 1989 (R 14); 1R target 2017 hit in the next bar, 2R target 2031 in the one after; all four variants take it (P below its 20-bar average, E above the 200-bar EMA) [ok] EG-1R: 0.9786 R [ok] EG-2R: 1.9786 R; the filtered variants take it too [ok] reference identical (4 variants) B. bearish engulfing (2000/2008/1999/2006 then 2006/2007/1990/1995): short at 1996, stop 2007 (R 11); a later bar opens at 2010, beyond the stop: out at 2010 [ok] gapped stop at the open: -1.3000 R; reference identical C. no pattern: a doji before the up bar; an up bar closing exactly at the down bar's open (the close must be strictly beyond) [ok] no trade; reference identical D. stop and target reached in the same minute: the stop; E. the next bar opens below the stop (1985 < 1989): no trade [ok] stopped at 1989 [ok] no trade when the entry is already beyond the stop F. the filters, after warm-up at 1900 and a jump to 2000: a bullish engulfing with P above its 20-bar average is not a reversal (EG-2R-REV skips it) but is above the 200-bar EMA (EG-2R-200 takes it); a bearish one the other way round [ok] filters as expected [ok] reference identical G. one position at a time: a second bullish engulfing while the long is open is ignored; H. a trade still open at the end of the data closes at the last close [ok] one trade, the second pattern ignored [ok] closed at 2008 at the end of the data 2. Real data: engine against the independent reference 7067434 minutes 2004-06-11 00:19 .. 2026-10-07 16:57 New York; 129857 1-hour bars [ok] EG-1R: 12186 trades, reference 12186, identical [ok] EG-2R: 8825 trades, reference 8825, identical [ok] EG-2R-REV: 6276 trades, reference 6276, identical [ok] EG-2R-200: 6254 trades, reference 6254, identical 3. Control at offset 0 [ok] EG-1R: 12186 control trades identical to the real ones [ok] EG-2R: 8825 control trades identical to the real ones [ok] EG-2R-REV: 6276 control trades identical to the real ones [ok] EG-2R-200: 6254 control trades identical to the real ones PASSED