Opening range + fair value gap self-test, 2026-10-21T16:27:23.997Z 1. Hand-worked days (Tuesday 9 Jan 2024; stamps are bar closes, 09:31 = 571) A. bar 580 closes 18025 above 18010 (previous close 18000); bar 581 low 18020 > bar 579 high 18000 (gap) -> long at the open of 582 (18036), stop 18004 (low of 580), R 32 points, target 18100, hit by bar 600 [ok] long, target 18100: 1264.24 dollars, 1.9754 R [ok] OFV-2R-FIRST takes the same trade (it is the first break) [ok] reference identical (both variants) B. first break (580) has no gap (low of 581 = high of 579); price closes back inside at 585; second break at 590 with a gap -> OFV-2R trades it, OFV-2R-FIRST does not [ok] OFV-2R: long at the open of 592, stop 18005; OFV-2R-FIRST: no trade [ok] reference identical (both variants) C. a wick above the range that closes inside is not a break; D. a break whose entry bar would start after 11:00 ends the day; one starting at 10:59 is allowed [ok] wick only: no trade [ok] break at 660: the entry bar (662) starts at 11:01 -> no trade [ok] break at 658: the entry bar (660) starts at 10:59 -> traded E. short with the stop and the target touched in one later bar -> the stop; F. a missing range bar -> no trade; G. entry already beyond the stop -> no trade [ok] short at 17964, stop 17996 and target 17900 both in bar 590 -> stopped: -655.76 dollars [ok] range bar 573 missing: no trade [ok] entry 18008 already below the stop 18011: no trade H. an early-close day: an open trade closes at the close of the last bar before the early close [ok] close 13:15: the trade closes there 2. Real data: engine against the independent reference 2373779 bars 2020-01-01 18:01 .. 2026-09-25 17:00 New York; 1735 session days, 1733 with a full opening range [ok] OFV-2R: 1527 trades, reference 1527, identical [ok] OFV-2R-FIRST: 938 trades, reference 938, identical 3. Control at offset 0 [ok] OFV-2R: 1527 control trades at the real entry bars, same direction and R [ok] OFV-2R-FIRST: 938 control trades at the real entry bars, same direction and R PASSED