Xem Tiếng Việt
Chương 20Original (EN)

Chapter 20: Do Moving Averages Actually Work as Support and Resistance?


Chapter Overview — 00:00

A foundational doctrine of conventional technical analysis asserts that moving averages function as dynamic support and resistance lines:

  • When price trades above a moving average, the market is classified in an uptrend, and pullbacks to the moving average are expected to find support.
  • When price trades below a moving average, the market is classified in a downtrend, and rallies toward the moving average are expected to encounter resistance.

Despite appearing ubiquitously across retail trading textbooks, websites, and courses, this claim is almost universally supported by anecdotal cherry-picked chart screenshots rather than systematic quantitative validation.

                    PRICE INTERACTION WITH MOVING AVERAGE
                    
        Price Approaches from Above
                    │
                    ▼
     ┌─────────────────────────────┐   Upper Band: MA + 0.5 * ATR
     │     Buffer / Envelope Zone  │
     │  ── ── ── ── ── ── ── ── ── │   Moving Average (MA)
     │                             │
     └─────────────────────────────┘   Lower Band: MA - 0.5 * ATR
          │                   │
          ▼                   ▼
    Leaves via Top      Leaves via Bottom
     [ BOUNCE ]          [ PENETRATION ]
   (Support Holds)       (Support Fails)

This chapter provides a rigorous statistical framework to test whether moving averages actually act as support and resistance. Using multi-year hourly Bitcoin data and a Monte Carlo permutation test, we evaluate whether observed bounces represent genuine market structure or mere random-walk noise.

In this chapter, you will learn:

  1. How to mathematically formalize and classify price "bounces" versus "penetrations" using volatility-adjusted envelope bands.
  2. The empirical bounce percentages across moving average lookbacks from 24 to 200 periods on Bitcoin.
  3. How to design a Monte Carlo permutation test to falsify the null hypothesis that moving average bounces stem from market noise.
  4. Why moving average support and resistance constitutes a statistically robust, genuine market phenomenon across cryptocurrency markets.

1. Formalizing the Bounce vs. Penetration Framework — 00:49

To test whether price bounces off a moving average systematically, one cannot merely count single-tick touches. Real-world price action is noisy and frequently oscillates around an average. We must establish an unambiguous state machine based on volatility buffers.

The Envelope Corridor

Around a simple moving average of length NN, construct two volatility bands spaced at a fraction of the Average True Range (ATR\text{ATR}):

Upper Bandt=SMAt(N)+0.5×ATRt(M)\text{Upper Band}_t = \text{SMA}_t(N) + 0.5 \times \text{ATR}_t(M)

Lower Bandt=SMAt(N)−0.5×ATRt(M)\text{Lower Band}_t = \text{SMA}_t(N) - 0.5 \times \text{ATR}_t(M)

In this study, the ATR\text{ATR} lookback period MM is set to 200200.

Interaction Classification Rules

The state of the market is determined by the prior price position relative to the moving average corridor:

  1. Uptrend Regime (Testing Support):

    • The price enters the corridor from above the Upper Band.
    • The price may spend one or multiple bars inside the corridor between the Upper and Lower bands.
    • Bounce: The price exits the corridor through the Upper Band (resuming the upward trajectory).
    • Penetration: The price continues downward and exits through the Lower Band (failing support).
  2. Downtrend Regime (Testing Resistance):

    • The price enters the corridor from below the Lower Band.
    • Bounce: The price exits the corridor through the Lower Band (resuming the downward trajectory).
    • Penetration: The price continues upward and exits through the Upper Band (breaking resistance).
  3. Immediate Penetration:

    • If an impulsive candle traverses directly from outside the upper band to outside the lower band (or vice versa) within a single bar without spending time inside the corridor, it is immediately classified as a penetration.

This objective counting methodology and terminology derives from the academic paper "Support for Resistance: Technical Analysis and Intraday Exchange Rates" (Osler, 2000), which investigated order clustering and support/resistance levels published by major currency dealing firms.


2. Empirical Findings on Hourly Bitcoin (2018–2023) — 02:09

The methodology was applied to hourly Bitcoin (BTC/USDT) price data spanning from January 1, 2018, to January 1, 2023 (5 full years of continuous trade data).

Initial Baseline Test: Period = 72

Using an arbitrary starting moving average period of 72 hours (3 days) with an ATR(200)\text{ATR}(200):

  • Support Bounces: 535
  • Support Penetrations: 332
  • Total Support Interactions: 867
  • Support Bounce Percentage: 61.7%

Bounce Percentage=BouncesBounces+Penetrations=535867≈61.7%\text{Bounce Percentage} = \frac{\text{Bounces}}{\text{Bounces} + \text{Penetrations}} = \frac{535}{867} \approx 61.7\%

A visual inspection of the chart reveals that bounces frequently occur in clusters during trending phases.

Parameter Sweep: Periods 24 to 200

Testing lookbacks across a comprehensive range from 24 hours (1 day) to 200 hours (~8.3 days) reveals strong stability across both sides of the market:

MetricOptimal PeriodOptimal Bounce %Honorable MentionWorst PeriodWorst Bounce %
Support Bounce %14564.0%~703656.0%
Resistance Bounce %19565.0%~703254.0%
Combined (Support + Resistance)20064.0%70, 14532~54.0%

Key Observations Across Lookbacks

  1. The Frequency vs. Reliability Trade-Off:
    • Shorter periods (e.g., 24–40) interact with price much more frequently, producing a high total volume of interactions, but register lower bounce rates (54%–57%).
    • Longer periods (e.g., 145–200) interact less frequently, but yield significantly higher bounce reliability (64%–65%).
  2. Prominent Sweet Spots:
    • The 70-period, 145-period, and 200-period moving averages consistently stand out as high-performing thresholds on the hourly timeframe.

3. Monte Carlo Permutation Testing & Statistical Significance — 03:59

An essential quantitative question arises: Is an optimal bounce rate of 64% statistically significant, or is it merely an artifact of random noise and curve-fitting over multiple tested periods?

Noise in random walk processes can naturally produce apparent support and resistance bounces. To rigorously isolate signal from noise, we construct a Monte Carlo Permutation Test.

                   MONTE CARLO PERMUTATION ARCHITECTURE
                   
   [ Actual BTC Hourly Log Prices ]
                  │
                  ▼
   [ Log Price Returns: r_t = ln(P_t / P_{t-1}) ]
                  │
                  ▼
   ┌──────────────────────────────────────────────────────────────┐
   │ Shuffled Returns (Random Permutation)                        │
   │ - Preserves volatility, return distribution & kurtosis       │
   │ - Completely destroys chronological structure & trader memory│
   └──────────────────────────────┬───────────────────────────────┘
                                  ▼
   [ Permuted Synthetic Price Path: P'_t = P_0 * exp(cumsum(r'_t)) ]
                                  │
                                  ▼
   ┌──────────────────────────────────────────────────────────────┐
   │ Parameter Sweep on Synthetic Path (Periods 24 to 200)        │
   │ - Record Optimal Bounce Rate across all periods              │
   └──────────────────────────────┬───────────────────────────────┘
                                  ▼
   [ Repeat for 1,000 Independent Permutations ] ──► Empirical Null Distribution

The Null Hypothesis (H0H_0)

  • H0H_0: The observed optimal bounce percentage on the real price series is solely the result of random price noise and data snooping across multiple lookback windows.
  • Alternative Hypothesis (H1H_1): Market participants systematically monitor moving averages and execute trades around them, creating a real behavioral force that repels price back into trend.

Testing the Null Hypothesis

  1. Take the log returns of the 2018–2023 Bitcoin series: rt=ln⁡(Pt)−ln⁡(Pt−1)r_t = \ln(P_t) - \ln(P_{t-1}).
  2. Shuffle the returns randomly and re-accumulate them into a synthetic price series.
  3. On this synthetic series, no human or algorithmic trader is watching moving averages; only random noise remains.
  4. Run the exact same optimization sweep (periods 24 to 200) on the permuted series and extract its maximum (optimal) bounce percentage.
  5. Repeat this procedure for 1,000 independent permutations to generate an empirical null distribution.
  6. The empirical pp-value is calculated as:

p=∑i=11000I(Optimal Bounceperm,i≥Optimal Bounceactual)1000p = \frac{\sum_{i=1}^{1000} \mathbb{I}(\text{Optimal Bounce}_{\text{perm}, i} \ge \text{Optimal Bounce}_{\text{actual}})}{1000}

Permutation Test Results

  • Actual Optimal Bounce Percentage: 64.0% (at Period 200)
  • Mean Synthetic Optimal Bounce: ~50.0%
  • Maximum "Luckiest" Synthetic Bounce: ~54.0%
  • Empirical pp-value: p=0.000p = 0.000 (p<0.001p < 0.001)

Not a single permutation out of 1,000 synthetic paths came close to 64%. In fact, the absolute luckiest synthetic path (54%) performed worse than almost every period tested on the actual Bitcoin series.

This decisively rejects the null hypothesis: The tendency of price to bounce off moving averages is not an artifact of noise; it represents an authentic, measurable market force.


4. Cross-Asset Generalization & Practical Implications — 06:05

Multi-Asset Verification

When the exact same bounce-penetration framework was applied to Ethereum (ETH/USDT) and various alternative cryptocurrencies, identical dynamics emerged. While certain smaller altcoins exhibited slightly weaker bounce rates, moving averages consistently functioned as genuine support and resistance across the cryptocurrency asset class.

Key Takeaways for Quantitative Traders

  1. Empirical Reality vs. Skepticism:
    • Quantitative researchers often dismiss moving average support/resistance as pure retail superstition. However, empirical testing confirms that price does bounce off moving averages significantly more often than would occur by chance.
  2. Optimal Lookbacks on 1-Hour Crypto:
    • The 70, 145, and 200 period simple moving averages provide the strongest statistical bounce probabilities.
  3. Self-Fulfilling Prophecy as Market Edge:
    • The underlying driver is likely order clustering: because millions of market participants and execution algorithms anchor their risk management, stop placements, and trend continuation orders around prominent moving averages, the collective liquidity creates a measurable physical bounce.
  4. Integration into Trading Systems:
    • While a 60–65% bounce rate confirms edge, a raw bounce is not an entire trading strategy on its own. It should be coupled with position sizing, stop-loss placement beyond the outer envelope band (MA±0.5×ATRMA \pm 0.5 \times ATR), and confirmation filters (e.g., volume or momentum indicators).

Further Reading

  • Osler, C. L. (2000). "Support for Resistance: Technical Analysis and Intraday Exchange Rates." Economic Policy Review, Federal Reserve Bank of New York.

Nguồn duy nhất: Kênh YouTube chính thức của neurotrader. Nội dung được hệ thống hóa phục vụ học tập & tra cứu — bấm các mốc thời gian trong bài để xem trực tiếp video gốc của tác giả.