LibraryWorkspaceDataHub

© 2026 QCA · by Lime Fintech · About QCA · Market data from Massive

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

A Volume-Price-Adjusted MACD Trading Strategy with Sensitivity Calibration for U.S. Equity Indices

Open repository
Apr 30, 2026
Trading and Market Microstructure

Verdict: Partially Reproduced

OverviewExperiments

Executive Summary

Status
Partially Reproduced
Confidence
Medium

Executive Summary

  • Status: PARTIALLY REPRODUCED
  • Confidence: MEDIUM
  • Key Insight: The repository reproduces some of the paper’s qualitative trading-pattern claims—especially that VP-MACD+λ (Strategy C) is more selective and often stronger than baseline MACD—but it fails to reproduce the paper’s main out-of-sample magnitude results and significance pattern, particularly for Strategy B and for formal pairwise tests.

Repository Result Summary Used

The repository’s documented implementation choices are:

  • Adjusted-price lookback N = 20
  • STD window for sigma = 20
  • EMA init = pandas ewm(adjust=False)
  • Test starts flat on 2023-01-01, indicators carried from history
  • Newey-West lag = 5
  • Bootstrap = 1000 resamples, block length 5, seed 42

These choices matter because the paper left several of them unspecified, and the repo’s own sensitivity study shows VP-MACD results are materially affected by them.


Results Comparison

Experiment 1 — Primary Out-of-Sample Replication

MetricPaperReproducedDiffStatus
SPY A Trades40
38
-2
Within tolerance
SPY A Sharpe0.470.38-0.09Within tolerance
SPY A PnL13612.3410902.10-2710.24Close
SPY B Trades3629-7Material
SPY B Sharpe1.350.58-0.77Material
SPY B PnL52688.9416572.08-36116.86Material
SPY C Trades614+8Material
SPY C Sharpe0.960.60-0.36Material
SPY C PnL27543.7820110.30-7433.48Moderate/material
MetricPaperReproducedDiffStatus
QQQ A Trades3533-2Within tolerance
QQQ A Sharpe0.450.53+0.08Within tolerance
QQQ A PnL16823.1221741.64+4918.52Close
QQQ B Trades3124-7Material
QQQ B Sharpe1.130.21-0.92Material
QQQ B PnL63321.067192.00-56129.06Material
QQQ C Trades2118-3Acceptable/moderate
QQQ C Sharpe1.510.91-0.60Material
QQQ C PnL88324.4844146.89-44177.59Material
MetricPaperReproducedDiffStatus
DIA A Trades4038-2Within tolerance
DIA A Sharpe0.09-0.05-0.14Within tolerance
DIA A PnL1236.96-2367.48-3604.44Moderate/material
DIA B Trades3433-1Within tolerance
DIA B Sharpe-0.200.11+0.31Material
DIA B PnL-6862.001792.82+8654.82Material
DIA C Trades1317+4Moderate
DIA C Sharpe1.080.62-0.46Material
DIA C PnL29592.1722340.57-7251.60Moderate/material

Summary

The replication is mixed:

  • Baseline Strategy A is reproduced reasonably well on trade counts and Sharpe across all three ETFs.
  • Strategy B is not faithfully reproduced in SPY and QQQ: the paper reports a large improvement over A, but the repo finds only mild improvement in SPY and a clear underperformance vs A in QQQ.
  • Strategy C does better qualitatively: it is more selective and often stronger than A/B, but the absolute magnitudes and Sharpe ratios are still materially below the paper, especially in QQQ and DIA.

So the repo captures baseline mechanics and some directional claims, but not the main quantitative strength reported in the paper.


Detailed Experiment Analysis

Experiment 1: Primary Paper-Faithful OOS Replication

Reproduced OOS metrics

SPY

  • A: 38 trades, 52.63% win rate, $10,902, Sharpe 0.38, MDD -13.01%
  • B: 29 trades, 51.72% win rate, $16,572, Sharpe 0.58, MDD -11.21%
  • C: 14 trades, 64.29% win rate, $20,110, Sharpe 0.60, MDD -12.47%

QQQ

  • A: 33 trades, 48.48% win rate, $21,742, Sharpe 0.53, MDD -22.30%
  • B: 24 trades, 50.00% win rate, $7,192, Sharpe 0.21, MDD -17.27%
  • C: 18 trades, 66.67% win rate, $44,147, Sharpe 0.91, MDD -21.06%

DIA

  • A: 38 trades, 31.58% win rate, -$2,367, Sharpe -0.05, MDD -14.60%
  • B: 33 trades, 42.42% win rate, $1,793, Sharpe 0.11, MDD -13.03%
  • C: 17 trades, 76.47% win rate, $22,341, Sharpe 0.62, MDD -11.95%

What matches the paper?

  1. Trade frequency hierarchy broadly matches:

    • Strategy C trades less than A in all three markets.
    • B often trades less than A.
    • This supports the paper’s “more selective” claim for λ-relaxed and VP-MACD variants.
  2. Strategy C often improves trade quality:

    • Higher win rates than A and B in all three tickers.
    • Strongly higher expectancy than A and B in all three tickers.
    • This is directionally consistent with the paper.
  3. SPY and DIA ranking by total PnL:

    • SPY: C > B > A
    • DIA: C > B > A
    • This is at least partly consistent with the paper’s narrative that VP-MACD can dominate.

What does not match?

  1. QQQ Strategy B fails badly relative to paper:

    • Paper: B should strongly outperform A with Sharpe 1.13 and PnL $63k.
    • Reproduction: B Sharpe 0.21, PnL $7.2k, and it underperforms A on PnL and Sharpe.
    • This is a major non-replication.
  2. SPY Strategy B is much weaker than paper:

    • Paper Sharpe 1.35 vs reproduced 0.58.
    • Paper PnL 52.7k∗∗vsreproduced∗∗52.7k** vs reproduced **52.7k∗∗vsreproduced∗∗16.6k.
    • Improvement over A exists, but only modestly.
  3. Strategy C magnitude is much weaker than paper:

    • QQQ C PnL is roughly half the paper.
    • DIA C Sharpe 0.62 vs paper 1.08.
    • SPY C trades 14 vs paper 6, indicating materially different signal timing/selectivity.

Economic significance

Economically, the reproduced results still imply:

  • Strategy C may be useful:
    • Strong expectancy across all three ETFs.
    • Much fewer trades than A, especially in SPY/DIA.
    • Positive PnL in all three markets.
  • Strategy B is not robustly useful in this reproduction:
    • Only mild help in SPY and DIA.
    • Fails badly in QQQ, contrary to the paper’s central improvement claim.

So the economic story becomes:

  • Baseline MACD is roughly reproduced
  • VP-MACD+λ remains promising
  • MACD+λ does not deliver the paper’s reported edge consistently

Experiment 2: Training-Period Lambda Calibration

Best lambda summary found in repo

  • DIA B: published 0.92, best Sharpe/PnL/Expectancy = 0.82
  • DIA C: published 0.86, best Sharpe/PnL/Expectancy = 0.82
  • QQQ B: published 0.84, best Sharpe = 0.84, best PnL/Expectancy = 0.80
  • QQQ C: published 0.98, best Sharpe/PnL/Expectancy = 0.80
  • SPY B: published 0.90, best Sharpe/PnL/Expectancy = 0.88
  • SPY C: published 0.88, best Sharpe/PnL = 0.90, best Expectancy = 0.82

Interpretation

This experiment does not strongly support the paper’s published lambdas.

What matches

  • QQQ Strategy B is the strongest calibration match:
    • Published λ = 0.84
    • Best Sharpe λ = 0.84
  • SPY Strategy B is close:
    • Published 0.90 vs best 0.88
    • Difference only 0.02, likely acceptable under a multi-metric narrative

What does not match

  • QQQ Strategy C is the largest miss:
    • Published λ = 0.98
    • Best Sharpe/PnL/Expectancy all at 0.80
    • This is a huge discrepancy
  • DIA B/C both point to ~0.82 rather than the published 0.92/0.86
  • SPY C does not point cleanly to 0.88

Calibration surface evidence

From the partial calibration grid shown:

  • For SPY B, training Sharpe peaks around 0.88
  • For QQQ B, the high-performing region appears around 0.84–0.86
  • For QQQ C, the published 0.98 does not seem naturally favored by the repo’s calibration metrics
  • For SPY C, performance is sensitive and non-monotonic across λ

Assessment

The repo successfully reconstructs a market- and strategy-specific calibration landscape, but it does not convincingly recover the paper’s selected lambdas except in limited cases. Therefore:

  • The qualitative claim “lambda is market-specific and strategy-specific” is reproduced.
  • The specific selected lambda values from the paper are only partially reproduced.

Experiment 3: Pairwise Statistical Significance

Reproduced significance results

All nine pairwise comparisons are insignificant at 5% under:

  • standard t-test,
  • Newey-West HAC t-test,
  • circular block bootstrap.

This is the strongest point of divergence from the paper.

Comparison with paper’s expected pattern

Paper expected:

  • Pair 1 (B vs A) significant for SPY and QQQ
  • Pair 2 (C vs A) significant for QQQ
  • Pair 3 (C vs B) significant for DIA

Reproduced:

  • No significant cases at all

Quantitative comparison

PairPaper t/pReproduced t/pStatus
SPY B vs At=1.7171, p=0.0432t=0.6658, p=0.2529Not reproduced
QQQ B vs At=1.6653, p=0.0481t=-0.8118, p=0.7914Not reproduced
QQQ C vs At=1.6586, p=0.0488t=0.7704, p=0.2206Not reproduced
DIA C vs Bt=1.7065, p=0.0442t=0.9442, p=0.1727Not reproduced

For Newey-West:

  • Same story; the t-stats are directionally smaller and never reach significance.

For bootstrap:

  • Paper reports:
    • SPY Pair 1 p=0.024
    • QQQ Pair 2 p=0.039
    • DIA Pair 3 p=0.028
  • Repo gets:
    • SPY Pair 1 p=0.224
    • QQQ Pair 2 p=0.226
    • DIA Pair 3 p=0.147

These are far away, not borderline misses.

Statistical significance assessment

This experiment is not reproduced. The discrepancy is too large to attribute to normal sampling noise or only to Newey-West lag ambiguity. The repo’s own sensitivity analysis shows NW lag changes do not fix this.

Economic relevance of mean differences

Mean daily differences are small:

  • SPY B vs A: 0.000062
  • QQQ C vs A: 0.000238
  • DIA C vs B: 0.000220

These are economically modest and statistically weak in the reproduced data, explaining why inference is not significant.


Experiment 4: Ambiguity Audit / Sensitivity

This experiment is important because it helps explain the replication gaps.

Main findings from sensitivity study

The repo reports Strategy C Sharpe ranges under varying N and STD windows:

  • SPY Strategy C Sharpe: 0.19 to 1.13
  • QQQ Strategy C Sharpe: 0.31 to 1.43
  • DIA Strategy C Sharpe: -0.03 to 0.71

This is a large sensitivity range, especially for SPY and QQQ. It means the unresolved VP-MACD construction details can materially alter outcomes and can potentially move results closer to or farther from the paper.

Newey-West lag sensitivity

  • Lag 1: 0 significant pairs
  • Lag 5: 0 significant pairs
  • Lag 10: 0 significant pairs

This indicates:

  • HAC lag choice is not the main reason significance failed.
  • The underlying return differences themselves are too weak in this implementation.

EMA sensitivity

The shown exp4_ema_sensitivity.csv entries suggest no change in reported metrics between recursive and adjusted EMA conventions for the configurations shown. So:

  • EMA initialization is probably not a first-order driver here.

Interpretation

The ambiguity audit supports a nuanced conclusion:

  • VP-MACD results are highly sensitive to N and STD window.
  • Inference failures are not primarily due to NW lag choice.
  • Main discrepancies are more likely caused by the under-specified adjusted-price formula choices and/or broader implementation/data differences, not by a minor test-setting choice.

Statistical & Economic Significance

Statistical significance

  • The paper’s inferential claims are not reproduced.
  • No pair reaches 5% significance under any of the three procedures.
  • Since the gap persists under standard, HAC, and bootstrap tests, this is a material failure rather than a marginal p-value issue.

Economic significance

  • Some strategies remain economically interesting:
    • Strategy C has large positive expectancy and positive PnL in all three ETFs.
    • In SPY and DIA, C is best by PnL.
    • In QQQ, C strongly beats A and B on absolute PnL.
  • However:
    • Strategy B lacks convincing economic support, especially in QQQ.
    • Reproduced Sharpe ratios are much lower than the paper’s for B and C.

So the economic case is partially preserved for Strategy C, but not for the full paper narrative.


Discrepancies

1. VP-MACD formula ambiguities materially affect Strategy C

The repo explicitly chose:

  • N = 20
  • sigma STD window = 20

But the sensitivity study shows Strategy C Sharpe can swing widely depending on these settings. Because the paper does not specify them, exact replication is inherently unstable. This likely explains much of the mismatch in Strategy C’s magnitude and trade counts.

2. Strategy B mismatch is harder to explain by VP-MACD ambiguity

Strategy B uses standard MACD plus λ only. Yet:

  • SPY B and especially QQQ B are far below the paper.
  • QQQ B actually underperforms A, opposite to the paper.

This suggests that discrepancies likely come from one or more of:

  • data-source differences (Yahoo ETF data vs paper source),
  • indicator/sample-boundary handling,
  • exact execution assumptions,
  • λ calibration/selection narrative in the paper,
  • or possible differences in how the paper computed returns/portfolio sizing.

3. Trade counts differ materially for some strategies

Examples:

  • SPY C: 14 vs paper 6
  • SPY B: 29 vs paper 36
  • QQQ B: 24 vs paper 31

Trade-count gaps usually signal differences in:

  • crossover implementation details,
  • warmup / sample-boundary treatment,
  • EMA startup handling,
  • or VP-MACD adjusted price construction.

4. Significance discrepancy is too large to be a mere testing-convention issue

Changing NW lag did not restore significance. Bootstrap differences are also large. Therefore the core issue is the underlying daily-return series, not just inference machinery.


Methodology Issues

Methodology appears broadly faithful to the user’s required experiment design:

  • Separate train/test windows used
  • Published λ values used for final OOS run
  • Next-day-open execution
  • Integer shares
  • 4 bps one-way costs
  • Formal significance testing done
  • Ambiguities documented rather than hidden

So this does not look like a careless implementation. The main issue is not obvious methodological noncompliance, but rather that paper-faithful implementation under documented choices does not recover the paper’s headline outcomes.

One notable point:

  • The calibration output does not naturally justify several of the paper’s published λ selections, especially QQQ Strategy C = 0.98. That weakens confidence that the paper’s calibration rule was fully specified.

Reliability

Positives

  • Results are internally coherent.
  • Strategy hierarchies are sensible.
  • Sensitivity analysis is present and useful.
  • The same inference failure persists across standard, HAC, and bootstrap methods.

Red flags

  • Several paper claims are not close quantitatively.
  • Strategy B’s reproduced behavior is sharply inconsistent with the paper in QQQ.
  • Calibration does not support some published λ choices.
  • VP-MACD results are highly assumption-sensitive.

Overall confidence

  • Medium confidence in the repository’s reported findings as a serious replication attempt.
  • Low confidence that the original paper’s exact reported magnitudes are robust or uniquely reproducible from the published methodology.

Charts Found in Repository

Experiment 1

SPY portfolio

QQQ portfolio

DIA portfolio

SPY drawdown

QQQ drawdown

DIA drawdown

Experiment 2

SPY Strategy B calibration

SPY Strategy C calibration

QQQ Strategy B calibration

QQQ Strategy C calibration

DIA Strategy B calibration

DIA Strategy C calibration

Experiment 3

SPY Pair 1 bootstrap

QQQ Pair 2 bootstrap

DIA Pair 3 bootstrap

Significance heatmap

Experiment 4

SPY Strategy C total pnl heatmap

SPY Strategy C sharpe heatmap

SPY Strategy C max drawdown heatmap

QQQ Strategy C total pnl heatmap

QQQ Strategy C sharpe heatmap

QQQ Strategy C max drawdown heatmap

DIA Strategy C total pnl heatmap

DIA Strategy C sharpe heatmap

DIA Strategy C max drawdown heatmap

Sensitivity tornado chart


Verdict

Final Decision: PARTIALLY REPRODUCED

Why:

  • The replication does recover some core qualitative findings:
    • baseline MACD behavior is broadly similar,
    • Strategy C is more selective,
    • Strategy C often improves trade quality and sometimes total PnL,
    • results remain market-dependent.
  • But the repository does not reproduce the paper’s headline quantitative results:
    • Strategy B’s strong OOS improvement is not recovered, especially in QQQ,
    • Strategy C’s reported magnitudes are much weaker,
    • the published significance pattern is not reproduced at all,
    • calibration does not convincingly recover several published λ values.

So this is not a full reproduction, but also not a complete failure, because meaningful parts of the paper’s qualitative narrative do survive under a transparent, documented implementation.

Experiments

Primary paper-faithful out-of-sample replication of MACD, MACD+lambda, and VP-MACD+lambda on SPY, QQQ, and DIA

Reproduce the paper’s main empirical results by implementing three daily long-only ETF trading strategies—baseline MACD crossover, MACD with a lambda-relaxed buy rule, and VP-MACD with its own lambda-relaxed buy rule—using Yahoo Finance OHLCV data for SPY, QQQ, and DIA. The experiment must calibrate lambda on the 2018-2022 training sample, then evaluate out-of-sample performance on 2023-01-01 to 2026-02-28 with next-day-open execution, integer shares, no leverage, and 4 bps one-way transaction costs. The experiment must preserve the paper’s custom VP-MACD adjusted price definition and asymmetric lambda rule, while explicitly documenting unresolved ambiguities such as the adjusted-price lookback N, the volatility STD window, EMA initialization, and sample-boundary conventions.

Training-period lambda calibration experiment for MACD+lambda and VP-MACD by market

Reproduce the paper’s parameter-calibration stage by searching over lambda values from 0.80 to 1.00 in increments of 0.02 for Strategy B (traditional MACD with lambda-relaxed buy rule) and Strategy C (VP-MACD with lambda-relaxed buy rule), separately for SPY, QQQ, and DIA, using only the 2018-2022 training sample. This experiment is independent of the final out-of-sample backtest and focuses only on reconstructing the calibration grid, calibration metrics, selected lambdas, and the claim that lambda is market- and strategy-specific.

Pairwise statistical significance experiment on out-of-sample daily return differences

Independently reproduce the paper’s inferential analysis by constructing out-of-sample daily portfolio return difference series for pairwise strategy comparisons and applying three one-sided significance procedures: a standard t-test, a Newey-West HAC-adjusted t-test, and a circular block bootstrap with 1,000 resamples and block length 5. This experiment focuses only on statistical testing of strategy-improvement claims on the 2023-01-01 to 2026-02-28 testing period, assuming daily return series for the three strategies have already been generated under the paper’s trading rules.

Ambiguity audit and sensitivity experiment for unresolved VP-MACD implementation choices

Systematically evaluate how unresolved paper ambiguities affect replication results by running a controlled sensitivity analysis over the implementation choices that the paper leaves unspecified, especially the adjusted-price lookback N in the VP-MACD formula, the STD window used in the volatility term sigma_i, the EMA initialization convention, the test-period starting-state convention, and the Newey-West lag choice. This experiment is designed as an audit layer separate from the primary replication and should quantify which ambiguities materially change the reported outcomes and which do not.

Original paperRun QCA on your paper