# CryptoXenia: a quant engine with 2,662 tests | Studios Xenia

> Our own quantitative engine: a ledger that cannot be rewritten, a 24/5 shadow on a remote server, preregistered hypotheses and 2,662 automated tests.

URL: https://www.studiosxenia.com/en/case-studies/cryptoxenia/

# CryptoXenia: a quantitative lab that won't trade without evidence

By [Ronald Armas](https://www.studiosxenia.com/en/about/) · Updated November 13, 2026 · 3 min read

In-house project · demo account, no real money

[Chat on WhatsApp](https://wa.me/584242633551?text=Hi%2C%20I%20read%20the%20%22CryptoXenia%3A%20a%20quantitative%20lab%20that%20won%27t%20trade%20without%20evidence%22%20case%20study%20on%20studiosxenia.com%20and%20I%27d%20like%20something%20similar.)[See prices](https://www.studiosxenia.com/en/pricing/)

**In short**

CryptoXenia is our quantitative engine for EUR/USD on MetaTrader 5. It runs on a demo account, with no real money, and it has one rule: nothing runs blind. What this case shows is the engineering: a ledger that cannot be rewritten, a «shadow» that runs it 24/5 on a remote server and 2,662 automated tests guarding every change.

- **2,662**: passing automated tests · Source: full suite, 5 Nov 2026
- **601/622**: mutants caught; the other 21 are equivalent · Source: AST mutator, 5 Nov 2026
- **24/5**: shadow on a remote server, watchdog every 15 min · Source: project log, Nov 2026
- **0**: blind orders: nothing trades without passing its test · Source: project rule

![Illustration of the CryptoXenia quant lab](https://www.studiosxenia.com/img/casos/portada-cryptoxenia-1200.webp)

**2,662**: passing automated tests · full suite, 5 Nov 2026

**601/622**: mutants caught; the other 21 are equivalent · AST mutator, 5 Nov 2026

**24/5**: shadow on a remote server, watchdog every 15 min · project log, Nov 2026

Own project · illustration and real numbers · [See the case study](https://www.studiosxenia.com/en/case-studies/cryptoxenia/)

How it's built

On the workstation

1. **MetaTrader 5**: candles and a demo account
2. **Bridge**: reads, validates, never repeats orders
3. **Strategy and risk**: fixed lot, −3% daily, news filter
4. **Tamper-evident ledger**: SQLite with locks and a fingerprint chain

Remote server

1. **24/5 shadow**: the full system, without orders
2. **Watchdog**: every 15 min: restarts and alerts
3. **Daily copy**: verifies the chain and freshness
4. **Read-only portal**: chart, log and studies

Lab

1. **Hypothesis**: registered with its fingerprint first
2. **Evaluation**: false positives controlled at 5%
3. **Blind segment**: data nobody looked at
4. **Decision**: if it fails, it doesn't trade

- **2,662**: passing automated tests · Source: full suite, 5 Nov 2026
- **601/622**: mutants caught; the other 21 are equivalent · Source: AST mutator, 5 Nov 2026
- **24/5**: shadow on a remote server, watchdog every 15 min · Source: project log, Nov 2026
- **0**: blind orders: nothing trades without passing its test · Source: project rule

## The challenge

A trading engine is the worst place for «it works on my machine». It decides on its own, at any hour, and a mistake costs money. We framed it as a system that can be audited: every decision written down, nothing running without a statistical test written before looking at the data, and code that doesn't break when it changes.

## What we built

### A MetaTrader 5 bridge with small-account risk

A bridge that reads candles and account state, with hard risk rules: a fixed lot below a certain balance, a 3% maximum daily loss and a filter that won't trade 15 minutes before or after high-impact news.

### A ledger that cannot be rewritten

Every movement lives in a SQLite database with locks inside the database itself: a row is never edited or deleted, only corrected by another row that names it. Each row carries the fingerprint of the previous one, like a chain, and the tip of the chain is also recorded outside the system. If someone changes an old row, the chain gives it away. You can try it below.

### The shadow: the full system, without orders

A copy of the engine runs 24/5 on a remote server and does everything except send orders. A watchdog checks it every 15 minutes and restarts it if it falls; every morning a task pulls a copy of the ledger, verifies the whole chain and alerts if something doesn't add up or if the data arrives late.

### A lab that doesn't fool itself

Each hypothesis is registered with its fingerprint before looking at the data that will judge it, false-positive control (Benjamini–Hochberg at 5%) was calibrated with noise and part of the data stays blind until the end. If an idea doesn't pass, it doesn't trade.

How it's built

On the workstation

1. **MetaTrader 5**: candles and a demo account
2. **Bridge**: reads, validates, never repeats orders
3. **Strategy and risk**: fixed lot, −3% daily, news filter
4. **Tamper-evident ledger**: SQLite with locks and a fingerprint chain

Remote server

1. **24/5 shadow**: the full system, without orders
2. **Watchdog**: every 15 min: restarts and alerts
3. **Daily copy**: verifies the chain and freshness
4. **Read-only portal**: chart, log and studies

Lab

1. **Hypothesis**: registered with its fingerprint first
2. **Evaluation**: false positives controlled at 5%
3. **Blind segment**: data nobody looked at
4. **Decision**: if it fails, it doesn't trade

## How it's tested

The full suite had 2,662 passing tests on 5 November 2026. On top of that, a syntax-tree mutator generated 622 broken versions of the code: the tests caught 601, and the remaining 21 are equivalent, each with its reason written down. There are torture tests that kill the process mid-write and prefix tests against look-ahead bias.

## What it means for your company

The same rigour works for a collections system, an operations dashboard or a [WhatsApp agent](https://www.studiosxenia.com/en/services/whatsapp-ai-agents/): a log nobody can alter unnoticed, processes that recover on their own and tests that stop you breaking what already works. That's what we offer in [custom apps and software](https://www.studiosxenia.com/en/services/apps-and-software/).

## Solutions related to this case

- [Custom software development](https://www.studiosxenia.com/en/solutions/custom-software-development/) Private dashboards, installable apps and in-house engines, quoted by scope with published tests.
- [Software for industrial companies](https://www.studiosxenia.com/en/solutions/software-for-industrial-companies/) Private dashboards and automatic follow-up for companies that quote, invoice and coordinate in the field.

## Keep reading

- [Hato: a livestock app that works with no signal on the plains](https://www.studiosxenia.com/en/case-studies/hato-livestock-app/) Offline, chute work with tag reading, health and SIGESAI.
- [B2B prospecting engine: find, verify, write and alert](https://www.studiosxenia.com/en/case-studies/prospecting-engine/) Finds, verifies, writes and stops itself.
- [This website: from a heavy app to 388 pages that load instantly](https://www.studiosxenia.com/en/case-studies/this-website/) From between 3.6 and 6.1 s to 1.2 s on a slow phone.

## Tell us what you sell and where it gets stuck.

We'll reply with what we'd do, what it costs and how long it takes.

[Chat on WhatsApp](https://wa.me/584242633551?text=Hi%2C%20I%20read%20the%20%22CryptoXenia%3A%20a%20quantitative%20lab%20that%20won%27t%20trade%20without%20evidence%22%20case%20study%20on%20studiosxenia.com%20and%20I%27d%20like%20something%20similar.)[Pricing](https://www.studiosxenia.com/en/pricing/)

[WhatsApp **+58 424 263 3551**](https://wa.me/584242633551?text=Hi%2C%20I%20read%20the%20%22CryptoXenia%3A%20a%20quantitative%20lab%20that%20won%27t%20trade%20without%20evidence%22%20case%20study%20on%20studiosxenia.com%20and%20I%27d%20like%20something%20similar.)[Instagram **@studiosxenia**](https://www.instagram.com/studiosxenia/)
