PUBLIC TECHNICAL EDITION · 001 / 01

From Market Data
to Defensible Research.

BacktestApp engineering and the CSL alpha research workflow. A technical case study of how historical conclusions become traceable, comparable and useful for decision-making.

Start reading ↓

Use your browser’s print dialog and choose “Save as PDF” for an offline copy.

BACKTESTAPP / HISTORICAL ENGINEERINGCSL / SEPARATE ALPHA RESEARCHSELF-AUTHORED TECHNICAL CASE STUDY
ABSTRACT / CORE THESIS

A result is only as reliable as the evidence beneath it.

Historical research becomes useful when its evidence survives scrutiny. This case study describes two connected but distinct workstreams: BacktestApp, a local historical simulation application, and CSL alpha research, a separate feature, model-state and portfolio-evaluation workflow. The common contribution is an engineering approach to making research inspectable while protecting proprietary decision logic.

We separate input identity, decision availability, modeled execution, financial reconciliation and research history. Archived acceptance records support early BacktestApp checkpoints. Selected source contracts and test definitions support a more detailed explanation of later modules; retained research reports inform the alpha case study. These evidence classes remain distinct.

RESEARCH QUESTIONHow can a historical result be made inspectable without publishing the proprietary mechanism that produced its decisions?
01 / RESEARCH DESIGN

Two workstreams.
One evidence discipline.

BACKTESTAPP

Historical simulation engineering

Data handling, causal rule evaluation, modeled fills, a Decimal ledger, trade evidence and research lineage in a local software workflow.

CSL ALPHA

Applied research evaluation

Input certification, causal model reconstruction, saved-state scoring and capital-normalized portfolio research under separate numerical contracts.

The research process distinguishes three kinds of work: what the implementation does, what testing exercised, and what a market-facing conclusion can actually support. A source file does not by itself establish execution; a passing backtest does not by itself establish an investable edge.

02 / SYSTEM ARCHITECTURE

Make every layer answer
one clear question.

A software architecture is useful when it makes disagreement diagnosable. Did the wrong data enter? Did a rule use observations too early? Did an order fill under unrealistic assumptions? Did fees enter accounting twice? Different questions require different evidence.

01
Input contractsSource identity · Checksums · UTC normalization · Coverage
02
Decision contractsAvailable observations · Readiness state · Event trace
03
Execution contractsOrder activation · Fill model · Gaps · Fees · Ambiguity
04
Accounting contractsSigned cashflows · Inventory · Equity · Reconciliation
05
Governance contractsVersion identity · Evaluation usage · Publication state
Figure 1. Conceptual assurance layers. This is not a proprietary strategy or feature pipeline.
03 / TEMPORAL & EXECUTION DISCIPLINE

Causal first.
More precise second.

BacktestApp separates completed strategy observations from modeled execution observations. Prefix-invariance tests mutate later data and compare prior decisions. The minute-resolution execution contract uses 1-minute observations without allowing their future ranges to inform an earlier decision.

BAR CLOSEObservation complete
EVALUATEClosed data only
ACTIVATEModel order intent
FILLEligible minute open
MARKEquity & record
Figure 2. Declared causal sequence in the minute-execution contract; modeled zero-latency availability is an assumption, not a live fill guarantee.

Missing observations remain visible as gaps rather than fabricated fills. When protective stop and target thresholds are reachable within the same minute, the configured ambiguity policy is recorded. This is more defensible than pretending OHLCV data expose a complete tick-by-tick exchange path.

04 / FINANCIAL RECONCILIATION

Show that the money
adds up.

A deliberately synthetic round trip demonstrates why a single ledger matters. These prices are invented accounting inputs, not an alpha signal or a performance statistic.

STARTING CASH1,000.00000
END CASH1,048.90105
1,000.00000 − 499.50000 − 0.49950 + 549.45000 − 0.54945 = 1,048.90105
BUY4.995 units × 100Purchase notional = 499.50000
SELL4.995 units × 110Sale proceeds = 549.45000
TOTAL FEES1.04895Included in cashflow once

For the separate CSL portfolio workstream, a different numerical contract reconciles price PnL, signed funding where applicable, costs, and capital allocation. A percentage return on a trade is not automatically a contribution to portfolio equity.

05 / HOW WE SOLVE PROBLEMS

When evidence disagrees,
investigate the contract.

The alpha research workstream raises the difficulty: incomplete inputs, model-state provenance, selection bias and portfolio concentration. Our approach is not to hide inconvenient findings; it is to turn them into targeted engineering questions.

INPUT ELIGIBILITYDownloaded is not the same as validated.

Diagnose residual gaps, accept only verified recovery candidates, and retain exclusions where input evidence is insufficient.

TEMPORAL RECONSTRUCTIONAttractive output never overrides causal timing.

When an earlier workflow exhibits leakage, require an availability-aware reconstruction rather than promoting its result.

MODEL PROVENANCEA reconstruction is not the original artifact.

Keep unavailable estimator state as a provenance blocker; any authorized replacement must carry its own identity.

RESEARCH GOVERNANCEFailure is information, not a reason to relabel a holdout.

Retain failed candidates and distinguish exploratory comparisons from genuinely independent future evaluation.

ENGINEERING MINDSETDo not protect a beautiful result. Protect the process that explains whether the result deserves confidence.
06 / VERIFICATION EVIDENCE

Evidence, classified
by what it actually proves.

The BacktestApp source and archived acceptance records document multiple development checkpoints. The figures below are the reported passing-test counts for separate archived checkpoints, not a single current test run and not cumulative.

Kernel acceptance
36
Data / DSL acceptance
56
Local web MVP
59
Figure 3. Historical checkpoint pass counts. The scale compares recorded checkpoint totals only; tests and environments differ.
Evidence classWhat it supports
Archived acceptance records36, 56, 59 tests recorded across distinct milestones; local smoke workflow and deterministic output hashes.
Inspected source contractsStage 3 execution, Stage 4 evidence, and Stage 5 lineage/governance behavior as described in source and defined tests.
Saved alpha reportsInput-audit and matched-comparison summaries; these are not independent raw-source reruns.
Bounded toolkit recordSixteen passing checks and five saved-ledger reconciliations are described in the revision's author-retained verification register; independently checkable output is not published here.
Public synthetic fixtureDecimal arithmetic identities shown above, independently reproducible without strategy disclosure.

Project evidence for private code and alpha remains under controlled review. Source presence, historic acceptance, fresh checks and independent certification are not interchangeable claims.

07 / WHAT CLIENTS RECEIVE

Research questions become
reviewable deliverables.

We build toward a decision, not a chart. The output should let a reviewer understand assumptions, reproduce supported observations and see unresolved items before committing money or architecture.

01Accounting reconciliation

Price, funding and cost units made explicit; cashflows matched or discrepancies recorded.

02Causality review

Timestamp/availability conventions and focused future-mutation checks.

03Fair comparison protocol

Capital, cost, coverage and eligibility assumptions aligned between candidate and control.

04Evidence packaging

Versioned report, scoped reproduction instructions and engineering findings.

08 / PRACTICAL DELIVERY & DISCLOSURE

Defined scope.
Useful engineering.

Available now: an offline Evidence Toolkit Starter designed to review five saved research experiments, check package identity, export reports and examine CSV cashflow/timestamp consistency. It is not an arbitrary-strategy backtesting engine or an order-execution product.

Commissioned engineering: integration with accepted client datasets, broader temporal or execution stress, customized ledger checks and decision-ready technical reports. Each engagement defines the question, data access, acceptance criteria and deliverables before execution.

Publication boundary: this technical edition shares architecture responsibilities, synthetic arithmetic and general lessons. Feature combinations, private model state, thresholds, exact signal times and trade sequences remain outside the public material. The BacktestApp spot simulation and separate CSL numerical portfolio replay use distinct accounting contracts.

WORKING PRINCIPLEMake the system explain its assumptions, then make the evidence explain the system.
09 / READING & SOURCES

Methodological context.

Relevant literature informs why selection bias and backtest overfitting matter. The references below contextualize the research discipline; the paper does not claim to have estimated PBO or deflated Sharpe for its proprietary workstreams.

  1. Bailey, D. H., Borwein, J. M., López de Prado, M., & Zhu, Q. J. (2014). Pseudo-Mathematics and Financial Charlatanism: The Effects of Backtest Overfitting on Out-of-Sample Performance. Notices of the AMS, 61(5), 458–471. Read source ↗
  2. Bailey, D. H., Borwein, J. M., López de Prado, M., & Zhu, Q. J. (2017). The Probability of Backtest Overfitting. Journal of Computational Finance, 20(4), 39–69. Read source ↗
  3. Bailey, D. H., & López de Prado, M. (2014). The Deflated Sharpe Ratio: Correcting for Selection Bias, Backtest Overfitting, and Non-Normality. Journal of Portfolio Management, 40(5), 94–107. Open DOI ↗
ABOUT THIS PUBLICATION

Self-authored technical case study prepared from archived BacktestApp acceptance records, selected source/test inspection and retained CSL summaries. It is not represented as independent peer review. The public edition is designed to explain engineering value without publishing reconstructible proprietary trading logic.

END / THE WORK BEHIND THE EVIDENCE

Want your research
to withstand better questions?

Bring a problem, a dataset or a result worth examining. Start with a focused engineering review.

Discuss a quant engineering project ↗