Discovery Lab
Test a trading strategy against real market history. Choose a market, a starting balance, a position size and a classic rule, then see the statistics our risk engine reports: return, Sharpe ratio, drawdown, value at risk, robustness and more.
- No account or login
- Daily history requested from public sources when you run a test
- Nothing stored by Sapientia
Preparing the Lab.
Price, signals and trades
Equity: strategy against buy and hold
Drawdown from the previous peak
Robustness: does it depend on one lucky setting?
The same rule run across a grid of settings, the first check Discovery applies to any idea. The first 70% of the period is in-sample and the last 30% is out-of-sample.
Monte Carlo: the range of outcomes
Monthly returns (%)
Trade log
How the Lab works
Where does the data come from?
When you run a test, your browser requests daily history through this website's host: Yahoo Finance for stocks, ETFs, Treasury and commodity futures and currencies, Coinbase for digital assets, and European Central Bank reference rates as a fallback for currencies. Stock and ETF prices can be adjusted for splits and dividends. The data is held only in your browser tab for that session; Sapientia never receives or stores it.
How are trades filled?
A rule is evaluated at each day's close and any trade fills at the next day's open, so no test can use information from the future. Stops and targets are checked against each day's high and low; if the market opens beyond a stop, the trade fills at the open. After a stop, the rule waits for a fresh signal before re-entering. Costs are charged on both entry and exit.
How is position size calculated?
Fixed size trades the same number of shares, coins, lots or contracts every time; one currency lot is 100,000 units of the base currency, and futures contracts use their exchange multiplier. Percent of equity invests a share of the account's value at each entry. Volatility target sizes each entry so the position's expected annual volatility matches your target, based on the previous 20 days and capped at four times equity. Profits and losses on pairs such as USD/JPY are converted to U.S. dollars.
What do the statistics mean?
CAGR is the compound annual growth rate. The Sharpe ratio is the annualised average daily return divided by its volatility, with no risk-free rate deducted; Sortino counts only downside volatility. Maximum drawdown is the largest fall from a previous peak, and Calmar is CAGR divided by it. Daily VaR (95%) is the loss exceeded on the worst 5% of days, and expected shortfall is the average loss on those days. Profit factor is gross profit divided by gross loss.
What does the Lab leave out?
Taxes, financing and borrowing costs, dividends owed on short positions, margin interest, market impact beyond your cost setting, and contract rolls in continuous futures series. Results for thinly traded symbols may be unrealistic.
Is this how Sapientia trades?
No. The Lab runs five classic, published rules so that anyone can see how disciplined testing works. Discovery's own research, models and positions are proprietary and are not shown on this website.
Hypothetical results
Backtests are simulations applied to historical data with the benefit of hindsight. They do not represent actual trading, do not reflect Sapientia Financial's strategies, positions or performance, and do not predict future results. Real trading involves costs, liquidity limits and risks a simulation cannot capture. Nothing in Discovery Lab is investment advice or a recommendation to buy or sell any instrument.
