Quantitative research tests ideas about markets with data, code and statistics before anyone trusts them. Mine is private research into futures market microstructure. I built a custom C# and .NET engine that rebuilds the order book event by event from CME market-by-order data and simulates fills. It is research, not a trading service: I don’t publish strategies, parameters or results, and nothing here is investment advice.
Order book reconstruction
Market-by-order data replayed event by event to rebuild the full book, not just the best price.
Fill simulation
An estimate of whether a resting order would really have been filled, rather than assuming it was.
Study modules and rule search
Repeatable studies of market behavior, and systematic searches through candidate rules.
Gradient-boosted trees
Machine learning models held to the same out-of-sample tests as the rules.
Honest reports
Walk-forward and out-of-sample results, with negative findings written down, not buried.
Define the question
A specific, testable question about market behavior, and what result would count against it.
Rebuild the market
Replay the order-level data event by event and simulate fills, so tests see the book as it was.
Search with safeguards
Studies, rule search and models, all judged by walk-forward and out-of-sample tests.
Write it down
A report for every study, including the ones that found nothing.
Technology
- C# / .NET
- Python
- NumPy
- pandas
- Numba
- PyArrow
- scikit-learn
- Gradient-boosted trees
- Java
- Bookmap
- MetaTrader 5
- CME market-by-order data
Research, not a trading service
Most ideas about markets fail when they are tested properly. Quantitative research is the work of finding out which ones, early and cheaply, before anything depends on them. A clear negative result is useful: it closes a door and saves effort later.
My research is private. I don’t sell strategies or trading signals, and nothing on this page is investment advice. What follows describes the kind of work: the data, the engine, the methods and the safeguards. It leaves out strategy details, parameters, entry rules and results on purpose.
Market microstructure, order flow and order book data
Market microstructure studies how individual orders turn into prices: where orders wait in the book, how they trade or cancel, and how the book changes as they do. Order flow is the stream of those events, arriving one after another. A price chart hides most of this, because an order can join the queue, wait and cancel without ever showing up in a candle.
My research uses a large archive of CME futures market-by-order data, which records every order event rather than totals at each price. Working at that level shows more of what actually happened, at the cost of far more data to handle.
A custom engine for algorithmic trading research
I wrote the engine in C# on .NET. It replays the archive event by event, rebuilds the order book as it stood at each moment, and simulates how orders would have been filled. That last part matters: a price touching an order’s level does not mean the order was filled, because other orders may have been ahead of it in the queue. On top of the engine I run:
- Study modules that measure specific market behaviors in a repeatable way.
- Rule search, which tests many candidate rules systematically instead of by hand.
- Gradient-boosted tree models, held to the same tests as the rules.
Writing the engine myself means every assumption about timing, ordering and fills lives in code I can read and change.
Backtesting safeguards against overfitting
A backtest can make almost any idea look good if you search long enough. The more rules you try, the more likely it is that the best one is luck. So the tests are built to say no.
- Walk-forward testing: fit on one period, test on the next unseen period, then roll forward and repeat.
- Out-of-sample data kept apart from all fitting and selection.
- Reports that record negative findings honestly, so a dead end is not rediscovered later.
Even an idea that survives these checks is only a candidate for more testing, never a promise about the future.
Research tools: Python, Bookmap and MetaTrader 5
Around the engine sits a large body of Python research code built on NumPy, pandas, Numba, PyArrow and scikit-learn. Numba keeps the heavy loops fast, and PyArrow handles the large files.
I’ve also written add-ons in Java for Bookmap, a tool that shows order book depth and order flow visually, and Expert Advisors for MetaTrader 5.
The same discipline in my AI work
The habit that matters most here is distrusting a good-looking result until it survives data it hasn’t seen. I test AI systems the same way. Posific runs an evaluation suite on every change, the mustashar.ae shop assistant was tested against 240 normal scenarios and 40 attack attempts before launch, and Wakeel passed 11 of 11 live evaluation scenarios.
The details differ from field to field, but the rule is the same: hold data back, attack your own work, and write down what failed. That is why I treat evaluation as part of building, not a step after it.
What does a quantitative researcher do?
A quantitative researcher turns questions about markets into tests with data, code and statistics. Most of the work is data handling, careful simulation and trying to prove ideas wrong. In my case that means rebuilding futures order books event by event and testing ideas against data the models never saw.
What is market-by-order data?
Market-by-order data is the most detailed form of an exchange’s order book feed. Each order’s arrival, change, cancellation and trade is a separate event tied to that order. Market-by-price data only shows the total size waiting at each price. Order-level data lets you rebuild the book in full detail and study queues and order flow.
What is walk-forward testing?
Walk-forward testing fits a model or rule on one stretch of history, tests it on the next stretch it has never seen, then moves both windows forward and repeats. It mirrors how a rule would have been used in real time and exposes ideas that only worked on the data they were tuned on.
Why do backtests mislead?
Backtests mislead when the simulation is too kind, for example by assuming every order fills, or when many rules are tried and only the best one is reported. Both make luck look like skill. The defenses are fill simulation, data held back from all fitting, and honest reports of what failed, and my research is built on all three.
Do you sell strategies, signals or results?
No. The research is private, I don’t offer trading signals, and nothing on this site is investment advice. I also don’t publish parameters, entry rules or results, because numbers stripped of their full context tend to mislead more than they inform. What I share is the method.
Can I see the research?
Not the strategies or results. I’m glad to walk through the engine’s design, the data handling and the safeguards in a conversation, because that is the part that carries over to other work: careful simulation, honest testing and clear reports. It is a fair picture of how I approach any system built on large amounts of data.
AI automation & consulting
AI consulting that ends in working software: I find where AI automation saves your team time, then design, build and launch it.
AI governance
AI governance built into the software: a human in the loop for important actions, fixed rules for the numbers, an audit trail and evaluations on every change.
Fractional CTO
Part-time technical leadership from a working CTO who still builds: architecture, technical due diligence, hiring and leading developers.
An AI agent, an app, a platform or a growth problem. Tell me what you want to achieve and I’ll tell you how I’d build it.
Start a project








