Matana Labs

Flash crash stress test: the “Crash inside the position” check

A flash crash stress test asks what happens if the market drops sharply right after the strategy enters. Matana Labs takes trades spread across the period and reruns each one twice on the engine: as it was, and with a synthetic crash shortly after the entry. Stops, exits and margin liquidation work as usual, so the difference is what that crash would have cost.

What it checks

What happens if the market crashes a minute after entry — not on average, but at the worst possible moment.

The question behind it: Will it survive a shock? In the app it is in Analysis Lab → Checks, stage “Stress tests”. What happens on bad days that never occurred in history: a crash mid-trade, doubled volatility, shuffled history.

How it works

Synthetic. Up to 12 trades are taken (intraday ones of at least 3 minutes, and overnight trades), spread evenly over the period. From the entry day to the exit day (no more than 20 days), the engine runs twice: as it was, and with a 5% price crash over 5 minutes, starting 60 seconds after entry, 2 minutes at the bottom, and 30 minutes of recovery. The difference is the crash price. Stops, exits, and margin liquidation work as usual.

How it gets its status

These are the app’s own rules, shown on the check’s card:

How to read the result

The Crash inside the position check in Matana Labs: a synthetic data warning and a table of trades with the result as it was, with the crash and the cost of the crash
“Crash inside the position” on a test data set: each tested trade as it was and with a synthetic crash.

In the score out of 100

When it has a status, it counts toward the overall score with weight 1: “holds” earns full points, “with a caveat” half and “broke down” none; “can’t compute” is left out.

Every plan, the free one included, can run it; any engine runs it needs are counted in backtest-years.

If it breaks down

Set a price stop or a position-drawdown stop: a crash should close the position before the price reaches the bottom.

This is the app’s own suggestion; under Improvement the app tests candidate changes on the engine before it shows them.

Screenshots show the real app on a test data set. Backtests and simulations are not real trading, and past results don’t guarantee future ones. Not investment advice.

Keep reading

See Matana Labs plans, from free

Questions

Which trades are tested?

Intraday trades long enough for the crash to hit, and overnight trades, picked evenly across the period. The exact rules are in “How it works” above.

Is the crash real data?

No. It is a synthetic drop added to the real data for that day. The app labels it as synthetic everywhere it appears.

What protects a strategy from this?

An exit that closes the position before the price reaches the bottom, such as a price stop or a position drawdown stop. The app’s suggestion is on this page.