Self-test of stoch_spec.md, 2026-11-11T17:08:12.157Z ok fast %K by hand at bar 15 (= 100) ok fast %K by hand at bar 20 (= 200/7) ok fast %K on every synthetic bar ok %K = 3-bar average of fast %K ok %D = 3-bar average of %K ok zero range gives fast %K 50 ok ZONE long when %K goes from <= 20 to above 20 ok ZONE: no long when the previous %K is above 20 ok ZONE short when %K goes from >= 80 to below 80 ok KD long: %K crosses above %D while %D < 20 ok KD: no long when %D is not below 20 ok KD short: %K crosses below %D while %D > 80 ok no signal without the values of the bar before ok stop touched inside a minute fills at the stop ok a minute opening beyond the stop fills at its open ok stop and target in one minute: the stop ok target touched fills at the target ok a minute opening beyond the target fills at its open ok the entry minute's own range counts for the stop ok oscillator exit: %K >= 80 at a bar close, out at the next minute open ok an oscillator exit on the last minute becomes the 16:59 close ok no event: closed at the last minute data: 8293892 minutes, 562858 bars, 5905 forex days, 5903 with a bar in the window ok fast %K and the 14-bar range on every real bar - 0 differences ok STO-ZONE: every real trade (signal, window, entry, stop, exits, no overlap) - 13743 trades ok STO-ZONE: engine = reference, trade by trade - engine 13743, reference 13743, differences 0 ok STO-ZONE: the control at offset 0 reproduces the real trades - 13743 control trades, 0 differences ok STO-KD: every real trade (signal, window, entry, stop, exits, no overlap) - 14316 trades ok STO-KD: engine = reference, trade by trade - engine 14316, reference 14316, differences 0 ok STO-KD: the control at offset 0 reproduces the real trades - 14316 control trades, 0 differences ok STO-2R: every real trade (signal, window, entry, stop, exits, no overlap) - 11627 trades ok STO-2R: engine = reference, trade by trade - engine 11627, reference 11627, differences 0 ok STO-2R: the control at offset 0 reproduces the real trades - 11627 control trades, 0 differences PASSED