# Forward test: Liquidity Sweep Reversal NQ (LSR-NQ), protocol v1.0

**Frozen and published on 2026-11-16.** Start: the session that opens at 18:00 New York on Sunday 2026-11-22. SHA-256: `lsr_forward.js` 8e60aedff3daaf65aa7c49ba884e47baff2c4fbc666cd1e406cb798f086ca485, `lsr_compare.js` 026e9c9000011e22ccf33f1ab28e31239f57b2798d6d2d5f3933f5b50d0ed536.

**Approved by the owner on 2026-11-16 ("Aprob"), with the start after publication.**
- **Frozen on the day it is published on the site:** the start date and the SHA-256 of `lsr_forward.js` and `lsr_compare.js` are written in then.
- Publication needs the owner's explicit OK.
- Nothing below may change during the test.

**One-line summary:** a pre-registered forward test of the owner's NinjaTrader indicator SweepNQ v2, published as Liquidity Sweep Reversal NQ.
- **The rule:** on NQ, sell when price trades above a recent high and a 5-minute close comes back below it after a stretched move into it; buy the mirror image at a recent low.
- **The trade:** the stop is 2 ticks beyond the sweep extreme. There is no target; the trade is held until it is stopped or reversed by the opposite signal.
- **The record:** a **paper series**: the frozen rule, computed on new 1-minute data month by month, with $15.76 costs per trade. No orders are placed.

**Start (recommended):** the first NQ trading day after this protocol is frozen and published on the site, i.e. the session that opens at 18:00 New York on the first Sunday after publication. That date is written here before any forward trade is counted. Nothing before the start counts in the evaluation.
- *Alternative, the owner's call:* 29 October 2026, the first day after the last rule change. Not recommended: the decision to publish was taken on 16 Nov **after** seeing the first 19 paper trades, which were profitable, so counting them would bias the record.
- The paper watch from 29 October to the start is shown separately (section 4).

## 1. What this test is, and what it is not

- **A forward evaluation of a rule designed on the data it was first measured on.**
  - SweepNQ was built on 2026-10-28 on NQ 2020-01-01 to 2026-09-25.
  - v2 was **picked from six versions after seeing their results** on those same data, prompted by two sells of 27 Oct that the owner's chart showed stopped within minutes.
  - On the design data: 2,253 trades, +$89 a trade after costs, 21% winners, profit factor 1.13, every year positive except 2025. **The t-statistic of all trades is only 1.77.** None of this is evidence: it is the data the rule was fitted on.
- **An out-of-sample backtest on 2010-2019** (`research/lsr_spec.md`, NQ minutes the rule never saw) is a separate test with its own verdict. It was run once on 2026-11-16: **buried, 3 of 6 gates** (3,179 trades, +$3.18 a trade after costs). Before costs it made 1.98% of the day range a trade (t 2.85), and the costs of those years, 1.3% to 2.6% of the day range, took it. [The article](/posts/liquidity-sweep-reversal-strategy-nq/). This forward record does not depend on it.
- **How it differs from the [Change of Character (ChoCh) NQ test](/posts/change-of-character-choch-strategy-nq/)** (4 versions; none passed every gate; best 2 of 6):

  | | ChoCh NQ | LSR-NQ |
  |---|---|---|
  | Hours | sweeps only from 09:30 to 11:30 | any hour, day and night |
  | Levels | the previous regular session's (09:30-16:00) high and low, and the overnight high and low | the previous full trading day's (18:00-17:00) high and low, the overnight high and low, and 60-minute swing highs and lows |
  | Confirmation | a break of a lower-high swing with a large candle (body at least 1 ATR) within 60 minutes | none: a 5-minute close back inside the level within 240 minutes, after a move of at least half a day's range into the sweep |
  | Exit | a fixed 2R target, or out at the session close | no target and no time exit; the trade lasts until its stop or the opposite signal |
  | Trades | one a day | several a day, held across nights |

  Both take sweeps of the same kind of levels. They differ in when they trade, what confirms the turn and how the trade ends.
- **A paper record, not trading.**
  - Fills are the rule's assumed fills: the next minute's open, and the stop at its level or at a minute's open beyond it.
  - Costs are $15.76 per round trip per contract.
  - It says nothing about real slippage beyond one tick per fill. NinjaTrader's live feed on the owner's machine is delayed, so live chart signals can appear late; the record is computed from complete historical data.
- **The indicator's code is not published for now** (owner, 2026-11-16). The rule in section 2 is complete enough to rebuild it.
- **It cannot confirm an edge quickly.** The rule wins about one trade in five, with large winners, so single trades vary a lot. Based on the in-sample trades from April 2025 to September 2026 (mean +$67, standard deviation $3,138, at today's day ranges):

| Closed trades | About (years, ~335 a year) | 95% interval half-width on the mean | Chance of t of 2 or more if the true mean is +$67 | If it is half of that |
|---|---|---|---|---|
| 300 | 0.9 | $355 | 5% | 3% |
| 600 | 1.8 | $251 | 7% | 4% |
| 900 | 2.7 | $205 | 9% | 5% |

  The in-sample trades also had losing streaks of up to 23 trades.

## 2. The rule (frozen; nothing here may change during the test)

- **Market:** NQ (E-mini Nasdaq-100 futures, $20 a point, tick 0.25).
  - Data: NinjaTrader 1-minute history exported by the owner with `FuturesDataExporter.cs`: front contract, global merge policy "Merge back adjusted", Last, instrument trading hours, **overnight session included**.
  - New York clock, bars stamped at their close.
- **The rule:** SweepNQ v2 as run by `research/nt8/SweepNQ.cs` (SHA-256 08abfa556efaa2fd6e27cf4cccf0fda6481e9e3cc797b273250ab20c9953e122) and its reference `research/nt8/sweep_ref.js` (SHA-256 e443244e3ff88b288e49c2f9a373e1094de688ce5cdadc55af02744081da950d), default settings (`DEF`). The two were checked equal event by event on 2026-10-28 (23,231 events). In words:
  - **Day and range:**
    - the trading day runs 18:00-17:00; a full day has at least 600 bars;
    - ADR = the mean high-low of the last 14 full days.
  - **Levels:**
    - the previous full day's high and low;
    - the overnight high and low (18:01-09:30, at least 300 bars, from the first bar after 09:30);
    - 60-minute swing highs and lows (3 hours on each side);
    - a level within 2 points of a live level of the same side is not added; a level lives 3 trading days.
  - **Sweep and return:**
    - a bar trades beyond a level;
    - the level is dropped if price goes more than 0.5 ADR beyond it, or does not return within 240 minutes;
    - a return is a close back on the level's original side, on a 5-minute stamp, with the sweep at least 0.02 ADR deep.
  - **Signal:** at a return, SELL at a high level and BUY at a low level, if the move into the sweep extreme over the last 360 one-minute bars is at least 0.5 ADR, no position in that direction is open, and no other signal is already pending on that bar.
  - **Trade:**
    - entry at the next bar's open;
    - stop 2 ticks beyond the sweep extreme;
    - an opposite signal reverses at the next bar's open;
    - no target and no time exit; one position at a time.
- **Costs and units:** $15.76 per round trip per contract, each trade including reversals. Results in dollars per contract and in points. **R** = entry to stop, in points.

## 3. How the series is computed

- **The official record:**
  - Each month, `sweep_ref.js`, unchanged, is run over the whole monthly NQ export, with no cut. The export is the one already used by the other NQ forward records, and it holds at least 60 trading days before the start, enough for the rule's warm-up.
  - The trades whose **entry** is at or after the start are kept.
  - A trade entered before the start is not counted, even if it is still open at the start.
  - A small forward script, `research/lsr_forward.js`, loads the minutes, calls `run`, keeps those trades, lists the holes (below) and checks that the previous month's trades reproduce. It contains no rule. It is written before the freeze and its hash is recorded here.
  - Any change to `sweep_ref.js` makes a new test.
- **Each month the whole forward window is recomputed.** Every earlier forward trade must reproduce in entry and exit time and in dollar result. Prices may differ by a constant after a roll; nothing else may. Any other difference is published and explained.
- **The indicator's own journal as a check.**
  - The journal is NinjaTrader's `Documents\NinjaTrader 8\ripbacktest\SweepNQ_NQ_1Minute.csv`, rewritten at each chart reload; signals are the same on any chart timeframe. The owner reloads the 1-minute chart before each monthly review.
  - It is compared with the official record event by event (levels, sweeps, signals, entries, exits) with `sweep_compare.js`, from 35 days after the journal's first day.
  - `sweep_compare.js` today reads the published file with its 25 Sep 2026 cut. A copy that takes the monthly export as an argument, `lsr_compare.js`, is written at the freeze and its hash recorded.
  - A difference is published with its cause. The official record stands, since it is reproducible from the saved file.
- **Data files:** each monthly export is kept with its date, its SHA-256 and its last bar.
- **Holes:**
  - a hole is a run of 30 or more minutes without a bar inside a trading day, outside exchange closures and scheduled short sessions (a weekday with no bar, or a day that ends 30 or more minutes early, counts too), or a trading day that opens after 18:15;
  - holes are never filled;
  - a trade is flagged if a hole lies between 18:00 of the evening that began the trading day before its signal and its exit;
  - every result is also reported without flagged trades.

## 4. Records and reporting

- **Per trade:**
  - date and time of the signal;
  - the level (PDH, PDL, ONH, ONL, SWH, SWL) and its price, and the sweep extreme;
  - direction, entry, stop, exit time and price, and the reason (stop / reverse);
  - the result in points, dollars and R;
  - the hold time, the grade (A/B, descriptive), and whether it touched a hole.
- **Monthly update.** The first is in the first week of December 2026, with the November export. It shows:
  - the trades of the month and of the whole window;
  - mean per trade, profit factor, win rate (with its Wilson interval), average win and loss in points and their ratio, the longest losing streak, and drawdown on closed trades;
  - the export's hash, last bar and holes, and the reproduction and journal checks.
  - Months with no trades are reported too.
- **The paper watch before the start, shown separately and not counted:**
  - **Rule:** unchanged since the evening of 2026-10-28.
  - **Review of 16 Nov 2026, from the NinjaTrader journal:** 20 signals and 19 closed trades from 29 Oct. 5 were winners (26%, Wilson interval 12-49%): average win +493 points, average loss -109 points, net +934.75 points (about +$18,400 per contract after costs). Exits: 14 stops, 5 reversals. Longest losing streak 6. One trade was open from 2026-11-16 01:31.
  - **Checked on 2026-11-16, before publication:** the journal agrees with `sweep_ref.js` run on the owner's NinjaTrader export of the same day (`data_nq_old`, last bar 2026-11-16 02:40), event by event from 22 September to 16 November 01:31 (205 levels, 158 sweeps, 59 signals, 59 entries and 58 exits; `lsr_compare.js`). `lsr_forward.js`, with its start set to 29 October for this check only, gives the same 19 trades. Record: `forward_test/lsr_paper_watch/lsr_paper_watch_check.json`.
  - **Context:** for comparison, the design data gave 21% winners, +191 / -45 points (a ratio of 4.2, against 4.5 here). Points are about 2.4 times larger now because the day range is (ADR about 450 points).
- **The page.** `/forward-test/liquidity-sweep-reversal-nq/` shows the protocol and the record. It links:
  - the ChoCh NQ test;
  - the 2010-2019 test;
  - the other forward records.

## 5. Evaluation (fixed now)

- **Evaluation points:** formal evaluations at **300, 600 and 900 closed trades** (about 0.9, 1.8 and 2.7 years). Updates before them are descriptive only.
- **Primary measure:**
  - the mean net dollars per trade, with its standard error and 95% interval (t critical value, n - 1 degrees of freedom);
  - profit factor, win rate and drawdown.
- **Verdict at an evaluation point:**
  - **Contradicted:** the mean is zero or negative, or the profit factor is below 1.0;
  - **Not contradicted:** the mean is positive, the profit factor at least 1.0, and the interval includes zero ("keep going", not "confirmed");
  - **Supported:** only if the lower end of the interval is above zero.
  - The verdict is also reported without flagged trades. If that changes it, the verdict is reported as inconclusive for that reason.
- **Control, reported beside the verdict as a percentile, not as a gate.** It is the 2010-2019 test's moved-trade control applied to the forward window:
  - every trade is moved by one random circular offset of whole usable days, at least 5% of the window;
  - each moved trade is entered at the first bar at or after the same minute of the trading day, in the same direction;
  - its stop distance is kept in ADR units; it exits at its stop or at the real holding time, exactly as defined in `research/lsr_spec.md`;
  - 500 runs, seeds 1000 + run.
- **Also reported, descriptive:** by level type, BUY and SELL, hour group (night, London, New York), grade A and B, and by month. These splits stay visible but never become rules.
- Criteria are not changed after results are seen. No edge is declared from a few good months.

## 6. Modifications

- **A separate test:** any change to the rule, the settings, the chart data, the symbol, the data source, the costs, the code (`SweepNQ.cs`, `sweep_ref.js`) or these criteria is a separate test with its own protocol and start date. That includes switching off swing levels, filtering hours or using the grade. Results are never merged across tests.
- **What the owner may still do:** watch or change their own chart freely. Only the frozen rule counts.

### Log
- 2026-11-16: draft 1 written. The code download was answered "nu inca" (not for now).
- 2026-11-16: approved by the owner ("Aprob") with the recommended start: the first session after publication. Two wording fixes, matching the code and `lsr_spec.md`:
  - a pending signal blocks any other on the same bar;
  - the control's exit is as defined in the spec.
- 2026-11-16, before the freeze (no rule or criterion changed): `lsr_forward.js`, `lsr_compare.js` and `lsr_paper_watch.js` written and run on the owner's export of 16 Nov. The paper watch reproduced trade for trade and the journal check passed (section 4). Wording updated to match: the 2010-2019 result is linked (section 1); the forward script also lists holes and checks the previous month's trades (section 3); a weekday with no bar and a day that ends early count as holes (section 3); the paper-watch check is done (section 4).
- 2026-11-16: **frozen and published** on the site with the owner's explicit OK. Start: the session that opens at 18:00 New York on Sunday 22 November 2026 (written into `lsr_forward.js` before hashing). SHA-256: `lsr_forward.js` 8e60aedff3daaf65aa7c49ba884e47baff2c4fbc666cd1e406cb798f086ca485; `lsr_compare.js` 026e9c9000011e22ccf33f1ab28e31239f57b2798d6d2d5f3933f5b50d0ed536. Nothing above may change during the test.
