Yamagishi Complexity Torus LabYamagishi Lab

[F030] Layering on a Magnitude Does Not Produce a Direction

Abstract

What this paper asks is what moves and what does not when layers are cut on a magnitude — and the answer is: the magnitude moves and the direction does not. No new mathematical theorem and no new law is claimed.

First, cutting layers on a magnitude does move the size of the forward move. The fifth layer over the first runs from 1.5573 to 2.4674 times (Section 3).

Second, and this is the core. ★ But the directional information does not move. D spans −0.2727 to +0.1400 pips (a range of 0.4127), and the daily t reaches 2 in absolute value in 0 of 20 layers (Section 3).

Third, ★ putting the sign of the same quantity into the signal is where D starts to move. The sign version gives D from 0.1625 to 1.7403 pips (a range of 1.5778), with the daily t reaching 2 in 5 of 10 layers (Section 4).

Fourth, the layers are doing something; what they are not doing is separating direction. Within the same layers, "absolute D ÷ size of the forward move" has a median of 0.001912, and that share does not grow however much the magnitude does (Section 5).

Fifth, prediction ④ half failed. On the synthetic random walk even the magnitude does not move: the fifth layer over the first runs from 0.9900 to 1.0395 times (Section 6).

Sixth, ★ so the two halves come from different places. The magnitude separates because markets have volatility clustering; the direction does not separate because the quantity carries no sign. The first is a property of the market, the second is algebra (Section 6).

Scope of this paper: No new mathematical theorem and no new law is claimed — that a quantity built from absolute values carries no sign, and volatility clustering, are both known. No real course or its proponent is discussed — no real teaching material, author, or vendor is the subject here, and none is named. Trading is not discussed — no costs are included, so the figures here are not trading performance (Section 7). Four magnitude quantities are fixed — the absolute slope of a moving average, the absolute deviation, ATR, and the recent range. Other quantities give other figures (Section 7). The sign version contains drift — that its D is positive may include how the instrument moved over the period, which is not separated here (Sections 4 and 7). D and the daily t disagree in sign in some layers — days with many observations are making the overall mean, and both are printed here (Section 4). The scope is intraday and few instruments — four instruments, six years, one-hour bars. Monthly time-series momentum (dozens of markets, one to twelve month holds) is documented in the academic literature and is not contradicted here. The overlap is not removed — measurements are taken on every bar, so the observations overlap (Section 7). No forecast is claimed.

1. Notation and the question

"Only enter when the moving average is steep." "Only enter when the deviation is large." "Only enter when volatility is high." These are common filters.

What gets saidWhat does not
Enter only when the slope is steepWhether the quantity is symmetric up and down
Enter only when the deviation is largeWhether what moved after filtering was magnitude or direction
Enter only when volatility is highWhether a series with no edge gives the same shape

Observation 1.1: ★ A quantity built from absolute values is symmetric up and down. A slope of +2 and a slope of −2 both give 2. Rising cases and falling cases go into the same layer. That a quantity without a sign cannot call direction was measured for the ADX in [F007]. This paper extends it to four quantities.

Observation 1.2: ★ So if buys and sells are made equal in number within a layer, the directional information must cancel in principle. If a layer separates direction, that is not the quantity but some relation between the quantity and the direction.

Observation 1.3: The separator is whether the quantity used for the layers carries a sign. The layer cuts, the period, the instruments and the horizon are all held fixed, and only whether the signal carries a sign is varied.

Observation 1.4: ★ And a comparison partner is needed. Run the same layering on a series with zero directional information by construction and see how the magnitude side and the direction side move.

Question: when layers are cut on a magnitude, what moves and what does not?

2. State the quantity and the design first

Predictions (written before running)

① A magnitude is symmetric up and down, so D stays at 0 in every layer. Layers separate "how much it moves", not "which way".

② Meanwhile the magnitude side (the size of the forward move) should move a long way in the same layers. ⇒ The layers are doing something; what they are not doing is direction.

③ Using the sign of the quantity that makes the layers is where D starts to move.

④ ★ On a synthetic random walk with zero directional information, ① and ② take the same shape.

Design (declared before running and not changed during it)

ItemDecision
GridOne-hour bars, mid prices, completed bars only
Magnitude quantitiesAbsolute slope of the moving average (20) / absolute close − moving average (20)
ATR (14) / range over the last 20 bars
Layers5 quintiles of each (cut within the same instrument and period)
Signal (magnitude)Equal numbers of buys and sells within the layer (no direction)
Signal (sign)The sign of the slope / the sign of the deviation (carries direction)
HorizonThe change over the next 24 bars (pips)
MeasuredD = (buy − sell) / 2 / daily-clustered t / mean size of the forward move
BaselineSynthetic random walk down to within-bar movement (3 series)
InstrumentsUSDJPY, EURUSD, GBPUSD, XAUUSD
Period2019–2024

Observation 2.1: ★ Buys and sells in the magnitude version are set by even and odd position. That does not depend on a random seed, so re-running gives the same values.

Observation 2.2: All four quantities are determined by the entry bar. The moving average, the ATR and the range are all built from completed bars only. There is no look-ahead.

Observation 2.3: The four quantities are not independent of each other. ATR and the range are close, and the absolute slope and the absolute deviation are related. This paper measures them as separate layerings and does not claim they carry separate information.

The bar counts are 36,534, 36,554, 36,535 and 34,892.

3. What moves when layers are cut on a magnitude

Calculation 3.1 D and the size of the forward move by layer (medians across four instruments)

QuantityLayerMedian valueCountDDaily tSize of forward move
Absolute slope10.27757,298−0.1230−0.0143.8575
Absolute slope31.63377,302−0.2137−0.6446.8085
Absolute slope55.18507,3000.0457−0.0469.9133
Absolute deviation12.88947,298−0.1220−0.2544.3073
Absolute deviation556.41007,2990.08330.3469.0010
ATR110.09437,300−0.2466−1.0833.0321
ATR315.79697,300−0.0111−0.0144.5605
ATR529.73277,3000.0218−0.6081.5030
Range140.62507,279−0.0702−0.4836.2141
Range5163.32507,3040.08750.2077.5005

Calculation 3.2 End-to-end movement across the layers

QuantityD, end to endRatio of the forward move's size
Absolute slope0.16871.5941
Absolute deviation0.20531.5573
ATR0.26842.4674
Range0.15762.1401

Observation 3.3: Prediction ② held. The size of the forward move goes from the first layer to the fifth by 1.5573 to 2.4674 times. The layers are doing something.

Observation 3.4: ★ Prediction ① held too, and this is the core. D spans −0.2727 to +0.1400 pips (a range of 0.4127), and the daily t reaches 2 in absolute value in 0 of 20 layers. Chance alone would give about 1, so zero means nothing is there.

Observation 3.5: ★ ATR separates the magnitude by 2.4674 times while moving the direction by only 0.2684 pips. The same layering separates one and not the other.

Observation 3.6: The sign of D does not line up across layers. On the absolute slope it goes −0.1230 → −0.2137 → +0.0457, back and forth. What is not monotone is spread, not effect.

Figure 1 The layers move the magnitude and leave the direction alone

Figure 1: horizontal is the layer, vertical is pips. Left is the size of the forward move, right is the directional information D.

4. What happens when the sign of the same quantity is used

Calculation 4.1 The sign version (medians across four instruments)

QuantityLayerCountDDaily tSize of forward move
Sign of the slope17,2940.86481.9143.8683
Sign of the slope27,2931.74032.8145.4772
Sign of the slope37,2900.80162.3446.8217
Sign of the slope57,2961.7310−3.1269.9175
Sign of the deviation17,2980.57291.3244.3073
Sign of the deviation27,2981.63292.3345.5501
Sign of the deviation47,2980.16250.3051.1895
Sign of the deviation57,2991.0837−4.9269.0010

Calculation 4.2 Magnitude version against sign version

QuantityLayerMagnitude DSign DDifference
Slope1−0.12300.86480.9878
Slope2−0.09331.74031.8337
Slope3−0.21370.80161.0153
Slope50.04571.73101.6853
Deviation1−0.12200.57290.6948
Deviation3−0.27271.60851.8811
Deviation4−0.12370.16250.2862
Deviation50.08331.08371.0003

Observation 4.3: ★ Prediction ③ held. The sign version gives D from 0.1625 to 1.7403 pips (a range of 1.5778), with the daily t reaching 2 in absolute value in 5 of 10 layers.

Observation 4.4: ★ The layer cuts are exactly the same as in the magnitude version. So are the counts and the size of the forward move. All that differs is whether the signal carries a sign, and that alone moves D by 0.2862 to 1.8811 pips.

Observation 4.5: That the sign version's D is positive does not only mean trend-following worked. It may include how the instrument moved over the period. ★ The drift is not separated here.

Observation 4.6: In the sign version, D and the daily t disagree in sign in some layers. The fifth layer of the slope sign has D +1.7310 against t −3.12, and the deviation sign has +1.0837 against −4.92. ★ Days with many observations are making the overall mean, so both must be printed.

Observation 4.7: ★ So the level of the sign version is not this paper's claim. The claim is that D does not move at all in the magnitude version and starts to move the moment a sign is put in.

Figure 2 The direction moves only once the sign is put in

Figure 2: horizontal is the layer, vertical is D. Grey is the magnitude version (equal buys and sells), dark is the sign version (the sign of that quantity).

5. The layers are doing something — what they are not doing is direction

Calculation 5.1 The magnitude side and the direction side in the same layers

QuantityLayerSize of forward moveRatio to layer 1DAbsolute D ÷ size
Absolute slope143.85751.0000−0.12300.002805
Absolute slope346.80851.0673−0.21370.004565
Absolute slope569.91331.59410.04570.000653
Absolute deviation144.30731.0000−0.12200.002752
Absolute deviation245.55011.0280−0.08500.001865

Observation 5.2: ★ The magnitude grows 1.5941 times and absolute D ÷ size falls from 0.002805 to 0.000653. The directional share does not grow.

Observation 5.3: Over everything, absolute D ÷ size has a median of 0.001912 and a range of 0.000183 to 0.007465. ★ In every layer, the share of the forward move that can be taken out as direction is about two parts in a thousand.

Observation 5.4: ★ This is how "the layers are doing something" and "no direction comes out" hold together. The layers separate how far it moves by more than a factor of two, and say nothing about which way it goes.

Observation 5.5: So "enter only when volatility is high" is not selecting a place where one wins. ★ It is selecting a place where price moves a lot. Where price moves a lot, wins and losses both get larger.

6. Baseline — do the same thing on a series with zero directional information

Calculation 6.1 Measurement against synthetic random walk (layers 1 and 5)

QuantityLayerDSize of forward move
Absolute slope1measured−0.123043.8575
Absolute slope1random−0.067959.1722
Absolute slope5measured0.045769.9133
Absolute slope5random0.031861.5117
ATR1measured−0.246633.0321
ATR1random−0.149060.4897
ATR5measured0.021881.5030
ATR5random0.079659.8827

Calculation 6.2 End to end, measurement against random walk

QuantityD measuredD randomSize ratio measuredSize ratio random
Absolute slope+0.1687+0.09971.59411.0395
Absolute deviation+0.2053+0.34631.55731.0032
ATR+0.2684+0.22862.46740.9900
Range+0.1576−0.01992.14011.0176

Observation 6.3: Prediction ④ half held. The direction side does not move on the random walk either: its D spans −0.3922 to +0.2730 pips, the same band as the measurement.

Observation 6.4: ★ But the magnitude side failed. On the synthetic random walk even the magnitude does not move: the fifth layer over the first runs from 0.9900 to 1.0395 times, nothing like the measurement's 1.5573 to 2.4674.

Observation 6.5: ★ The way it failed splits the answer in two. Independent normal increments have no volatility clustering, so the distinction between a high-ATR stretch and a low-ATR stretch is never built. The layers therefore cannot separate the magnitude.

Observation 6.6: ★ So the two halves come from different places. The magnitude separates because markets have volatility clustering (a property of the market); the direction does not separate because the quantity carries no sign (algebra).

Observation 6.7: This is the same reason the baseline could not be used in F027 and F028. The synthetic random walk is a correct control for direction and no control at all for layering on magnitude. That the baseline has no clustering was measured in [F033].

7. Limitations

  1. Prediction ④ half failed. On the synthetic random walk even the magnitude did not separate. This paper writes that failure and splits the two halves by origin.
  2. Four magnitude quantities are fixed. Other quantities give other figures, and the four are not independent of each other.
  3. The sign version contains drift. That its D is positive may include the drift over the period, which is not separated here.
  4. D and the daily t disagree in sign in some layers of the sign version. Days with many observations are making the overall mean.
  5. The synthetic random walk has no volatility clustering, so it is no control for layering on magnitude.
  6. No costs are included. The figures here are therefore not trading performance.
  7. The overlap is not removed. Measurements are taken on every bar, so the observations overlap.
  8. Four instruments over six years. Nothing is said about other markets or other periods.

Conclusion

The absolute slope of a moving average, the absolute deviation, ATR, and the recent range. Cutting quintiles on these four magnitude quantities moves the size of the forward move by 1.5573 to 2.4674 times. The layers are doing something.

But D spans only 0.4127 pips, and the daily t reaches 2 in absolute value in 0 of 20 layers. ★ ATR separates the magnitude by 2.4674 times while moving the direction by only 0.2684 pips.

Putting the sign of the same quantity into the signal is where D starts to move. The sign version gives D from 0.1625 to 1.7403 pips, with the daily t reaching 2 in 5 of 10 layers. The layer cuts and the counts are identical; all that differs is whether the signal carries a sign.

★ A magnitude is symmetric up and down. A slope of +2 and one of −2 give the same absolute value, so rising cases and falling cases go into the same layer. No direction comes out not because the market is that way but because the quantity is built that way.

Prediction ④ half failed. On the synthetic random walk even the magnitude does not move (0.9900 to 1.0395 times). Independent normal increments have no volatility clustering, so the distinction between a high-ATR stretch and a low-ATR stretch is never built.

★ So the two halves come from different places: the magnitude separates because markets have volatility clustering, and the direction does not separate because the quantity carries no sign. The first is a property of the market, the second is algebra.

"Enter only when volatility is high" is not selecting a place where one wins. It is selecting a place where price moves a lot. In every layer, the share of the forward move that can be taken out as direction has a median of 0.001912 — about two parts in a thousand.

Data and reproduction

DataFX is Dukascopy-derived tick data (from 2019 onward, confirmed identical down to the millisecond, bid and ask). Gold is Dukascopy
Period2019–2024 (six years)
InstrumentsUSDJPY, EURUSD, GBPUSD, XAUUSD
BarsOne-hour bars, mid prices, closes of completed bars only. No bar is made where there are no ticks
Magnitude quantitiesAbsolute slope of SMA(20) / absolute deviation / ATR(14) / range over the last 20 bars
LayersQuintiles of each. Horizon 24 bars
SignalsMagnitude version: equal buys and sells within the layer (even and odd position). Sign version: the sign of that quantity
CostsNot included
Verification検算/F030.py (--zu also writes the figures). Every figure in the text comes from 検算/F030_output.txt
Figures図/F030_zu1, 図/F030_zu2 (png, svg, English versions)
Random seedsFixed. Re-running gives the same values
Foundation check_ツール/audit_bars.py (bar look-ahead, daylight saving, day boundaries). The record is _土台の検査.txt

References

  • Yamagishi, Y. (2026). ADX Carries No Direction, So It Cannot Tell You Which Way [F007]. Zenodo. 10.5281/zenodo.22881623
  • Yamagishi, Y. (2026). Where You Put the Time-Outs Decides the Share of "Both Lose" [F027]. Zenodo. 10.5281/zenodo.22892724
  • Yamagishi, Y. (2026). The Distance to the Level Ahead Moves the Time-Outs, Not the Win Rate [F028]. Zenodo. 10.5281/zenodo.22892891
  • Yamagishi, Y. (2026). A Synthetic Random Walk Has No Volatility Clustering [F033]. Zenodo. 10.5281/zenodo.22893674

Reference

Yamagishi, Y. (2026). Layering on a Magnitude Does Not Produce a Direction [F030]. Zenodo.
DOI: 10.5281/zenodo.22893420
YOI: https://www.yamagishiyuuki.com/yoi/F030
ORCID: 0009-0006-8587-3450

PDF (English) · PDF (Japanese) · Date proof of the English PDF (OpenTimestamps .ots) · SHA256SUMS

The record page for this paper (in Japanese, with the PDFs in each language and the date proof): YOI F030. This paper is a preprint and has not been peer reviewed.