# Round numbers (psychological levels) on EUR/USD, 1-minute data - specification (RIP Backtest protocol v1.0 plus the 8 Oct 2026 rules)

Specification written and **frozen 2026-11-24 (approved by the owner the same day: "Aprob", which also accepted every design recommendation; draft 1 unchanged apart from this status line)**. No level touch, signal or trade of this test has been computed. Looked at before writing: the first and last minute and the minute count of the corrected EURUSD file (2004-01-01 01:03 to 2026-09-28 15:46 New York, 8,326,700 minutes). Once frozen, any change of a rule is documented and treated as a separate test; bugs may be fixed.

## Why this test, and what was looked at before
- **Chosen by the owner** on 2026-11-24 as one of three tests run in parallel that week (with an opening range breakout on YM and crude oil seasonality). The design below is the one recommended in the design questions of 2026-11-24.
- **The idea.** Round numbers such as 1.1000 ("the big figure", levels ending in 00) and, less strongly, 1.1050 (ending in 50) are said to act as support and resistance: price stalls and turns there, and once through, it runs. Traders either fade the first test of the level or trade the break.
- **Why it might work: the order book (the source of the test).** Carol Osler, "Currency Orders and Exchange Rate Dynamics: An Explanation for the Predictive Success of Technical Analysis", *Journal of Finance* 58(5), 2003, pp. 1791-1819 (DOI 10.1111/1540-6261.00588; earlier version: Federal Reserve Bank of New York Staff Report 125, March 2001). Both checked by fetch on 2026-11-24 (the RePEc record of the journal article and the full text of the Staff Report).
  - Data: the complete stop-loss and take-profit order book of a large dealing bank, **9,667 orders, 1 September 1999 to 11 April 2000**, in dollar-yen, dollar-pound and euro-dollar.
  - Requested rates cluster at round numbers: the largest cluster is at rates ending in **00** (about 8.7% of orders), then 50, then other rates ending in 0, then 5; no special cluster at 25 or 75.
  - **Take-profit** orders cluster at 00 more than stop-loss orders (9.3% of take-profit orders executed exactly at 00, against 4.4% of stop-loss orders). Take-profit orders absorb a move, so a trend should tend to **reverse at the round number**.
  - **Stop-loss** orders cluster **just beyond** round numbers (stop-loss buys just above 00 and 50, stop-loss sells just below), so once the round number is crossed the triggered stops should make the move **run**.
  - Osler explains the two predictions with the order book; her paper does not test a trading rule with costs. This test asks whether either prediction can be traded on EUR/USD after costs.
- **Earlier tests on this file (disclosed):** twelve EUR/USD posts are live (golden cross 1h, Turtle daily, Fibonacci 61.8, Stochastic RSI with MACD, Ichimoku, Parabolic SAR, inside bar, TDI, Trading Made Simple, order block with fair value gap, anchored VWAP, SMA 5 daily) plus the FX study; none passed every gate. No test on the site uses round numbers.
- **Closest relative:** classic daily pivot points on GBP/USD 15-minute bars (`piv_spec.md`): a rejection version and a break version at computed levels, all Buried 1 of 6. Here the levels are fixed numbers that do not depend on past prices, and the data are EUR/USD minutes.
- **Family and development bar:** support and resistance level tests already on the site (pivot points GBP/USD 3 versions, POC NQ 3, the market profile 80% rule ES 3, the unpublished weekly Fibonacci pivots of October 2026), so the development bar is **t >= 2.5**.

## Instrument and data
- **EURUSD**, IC Markets MT4 demo, 1-minute bid bars, from the first minute of 2004 to the **forex day of 2026-09-28** (the cut of the clock audit and of every EUR/USD test), New York wall clock, close stamps (`fx_data.loadFx`).
- **Clock: the corrected copy** `D:\Folder nou (2)\data_clockfix_eur\EURUSD1.hst` (made by `eur_clockfix.js` from the decisions of the October 2026 clock audit; 541 weeks moved by +60 minutes, mostly 2004-2014), read with `MT4_HISTORY` pointed at that folder (rule of 11 Nov 2026). This test depends on the time of day (entry window, exit at 16:59 New York), so the raw file may not be used.
- **Forex day:** 17:00 to 17:00 New York; minutes whose forex day is a Saturday (Friday-evening stubs after the clock fix) are dropped, as in the pivots test.
- **Prices in points:** every price is converted to an integer number of points (1 point = 0.00001 = 0.1 pip) by rounding price x 100,000. All level rules are evaluated on these integers, so no floating-point tie can decide a touch. Quotes have 4 decimals in the early years (multiples of 10 points) and 5 later; the rules below are stated in whole pips so they mean the same in both.
- **Data checks before the run** (`rn_datacheck.js`): first and last minute and the cut; increasing stamps; low <= open, close <= high; the Saturday stubs dropped; the clock marker file present and the US 08:30 release minute on the corrected clock (the largest move of the first minutes after 08:30 New York on US payroll Fridays, per year); every price is a whole number of points; the distribution of the last two pip digits of the minute closes (a check that 00 levels are not missing or over-represented in the quotes).
- **Holes (rule 3):** gaps over 30 minutes outside the weekend and the daily rollover, **recomputed on the corrected file** (the existing `data_holes_eurusd.json` was built on the raw clock) and written to `rn_out/rn_holes.json`. Trades open across a hole are counted; every gate and verdict is recomputed without them; a changed verdict becomes Inconclusive.

## The levels
- **00 grid:** every price whose last two pip digits are 00 (1.1000, 1.1100, ...), i.e. multiples of 1,000 points.
- **50 grid:** the 00 levels plus every level ending in 50 (1.1050, 1.1150, ...), i.e. multiples of 500 points.

## When a level is "fresh"
- **The price path of a minute** runs from the previous minute's close (across nights and weekends too) through the minute's range: its low is min(low, previous close) and its high is max(high, previous close). A gap across a level therefore counts as reaching it at the open.
- Each level has a state per variant: **unarmed**, **armed from above** or **armed from below**. At the start of the data every level is unarmed.
- An unarmed level L becomes **armed from above** in a minute whose path reaches **L + 25 pips** or higher, and **armed from below** in a minute whose path reaches **L - 25 pips** or lower (if one minute reaches both, the side of its close). An armed level stays armed, across days, until it is used.
- A level is **used** by the event of the variant (below), whether a trade is taken or not; it is then unarmed again, and can be armed again only when the price has once more been 25 pips away from it.
- Inside one minute the order is: exits of an open trade, then events of levels armed before this minute, then arming. A minute that arms a level cannot also trigger it.

## The four variants
Each variant runs on its own (its own position and its own level states). **One position at a time.**

**RN-FADE-00 and RN-FADE-50 (bet on the reversal, Osler's take-profit cluster):**
- A **limit order rests at every armed level** (on the 00 grid or the 50 grid), against the approach: a buy at L if L is armed from above (support), a sell at L if armed from below (resistance).
- **Event and strict fill:** the order is filled in the first minute whose path goes **at least 1 pip through L** (low <= L - 1 pip for a buy, high >= L + 1 pip for a sell). A touch that turns back before that fills nothing and leaves the order resting: an order at a round number queues behind the orders already there, so we count it filled only once the price has traded through. Fill price: L, or the minute's open if the minute opens beyond L.
- **Stop 20 pips, target 20 pips** from the fill (1:1, R = 20 pips).
- Sensitivity, not part of the verdict: the same with a fill as soon as the path touches L.

**RN-BREAK-00 and RN-BREAK-50 (bet on the run, Osler's stop-loss cluster):**
- A **stop order rests 5 pips beyond every armed level**, in the direction of the approach: a sell stop at L - 5 pips if L is armed from above, a buy stop at L + 5 pips if armed from below.
- **Event and fill:** the first minute whose path reaches the order level. Fill: at the order level, or at the minute's open if the minute opens beyond it. A touch of L that turns back before reaching the order fills nothing.
- **Stop 20 pips back** from the fill (15 pips back on the other side of L), **target 40 pips** from the fill (2R, R = 20 pips).

**Common to all four:**
- **Entry window:** events in minutes with close stamps from **03:01 to 15:00 New York** (minutes opening 03:00 to 14:59: the London session and the New York morning, when order books are fullest). An event outside the window, in a minute in which a trade of the variant exits, or while a position is open, is not traded and still uses the level. If two levels have an event in the same minute, the one nearer the minute's open is traded and both are used.
- **Exit:** stop, target, or the close of the last minute stamped at or before **16:59 New York** of the same forex day. No position is held through the 17:00 rollover, so there is no swap.
- **Inside a minute:** if stop and target can both be reached in one minute, the stop is taken first. In the entry minute only the stop can be hit (after the fill), as in the pin bar test.
- A stop or target is filled at its level, or at the minute's open if the minute opens beyond it.

## Costs
- **RN-FADE: 1.0 pip per round trip** (limit entry; the cost model of every EUR/USD test on the site: IC Markets Raw commission plus about 0.3 pip of spread).
- **RN-BREAK: 1.5 pips per round trip** (stop entry; stop orders slip, as in the inside bar EUR/USD test and the GBP/USD tests).
- All four are also shown at 1.0, 1.5 and 2.5 pips; the verdict is that of the base cost above.

## Results, periods, gates
- **Units:** net pips per trade (and R: one R is 20 pips). Also reported: trades per year, win rate, long and short, from above and from below, by year, by hour, how trades ended, holding minutes; level tests per year and how many were filled (fade).
- **Periods (by entry date):** development 2004 .. 2012; validation 2013 .. 2019; holdout 2020 .. 2026-09-28, **already used** by the FX study and the earlier EUR/USD tests (stated on the page).
- **Six gates per variant:** validation profit factor >= 1.2; at least 50 trades in each period; development **t >= 2.5**; above the 95th percentile of the 500 control runs; positive without the 10 best trades; holdout net positive (flagged as used). Fewer than 30 trades in total: Inconclusive.

## The control: the same rules on levels that are not round (shifted grid)
- The question of the test is whether a round number is special. So the control runs **the identical strategy on a grid moved by a random offset**: every level L becomes L + u (for example 1.1037 instead of 1.1000), with everything else the same: arming distance, window, fills, stops, targets, exits, costs.
- **Offsets:** u is drawn with 0.1-pip resolution, uniformly from 5.0 .. 45.0 and 55.0 .. 95.0 pips for the 00 grid (so neither the round level nor the 50 level is within 5 pips), and from 5.0 .. 45.0 pips for the 50 grid. 500 runs per variant, seeds 1000 + run.
- **Statistic:** average net pips per trade. Gate 4 passes if the real result is above the 95th percentile of the 500 runs (it beats at least 476 of them).
- Moved levels are not round, but some land on other numbers people watch (for example rates ending in 10 or 25); Osler finds weaker clusters at other rates ending in 0 and 5, so the control is, if anything, slightly harder than a grid of truly arbitrary levels. This is stated on the page.

## Engine and self-test (before the run)
- New engine `rn_lib.js`; independent re-implementation `rn_ref.js` (its own .hst reader, its own forex-day and arming logic, one chronological pass); `rn_selftest.js` must pass before any result is printed:
  - hand-made minutes for: arming from above and below (also by a gap), a minute that arms and reaches the level, the strict fill (a touch without 1 pip through that leaves the order resting, exactly 1 pip through, a gap open beyond L), the break order 5 pips beyond with a gap, two events in one minute, an event in the exit minute, stop and target in the same minute, the entry-minute rule, the window edges (02:59 / 03:00 / 14:59 / 15:00 close stamps), an event while a position is open, the 16:59 exit, a Saturday stub, the 00 and 50 grids;
  - mutations of the engine that the test must catch;
  - engine = reference trade by trade on the real data for all four variants;
  - the control with offset 0 must give the real trades.
- `rn_run.js` runs once and refuses a second run (as the pin bar run); `--reproduce` must give identical outputs. Outputs in `rn_out/`.

## Before the article
Results go to the owner first: all four variants, every gate, by direction, by year and by hour. One article, published only with the owner's agreement. Working title for search: "Round Number Trading Strategy Backtest: EUR/USD Psychological Levels, 22 Years" (keywords "round number trading strategy", "psychological levels forex").

## Reading the result
"Buried" or "Inconclusive" mean a statistically convincing edge was not demonstrated; neither is proof that none exists. One pair, one broker's demo history, one reading of the rules, 1-minute bars (the order inside a minute is assumed, stop first).

### Run log
- 2026-11-24: frozen (owner: "Aprob", which also accepted every design recommendation), draft 1 unchanged apart from this status line. sha256 of this file above the "### Run log" heading: e709bf5fce10d9d4d19b1eb581a3b20fc53e04d901f32ff19733f07383ca10e6.
- 2026-11-24, before the run, data check (rn_datacheck.js): the first version FAILED. On the corrected copy the 46 weeks from the week opening Sun 2005-04-17 to the week closing Fri 2006-03-03 are still one hour early: the US 08:30 releases show at the 07:32 stamp (weekly release evidence inside the block: 12 weeks early, 0 on time; the 37 weeks before it: 21 on time, 0 early; the rest of 2006: 29 on time, 0 early). The October 2026 audit had kept these weeks, inheriting "normal" from the week of 2005-11-20. Reported to the owner, who chose to correct them ("Da, corecteaza"): every minute stamped from 2005-04-17 00:00 to 2006-03-04 00:00 New York is moved by +60 minutes before the forex-day filter (rn_lib.load and rn_ref.readData; 328,854 minutes; the Friday 17:01-17:59 minutes this creates belong to a Saturday forex day and are dropped like the other stubs). The release check itself was revised before any trade was computed: the 2004-2006 quotes put the release in the 08:32 stamp, so stamps 08:31-08:33 count as on time and 07:31-07:33 as early; the "at most 3 early first Fridays in all" condition was dropped (5 scattered single days remain: 2008, 2010, 2011 x2, 2017) and a check that no three early weeks follow each other without an on-time week was added. With the fix: ALL DATA CHECKS PASSED. 19 scattered weeks (1.6%) keep one or two days of early evidence each (7 of them in the weeks when the US and Europe change clocks on different dates); they are left as they are and named on the page. Holes on the corrected clock: 96 windows (rn_out/rn_holes.json).
- 2026-11-24, before the run, self-test (rn_selftest.js): the first run passed every hand case and mutation but the engine missed 1 of 10,733 events on the real data (2013-11-07 07:47): a level used in a very large minute ended more than 30 pips from the price and the engine's scanning window did not re-arm it. Fixed in rn_lib.js (the unarmed levels are kept in an explicit list); hand case P and a mutation added. Then PASSED: 81 checks, among them 17 hand-worked cases on both the engine and the re-implementation (rn_ref.js, which follows every level through every minute), 12 mutations all caught, and engine = re-implementation trade by trade on the real data for the four variants, the touch-fill sensitivity and two moved grids.
- 2026-11-24: rn_run.js -> rn_out/ (one run, block fix applied). All four Buried 1/6 (only gate 2 passes), every one negative before costs. RN-FADE-00 7,957 trades, -2.419 pips a trade (gross -1.419), win 46.4% against 52.5% needed, shifted-grid control percentile 13.2 (beats 66 of 500); RN-BREAK-00 6,089 trades, -2.517 (gross -1.017), win 34.2% against 35.8%, percentile 19.6; RN-FADE-50 15,681 trades, -2.657 (gross -1.657), percentile 2.4 (beats 12 of 500: fading the round levels did worse than fading levels moved away from them); RN-BREAK-50 11,799 trades, -2.129 (gross -0.629), percentile 24.2. Rule 3 (8 to 23 trades across a hole) changes no verdict. Touch-fill sensitivity (not gated): RN-FADE-00 -1.492 a trade (gross -0.492), RN-FADE-50 -1.764 (gross -0.764). Causes by the protocol's definitions: No proven edge for all four (gross negative).
- 2026-11-24: node rn_run.js --reproduce: 12 output files recomputed into rn_out/reproduce/, 0 differ (REPRODUCED).
- 2026-11-24: published as /posts/round-number-trading-strategy-eurusd/ on 24 Nov 2026 (the owner asked for the article on 2026-11-24: "Da, scrie-l").
