TDI self-test, 2026-10-22T10:35:49.694Z 1. Bars and indicator by hand A. Minutes closing 00:59, 01:00 and 01:01 New York: the first two belong to the bar closing at 01:00, the third to the one closing at 05:00 (broker clock, New York + 7) [ok] bars close at 2010-01-05 01:00, 2010-01-05 05:00 B. RSI(13): 7 rises and 6 falls of 1 -> average gain 7/13, loss 6/13, RSI 53.8462; then a rise of 2 -> gain (7/13 x 12 + 2) / 13, loss (6/13 x 12) / 13; green = mean of the last 2 RSI, red of the last 7, yellow of the last 34; bands = yellow +/- 1.6185 x population sd of the last 34 [ok] RSI 53.8462, 60.4396 [ok] lines and bands at bar 50 2. The variants on hand-made lines (one minute per bar): a touch at 501 then a cross up at 502; all three long conditions first at 503; a hook at 504; a touch (not a cross) down at 505; a cross down at 507 with all three short conditions; a short hook at 509 [ok] TDI-X: L 503-508, S 508--1 (long from the cross, reversed at the cross down, open at the end) [ok] TDI-HOOK: L 503-505, L 507-508, S 508-510 (out at the hook; the touch at 505 is not a cross down, but rising from it at 506 is a new cross up; reversed at the cross down; out at the short hook) [ok] TDI-50: L 504-508, S 508--1 (in when all three hold, out at the cross down, short at the same fill) [ok] pips: TDI-X long 4.00 net 3. Real data: engine against the independent reference 8326700 minutes 2004-01-01 00:03 .. 2026-09-28 15:46 New York; 35378 4-hour bars (first closes 2004-01-01 01:00, 2004-01-01 05:00) [ok] TDI-X: 6189 trades, reference 6189, identical [ok] TDI-50: 3808 trades, reference 3808, identical [ok] TDI-HOOK: 6189 trades, reference 6189, identical 4. Control at offset 0 [ok] TDI-X: 6188 control trades identical to the real ones [ok] TDI-50: 3808 control trades identical to the real ones [ok] TDI-HOOK: 6188 control trades identical to the real ones PASSED