Skip to content
CN2.DEVBUKYA NARESH
WORKS/PROJECTS/FOREX PLATFORM
ACTIVE VALIDATION
07

QUANTITATIVE FX RESEARCH FRAMEWORK (PYTHON)

FOREX PLATFORM

Foreign-exchange structure is fractal — one causal state ladder from monthly to 3-minute can carry bias, setup and entry without look-ahead.

An institutional-grade quantitative foreign exchange platform for systematic research, session microstructure analysis, risk governance and algorithmic execution: a single causally consistent 7-timeframe structural ladder (1M → 3M) built from Dukascopy M1 bars, five overlapping observation sets arbitrated by net structural R:R, and a predeclared four-gate elimination funnel every candidate must clear on unseen data.

M1 BARS / PAIR

1.03M

APPROX. DUKASCOPY COVERAGE — 2024-01 → 2026-10

TIMEFRAME LADDER

7

CLOSED-BAR DESIGN — 1M DOWN TO 3M

LIVE CAPITAL

$0.00

RESEARCH ONLY — NO STRATEGY AUTHORIZED

02 / THE PROBLEM

PROBLEM STATEMENT 01

Single-timeframe strategies ignore macro structure — a lower-timeframe trigger against the higher-timeframe trend is counter-trend noise with a high false-breakout rate.

PROBLEM STATEMENT 02

Parameters chosen against the same history that reports the result produce edges that evaporate on unseen data once partitions and costs are declared after the fact.

03 / WHY I BUILT IT

ENGINEERING MOTIVATION & OBJECTIVES

I engineered FOREX PLATFORM to address core architectural challenges in quantitative fx research framework (python).

Foreign-exchange structure is fractal — one causal state ladder from monthly to 3-minute can carry bias, setup and entry without look-ahead.

04 / ARCHITECTURE

MODULAR STATE MACHINE & PIPELINE FLOW

  1. 01

    M1 VENDOR INTAKE

    Dukascopy BID/ASK bars with provenance gates

    • OHLC and anomaly checks
    • No synthetic fabrication or forward-fill
  2. 02

    CAUSAL LADDER

    Seven closed-bar timeframes, no look-ahead

    • 1M → 1W → 1D → 4H → 1H → 15M → 3M
    • One state update per close
  3. 03

    MARKET MODEL

    Strategy-agnostic structure and zones

    • Swings · BOS · CHoCH
    • Premium / discount dealing ranges
  4. 04

    SET ARBITRATION

    Five overlapping views compete by R:R

    • SET 1 macro → SET 5 session
    • Single winner per movement
  5. 05

    STRATEGY HARNESS

    Frozen institutional rider parameters

    • Two-stage OTE entry
    • ATR-buffered structural stops
  6. 06

    GATE FUNNEL

    Predeclared elimination on unseen data

    • 60/20/20 chronological split
    • Four gates — all must pass
LAYER 01

M1 VENDOR INTAKE

Dukascopy BID/ASK bars with provenance gates

  • OHLC and anomaly checks
  • No synthetic fabrication or forward-fill
LAYER 02

CAUSAL LADDER

Seven closed-bar timeframes, no look-ahead

  • 1M → 1W → 1D → 4H → 1H → 15M → 3M
  • One state update per close
LAYER 03

MARKET MODEL

Strategy-agnostic structure and zones

  • Swings · BOS · CHoCH
  • Premium / discount dealing ranges
LAYER 04

SET ARBITRATION

Five overlapping views compete by R:R

  • SET 1 macro → SET 5 session
  • Single winner per movement
LAYER 05

STRATEGY HARNESS

Frozen institutional rider parameters

  • Two-stage OTE entry
  • ATR-buffered structural stops
LAYER 06

GATE FUNNEL

Predeclared elimination on unseen data

  • 60/20/20 chronological split
  • Four gates — all must pass

05 / KEY CAPABILITIES

CORE ENGINES & SYSTEM MODULES

◆M1 VENDOR INTAKE

Dukascopy BID/ASK bars with provenance gates: OHLC and anomaly checks, No synthetic fabrication or forward-fill

◆CAUSAL LADDER

Seven closed-bar timeframes, no look-ahead: 1M → 1W → 1D → 4H → 1H → 15M → 3M, One state update per close

◆MARKET MODEL

Strategy-agnostic structure and zones: Swings · BOS · CHoCH, Premium / discount dealing ranges

◆SET ARBITRATION

Five overlapping views compete by R:R: SET 1 macro → SET 5 session, Single winner per movement

◆STRATEGY HARNESS

Frozen institutional rider parameters: Two-stage OTE entry, ATR-buffered structural stops

◆GATE FUNNEL

Predeclared elimination on unseen data: 60/20/20 chronological split, Four gates — all must pass

06 / TECHNOLOGY STACK

LANGUAGES, PROTOCOLS & RUNTIME INFRASTRUCTURE

Python 3.12Dukascopy M1 BID/ASKEvent-driven backtesterpytest

07 / ENGINEERING CHALLENGES

BOTTLENECK INVESTIGATION & RESOLUTION

CHALLENGE 01

Single-timeframe strategies ignore macro structure — a lower-timeframe trigger against the higher-timeframe trend is counter-trend noise with a high false-breakout rate.

IMPLEMENTED SOLUTION

Construct one causally consistent state ladder from monthly to 3-minute over raw M1 vendor bars: each closed bar updates exactly one state, and no forward-looking information enters the model.

CHALLENGE 02

Parameters chosen against the same history that reports the result produce edges that evaporate on unseen data once partitions and costs are declared after the fact.

IMPLEMENTED SOLUTION

Arbitrate signals from five overlapping three-timeframe sets by net structural R:R, so a single causal portfolio competes with itself instead of five independent strategies.

08 / DEVELOPMENT JOURNEY

EVOLUTIONARY PHASES & MILESTONES

PHASE 1

Problem Formulation

Single-timeframe strategies ignore macro structure — a lower-timeframe trigger against the higher-timeframe trend is counter-trend noise with a high false-breakout rate.

PHASE 2

Architectural Construction

Construct one causally consistent state ladder from monthly to 3-minute over raw M1 vendor bars: each closed bar updates exactly one state, and no forward-looking information enters the model.

PHASE 3

Validation & Testing

Unit and integration suites run under pytest from the repository's tests/ directory.

09 / CASE STUDIES

EMPIRICAL SCENARIO INVESTIGATIONS

CASE 01

FOREX PLATFORM Technical Investigation

An institutional-grade quantitative foreign exchange platform for systematic research, session microstructure analysis, risk governance and algorithmic execution: a single causally consistent 7-timeframe structural ladder (1M → 3M) built from Dukascopy M1 bars, five overlapping observation sets arbitrated by net structural R:R, and a predeclared four-gate elimination funnel every candidate must clear on unseen data.

VERIFIED OUTCOME

All institutional upgrades are implemented and verified: two-stage OTE entry, ATR stop buffering, +2.0R break-even, +3.5R structural trailing, unified session liquidity filter and higher-timeframe correlation filter.

10 / EVIDENCE & RESULTS

VERIFIED TEST SUITES, BENCHMARKS & HONEST LIMITATIONS

EMPIRICAL FINDINGS
  • ✓All institutional upgrades are implemented and verified: two-stage OTE entry, ATR stop buffering, +2.0R break-even, +3.5R structural trailing, unified session liquidity filter and higher-timeframe correlation filter.
  • ✓The full 3-year, 4-pair, 5-set batch validation campaign is processing; no gate results are published for it yet.
  • ✓Live capital is $0.00 — no strategy is authorized for live execution until it clears every predeclared gate on unseen data.
HONEST LIMITATIONS
  • !No published performance results yet: the current validation campaign is still processing, so any expectancy figure would be unsupported.
  • !Historical coverage is Dukascopy M1 bars for four pairs from 2024-01 onward — other brokers, pairs and periods are not represented.
  • !Costs (spread, commission, slippage) are modeled assumptions rather than executed fills; live liquidity can exceed modeled tolerances.

11 / SCREENSHOTS & VISUALISATIONS

SYSTEM TOPOLOGY & INSTRUMENTATION SCHEMATICS

System Topology & Flow

SCHEMATIC

Architectural topology of FOREX PLATFORM.

[LIVE SYSTEM TOPOLOGY · TELEMETRY INLINE]