LibraryWorkspaceDataHub

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

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

Quantitative Trading using Deep Q Learning (Soumyadip Sarkar)

Open repository
Apr 24, 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’s strict replication experiment does not support the paper’s claimed directional superiority of DQN over buy-and-hold. However, the ambiguity-controlled variants show that performance is highly sensitive to undocumented choices: some variants outperform buy-and-hold materially, while others collapse to near-zero or no-trade behavior.

Results Comparison

Experiment 1: Strict Paper Replication of DQN Trading on Nifty 50

The repository explicitly states that the paper provides no target numerical values, so comparison must be against the paper’s directional claim: DQN should beat buy-and-hold on key metrics.

MetricPaperReproducedDiffStatus
Cumulative ReturnDQN should outperform buy-and-holdDQN: -0.02% vs BaH: 14.77%DQN underperforms by 14.79 ppNot reproduced
Sharpe RatioDQN should outperform buy-and-holdDQN: -0.2828 vs BaH: 0.6050
-0.8878
Materially worse
Max DrawdownDQN expected to be favorable/lowerDQN: -0.06% vs BaH: -38.44%DQN drawdown better by 38.38 ppReproduced on this metric only
Profit FactorDQN expected favorableDQN: 0.5476 vs BaH: 1.1301-0.5825Not reproduced
Winning %DQN expected favorableDQN: 50.00% vs BaH: 58.87%-8.87 ppNot reproduced
Avg Holding PeriodNot numerically specifiedDQN: 2.0 days vs BaH: 248.0 daysVery different behaviorDifferent strategy profile
Number of TradesNot specifiedDQN: 2Very low activityRed flag

Summary:
Experiment 1 fails to reproduce the main economic claim. The DQN strategy preserved capital and avoided drawdowns, but did so at the cost of almost no participation in the market. Economically, that is not evidence of a successful trading policy outperforming the benchmark.


Experiment 2: Ambiguity-Controlled Replication Variants

This experiment is a sensitivity study, so the right question is whether the paper’s claim is robust across plausible interpretations.

Variant summary

VariantPaper ExpectationReproducedDiff vs BaHStatus
A1_A3: [0,1], full-sample fitDQN should outperform23.50% CR, 1.042 SharpeBeats BaH by +8.73 pp CR and +0.437 SharpeSupports claim
A1_A4: [0,1], train-only fitDQN should outperform robustly20.82% CR, 0.968 SharpeBeats BaH by +6.05 pp CR, +0.363 SharpeSupports claim
A2_A4: [-1,1], train-only fitSimilar result if robust0.02% CR, 1.015 SharpeUnderperforms BaH by -14.75 pp CRContradicts claim
B1: % return rewardDQN should outperform23.50% CR, 1.042 SharpeOutperformsSupports claim
B2: wealth-change rewardSimilar if robust0.00% CR, 0 tradesStrong underperformanceContradicts claim
C1: single-stockPaper ambiguous23.50% CR, 1.042 SharpeOutperformsSupports claim
C2: multi-stockPaper ambiguous23.50% CR, 1.042 SharpeOutperformsSupports claim, but suspiciously identical
D1: returns onlyStrict feature set23.50% CR, 1.042 SharpeOutperformsSupports claim
D2: returns + indicatorsCould improve or match8.70% CR, 0.548 SharpeUnderperforms BaHContradicts claim
E1: benchmark = BaH onlyDQN should beat explicit benchmark23.50% CR, 1.042 SharpeOutperforms BaHSupports claim
E2: benchmark = BaH + SMADQN superiority broader?DQN 23.50% vs SMA 34.09%DQN loses to SMA by -10.59 ppDoes not support broader superiority

Summary:
The paper’s qualitative claim is not robust. Outperformance appears under some settings, especially the [0,1] normalization and percentage-return reward, but disappears under other equally plausible interpretations.


Statistical & Economic Significance

Statistical significance

  • I found no reported t-stats, p-values, confidence intervals, or multi-seed summaries in the result artifacts.
  • Because of that, I cannot confirm whether observed differences are statistically significant.
  • This is especially important because:
    • training was stochastic,
    • test period is only 2020,
    • some strategies made very few trades,
    • and some strong results come from only 16 episodes in exp2.

Conclusion: Statistical significance is not established.

Economic significance

  • Exp1 strict replication: economically weak. A return of -0.02% with only 2 trades is not useful despite tiny drawdown.
  • Best exp2 variants (A1_A3 / B1 / C1 / D1 / E1): economically more interesting:
    • 23.50% cumulative return
    • 1.042 Sharpe
    • -20.38% max drawdown
    • These are meaningfully better than Nifty buy-and-hold’s 14.77% return and 0.605 Sharpe, with much lower drawdown.
  • However, the economic story is weakened by:
    • low or mediocre profit factor in some winning variants (0.9832 in A1_A3),
    • low winning percentage (28.57%) despite positive total performance,
    • heavy sensitivity to minor methodological choices,
    • and one benchmark extension (SMA20) beating the DQN materially.

Bottom line: Some variants are economically interesting, but the result is too fragile to be treated as a reliable reproduction of the paper’s claim.


Discrepancies

  • Strict experiment used only 50 episodes, not 10,000.
    This is a major methodological deviation. The assumption sheet explicitly says paper requires 10,000 episodes, but the actual run used 50 in exp1 and 16 in exp2 “for feasibility.” That alone can materially affect reproduction quality.

  • Strict exp1 is not actually a full Nifty 50 portfolio experiment.
    The pre-registered “strict” run uses only RELIANCE.NS, despite the experiment description referring to Nifty 50 stock data and a Nifty 50 benchmark. This is a substantial narrowing of the problem and could explain divergence.

  • Single-stock vs benchmark mismatch.
    The DQN in exp1 is trading RELIANCE.NS, while benchmark is Nifty 50 index. That is not a like-for-like comparison and may distort interpretation.

  • Normalization ambiguity materially changes outcome.
    [0,1] scaling produces strong outperformance; [-1,1] scaling leads to near-flat returns. This suggests the paper’s claim depends on an undocumented preprocessing choice.

  • Reward definition ambiguity is critical.
    Percentage-return reward works; wealth-change reward degenerates into 0 trades / 0 return, with logged runtime warning behavior. This is a strong sign that the implementation is highly reward-sensitive.

  • Feature extension weakens results.
    Adding SMA/RSI, which the paper mentions loosely, reduced performance to 8.70% and Sharpe to 0.549, below benchmark. That argues against any broad claim that “more paper-like technical features” strengthen the result.

  • SMA benchmark beats DQN in E2.
    Once a non-paper SMA benchmark is added, SMA(20) delivers 34.09% CR and 2.013 Sharpe, exceeding the DQN’s 23.50% and 1.042. So the DQN is not generally superior to simple alternatives in this sample.


Methodology Issues

The main methodology problems are material:

  1. Training episodes were drastically reduced

    • Paper-stated: 10,000
    • Exp1 used: 50
    • Exp2 variants used: 16
    • This is not a minor deviation.
  2. Strict experiment changed the market-universe interpretation

    • The experiment description asks for Nifty 50 stock data.
    • Exp1 effectively becomes a single-stock RELIANCE experiment.
  3. Potential comparability issue in exp2 interpretation variants

    • C1 and C2 produce exactly identical metrics despite different ticker sets and modes.
    • That is possible, but unusual enough to warrant caution. It may indicate the multi-stock implementation is not truly changing the decision process materially, or the result object is being reused.
  4. No target network

    • Assumption sheet says target_network: false.
    • That is a nontrivial DQN design choice and may reduce stability.
  5. Evaluation reliability limited by trade count

    • Several runs have 0 or 2 trades, making trade-based metrics unstable or uninformative.

Reliability

Positive signs

  • Results are well logged and artifacts are saved consistently.
  • Assumptions are explicitly documented.
  • Sensitivity analysis is structured and informative.

Red flags

  • Very low training budget relative to the paper.
  • No statistical replication across seeds.
  • Identical outputs across distinct variants in several families.
  • Degenerate variants with zero trades.
  • Strict run undertrades massively.
  • Benchmark mismatch between single stock and index.
  • 2020-only test period is short and regime-specific.

Overall confidence

  • Medium for describing what the repository produced.
  • Low-to-medium for claiming the paper itself was faithfully reproduced in a strong sense.

Charts

Experiment 1

Exp1 equity curves

Exp1 drawdown

Exp1 training history

Experiment 2

Exp2 A1_A3 equity curves

Exp2 A1_A4 equity curves

Exp2 A2_A4 equity curves

Exp2 B1 equity curves

Exp2 C1 equity curves

Exp2 C2 equity curves

Exp2 metrics heatmap


Experiment-by-Experiment Assessment Against Expected Outcomes

Experiment 1 expected outcome

Expected: a structurally faithful replication where DQN should, if claim holds, beat buy-and-hold on return, Sharpe, and drawdown.

Actual:

  • Valid out-of-sample portfolio path: Yes
  • Full assumption disclosure: Yes
  • DQN beats benchmark on return: No
  • DQN beats benchmark on Sharpe: No
  • DQN beats benchmark on drawdown: Yes

Assessment: The implementation produced a reproducible result, but the paper’s directional performance claim is not supported in the strict run.

Experiment 2 expected outcome

Expected: map sensitivity of performance to unresolved ambiguities, identify which choices flip conclusions, and test robustness.

Actual:

  • Normalization choice changes outcome materially: Yes
  • Reward definition changes outcome materially: Yes
  • Feature set changes outcome materially: Yes
  • Interpretation and benchmark families appear less sensitive in reported table, though interpretation equality is suspicious: Yes
  • Qualitative superiority robust across variants: No

Assessment: Experiment 2 successfully achieves its research objective. It shows the paper’s claim is fragile and assumption-dependent.


Verdict

Final Decision: PARTIALLY REPRODUCED

Why:

  • The repository successfully built and executed both the strict replication and ambiguity-controlled variants with saved artifacts and explicit assumptions.
  • But the strict replication result does not reproduce the paper’s main performance claim.
  • The only support for the claim comes from selected ambiguity variants, and those results are not robust across equally plausible alternative interpretations.
  • Methodological deviations, especially 50/16 episodes instead of 10,000 and the single-stock simplification, prevent a “fully reproduced” verdict.

Experiments

Strict Paper Replication of DQN Trading on Nifty 50 Daily Data with Buy-and-Hold Benchmark

Implement a strict, paper-faithful reproduction of the reported reinforcement-learning trading experiment using a Deep Q-Network on daily Nifty 50 stock data from Yahoo Finance, training on 2010-01-01 to 2019-12-31 and testing on 2020-01-01 to 2020-12-31. This experiment should use only elements clearly stated in the paper and freeze all missing details as explicit assumptions before execution. The primary goal is to test whether a DQN-based strategy can outperform a buy-and-hold Nifty 50 benchmark on cumulative return, Sharpe ratio, maximum drawdown, and related trading metrics.

Ambiguity-Controlled Replication Variants for DQN Trading Methodology

Implement a structured set of independent replication variants to test how unresolved methodological ambiguities in the paper affect the performance of the DQN trading strategy. This experiment is not a single strict reproduction; it is a controlled sensitivity framework designed to separate paper-stated components from undocumented assumptions. Each variant must keep the core paper constants fixed—Yahoo Finance daily Nifty 50 data from 2010-01-01 to 2020-12-31, DQN with replay buffer and epsilon-greedy exploration, learning rate 0.001, discount factor 0.99, 10,000 episodes, and 2020 out-of-sample testing—while varying one ambiguity at a time. The objective is to determine whether the paper’s reported directional superiority is robust or highly dependent on interpretation choices such as normalization scope, reward definition, single-stock versus multi-stock state design, and optional benchmark inclusion.

Original paperRun QCA on your paper