Research & Methodology Center
How Matana Labs turns history into a backtest, written down rule by rule: how orders fill, which costs are charged, what a rule can see, how robustness and prop odds are estimated, which checks the data passes, and where the limits are. The numbers on these pages are read from the code when the site is built, and the engine is checked against an independent implementation.
Methodology pages
Order execution model
How market, limit and stop orders fill second by second, with volume share, queue ahead, partial fills and gaps.
Stop and target inside one bar
A bar that touches both the stop and the target: the engine walks its seconds instead of guessing.
Costs
Commission by asset type, slippage, bid/ask spread, margin interest, forex swaps and currency conversion.
No look-ahead
What a rule can see at each second, which bars count as closed, when its orders fill, and the test that checks it.
Robustness checks and score
All 31 checks, the score out of 100, Monte Carlo, walk-forward and the overfitting checks.
Prop challenge pass probability
How “Chances to pass” is computed from a backtest, the free calculator’s model and certifiable attempts.
Data quality checks
Trade filters, despiking, data corrections, empty seconds, sessions and bar alignment: what our data passes before a backtest uses it.
Stock splits
Back-adjusted prices for splits and reverse splits, a worked 4:1 example, the “as traded” view and what is not adjusted.
Matana AI
What the assistant can and cannot do, where it runs, and how its strategies and indicators are checked.
Known limitations
What a backtest here does not model, stated plainly: one price per second, no order book, no options.
Engine validation
Three strategies, 2,765 trades: the engine and a separately written Python backtester, compared trade by trade.
How these pages are kept honest
- Every default value and threshold on these pages is read from the code at build time; when the code changes, the build stops until the text is checked again.
- The engine’s fill rules are compared with a separately written reference backtester; a smaller version of that comparison, and a test that changing future prices changes no earlier trade, run on every change of the engine.
- Limitations are listed on their own page. Research studies publish their summary data.
Research
Our studies measure the effects these rules are about, such as fills on bars versus seconds, stops inside one bar and execution delay, with summary data to download. New studies appear on the blog.