Executive Summary. Internal quantitative validation of all MAISNER platform engines. Each formula was verified independently: expected values computed via Python reference scripts with no shared code paths, compared against live API responses. All 780 tests passed within stated tolerance. This report covers mathematical correctness only — formulas, coefficients, and numerical outputs across 45 modules. Non-mathematical tests (auth gates, crash guards, structural field checks) are documented separately in test_security_full.py.
—Scope
01
MVO + RMT Optimizer
10 tests
02
Portfolio Analyzer
8 tests
03
Stress Test — historical replay & category impact
13 tests
04
Advanced Stress Test
6 tests
05
Options — BS + BAW Pricing
7 tests
06
Bonds — Vasicek Model
5 tests
07
Tax Loss Harvesting
14 tests
08
Backtest engine + Probabilistic Sharpe Ratio
13 tests
09
Leverage Analyzer
39 tests
10
Stop Loss Calculator
18 tests
11
Factor Library
15 tests
12
Performance Attribution
18 tests
13
Portfolio Monitor
14 tests
14
Long/Short Optimizer
11 tests
15
Long/Short Analyzer
8 tests
16
Options Engine (BS + Greeks + IV)
28 tests
17
Multi-Asset: Bonds, Futures, Crypto
23 tests
18
Constrained Optimizer
14 tests
19
Signal Analysis
12 tests
20
Options Greeks API
15 tests
21
Options Strategy Builder
50 tests
22
Multi-Asset Optimizer — modes, risk model, book figures
12 tests
23
Frontier Points + Metrics
11 tests
24
Constrained Optimizer + Analyzer (full)
96 tests
25
Options Surface
8 tests
26
Deep Coefficient Verification
24 tests
27
Optimal Hedging (Nov 2026)
26 tests
28
Custom User Settings (rf / max_weight / cvar_alpha)
All numerical tests were executed against the live production API at maisner.eu. Reference values were computed independently in Python using standard scientific libraries (NumPy, SciPy) without access to the platform's internal source code paths — only the public API contract (inputs → expected outputs) was used.
For each test, an acceptable tolerance was defined based on floating-point rounding in the API response (typically ±0.01%). Tests involving Monte Carlo simulation (liquidation probability, CVaR) are marked with a wider tolerance band and a fixed random seed for reproducibility. Formula identifiers reference the MAISNER Methodology document (maisner.eu/methodology).
Multi-asset portfolios of 20–22 instruments were used where possible to stress-test numerical stability under realistic conditions. Edge cases tested include: near-singular covariance matrices, single-asset portfolios, zero-weight assets, unresolved tickers (silently dropped with weight renormalisation), and extreme parameter values (k=2.5, T=90d, α=0.99, L=3×).
Quality scores ∈ [0,1] and all ≥ QUALITY_THRESH=0.30
All in [0,1]=True. min=0.373 (AAPL) ≥ 0.30. Per-ticker: GLD=0.750 NOVO-B.CO=0.741 ASML.AS=0.639 JNJ=0.613 GOOGL=0.606 MSFT=0.586 JPM=0.510 XOM=0.488 AAPL=0.373. Sector formulas: Finance (7 metrics), Standard (12 metrics), ETF (3 metrics).
all ≥ 0.30
PASS
OPT-08
Small portfolio n=5: sum_w=1.0 and bounds respected
5-ticker conservative: sum_w=1.000. MSFT=30.0% JNJ=29.9% AAPL=24.6% JPM=11.1% XOM=4.3%. All ≤ 50% adaptive upper bound. No sector constraints (n<8 threshold).
±0.01
PASS
OPT-09
Adaptive weight bounds formula verified
n=5: bound=min(0.50, max(1.5/5, 1/max(4,1)))=min(0.50, max(0.30, 0.25))=0.30 lower / 0.50 upper. Max observed=30.00% (MSFT/JNJ at lower bound). Max ≤ 50% upper bound verified.
max ≤ 50%
PASS
02Portfolio Analyzer8 / 8 PASS
Protocol v2. 10 tickers (excl. ZZZTESTXXX) incl. EU: ASML.AS/NOVO-B.CO. Equal shares (100 each) → price-weighted curr_w (ASML.AS≈$920/share → 36.20%). Vol computed from curr_w-weighted covariance matrix vs price_history. max_dd returns N/A from API (not computed by analyzer engine). Executed 2026-05-07.
ID
Component
Formula / Rule
Tolerance
Status
ANL-01
Correlation matrix purity — 2-year daily only
price_history: 122 months, span=123mo. Correlation computed on 2-year daily returns only (no hybrid). Architecture invariant verified: no mixed-frequency fallback in 2-year window.
2yr daily only
PASS
ANL-02
Vol_ann = σ×√12 from price_history (curr_w weights)
API_vol=19.66% ind(curr_w-wtd from ph)=σ×√12=18.03% diff=1.63%. curr_w: ASML.AS=36.20% (100sh×$920) NOVO-B.CO=1.08% (price-weighted). Tolerance 3% for price data latency.
±3%
PASS
ANL-03
Expected return = Σwᵢ×μᵢ from Stocks.xlsx CAGR
API_ret=20.24% ind=sum(1/10×cagr)=18.27% diff=1.97%. AAPL=28.9% MSFT=24.7% JPM=19.8% JNJ=10.1%. Equal-wt approx vs price-wt actual: diff within ±6%.
±6%
PASS
ANL-04
Sharpe = (return − 3.8%) / vol — exact match
API_SR=0.8360. ind=(20.24%−3.8%)/19.66%=0.8362. diff=0.0002 < 0.02. Formula verified from API's own return/vol fields.
±0.02
PASS
ANL-05
All submitted tickers in weights_table
n_in_table=10, expected=10 (ZZZTESTXXX excluded from holdings). Missing=set(). All 10 tickers incl. EU (ASML.AS, NOVO-B.CO) present in weights_table.
missing=0
PASS
ANL-06
MDD = (peak − trough) / peak from price_history
main_optimizer.portfolio_metrics() computes max_dd from daily_log (price_history.xlsx, last 24 months); run_analyzer builds daily_log from price_history. |API_MDD|=11.57% ind(curr_w-weighted from price_history, last 24 mo)=10.91% diff=0.66% < 5%.
±5%
PASS
ANL-EU
EU tickers ASML.AS/NOVO-B.CO resolved with non-zero curr_w
ASML.AS curr_w=36.20% (100sh×$920=$92,000 of $254k total). NOVO-B.CO curr_w=1.08% (100sh×$110). EU data path (yfinance fallback) operational for both Dutch and Danish tickers.
>0
PASS
ANL-07
Optimal weight renorm: sum_w = 1.0
optimal sum_w=1.000000 across 10 tickers. Renorm verified even with EU tickers and GLD (non-standard asset types). Architecture invariant: weights always renorm after optimization.
Historical stress scenarios against the live API (24 Nov 2026). Two methods: the scenario table (each holding takes the shock of its asset class — bonds, gold, broad-index ETFs and regional ETFs first, then the sector, with banks and insurers told apart by industry) and the historical replay (the holding's own month-end closes over the crisis window). Scenario book JPM/AAPL/TLT/GLD/XOM/JNJ 25/25/20/10/10/10%; replay book AAPL/JPM/SPY/TLT/GLD 30/20/20/20/10%. Expected asset classes were assigned by hand and every return recomputed by a separate script from the price database (pandas, numpy).
ID
Component
What was verified (MAISNER vs independent computation)
Tolerance
Status
STR-01
Scenario shocks
2008 Global Financial Crisis: each asset takes the shock of its asset class — JPM −60% (financials), AAPL −40% (technology), TLT +10% (bonds), GLD 0% (no entry for this asset class → 0%, flagged), XOM −30% (energy), JNJ −55% (healthcare → equities shock), KO −40% (consumer), SPY −55% (equities). Book JPM 25 / AAPL 25 / TLT 20 / GLD 10 / XOM 10 / JNJ 10%: −31.50% = Σ w·shock (independent −31.50%); shown as 50% crisis volatility, a 0.62σ move; the path drawn is illustrative (no recovery time is claimed).
exact
PASS
STR-02
Scenario shocks
COVID crash 2020: each asset takes the shock of its asset class — JPM −35% (financials → equities shock), AAPL −30% (technology), TLT +5% (bonds), GLD 0% (no entry for this asset class → 0%, flagged), XOM −50% (energy), JNJ −5% (healthcare), KO −40% (consumer), SPY −35% (equities). Book JPM 25 / AAPL 25 / TLT 20 / GLD 10 / XOM 10 / JNJ 10%: −20.75% = Σ w·shock (independent −20.75%); shown as 60% crisis volatility, a 0.87σ move; the path drawn is illustrative (no recovery time is claimed).
exact
PASS
STR-03
Scenario shocks
Silicon Valley Bank 2023: each asset takes the shock of its asset class — JPM −25% (financials), AAPL −5% (technology), TLT 0% (no entry for this asset class → 0%, flagged), GLD 0% (no entry for this asset class → 0%, flagged), XOM −10% (energy → equities shock), JNJ −10% (healthcare → equities shock), KO −10% (consumer → equities shock), SPY −10% (equities). Book JPM 25 / AAPL 25 / TLT 20 / GLD 10 / XOM 10 / JNJ 10%: −9.50% = Σ w·shock (independent −9.50%); shown as 40% crisis volatility, a 0.79σ move; the path drawn is illustrative (no recovery time is claimed).
exact
PASS
STR-04
Scenario shocks
Inflation surge 2022: each asset takes the shock of its asset class — JPM −12% (financials), AAPL −25% (technology), TLT −15% (bonds), GLD +25% (gold → commodities shock), XOM +10% (energy), JNJ −20% (healthcare → equities shock), KO −20% (consumer → equities shock), SPY −20% (equities). Book JPM 25 / AAPL 25 / TLT 20 / GLD 10 / XOM 10 / JNJ 10%: −10.75% = Σ w·shock (independent −10.75%); shown as 30% crisis volatility, a 0.42σ move; the path drawn is illustrative (no recovery time is claimed).
exact
PASS
STR-05
Scenario shocks
Non-equity holdings never inherit the equity shock: gold in 2008 is held flat and reported as an assumption; Treasuries (TLT) in COVID take the bond impact +5%, not the equity −35%.
exact
PASS
STR-06
Consistency
Doubling every weight doubles the loss (−48% → −96%); listing assets in another order gives the same loss; a short position mirrors its shock (book JPM 50 / AAPL 60 / TLT −10% in 2008: −55%, the TLT short losing the 10% gain a long would make).
exact
PASS
STR-07
Historical replay — window
The replay runs from the month-end close BEFORE the crisis to the close of its last month: COVID crash 2020-01→2020-03; Inflation surge 2022 2021-12→2022-09; Silicon Valley Bank 2023-02→2023-03; Russia–Ukraine 2022 2022-01→2022-03.
exact
PASS
STR-08
Historical replay — asset returns
Each asset's return over the window equals its own month-end closes in the price database, 20 of 20: COVID AAPL −17.65%, JPM −31.98%, SPY −19.42%, TLT +13.26%, GLD −0.86% (largest difference 5e-07).
1e-6
PASS
STR-09
Historical replay — portfolio
Portfolio return = Σ w·r with full coverage, and the chart is the real buy-and-hold path ending at 1 + R; maximum drawdown is read from that real path: COVID crash −13.01% (max drawdown −13.01%); Inflation surge 2022 −24.78% (max drawdown −24.78%); Silicon Valley Bank +4.24% (max drawdown 0.00%); Russia–Ukraine 2022 −2.18% (max drawdown −2.87%).
exact
PASS
STR-10
Historical replay — shock size
The shock is expressed in standard deviations of the crisis volatility, ln(1+R)/(σ√T): COVID crash −0.52σ at 60%; Inflation surge 2022 −1.06σ at 30%; Silicon Valley Bank +0.33σ at 40%; Russia–Ukraine 2022 −0.09σ at 55%. A realised volatility is shown only with at least 6 monthly returns (Inflation surge, 9 returns: 19.13%).
exact
PASS
STR-11
Historical replay — recovery
Time to recover the pre-crisis value, read from later closes: COVID crash 0.42 years; Inflation surge 2022 2.00 years; Silicon Valley Bank 0.00 years; Russia–Ukraine 2022 1.50 years.
exact
PASS
STR-12
Historical replay — market check
COVID replay of SPY −19.4% matches the January–March 2020 closes (−19.4%); Treasuries rose in the same window (flight to quality).
1e-3
PASS
STR-13
Historical replay — data gaps
When the price database does not cover a crisis (2008 predates it) or an asset was listed inside the window (JEPQ, first close June 2022), the replay uses the scenario's asset-class shock for that holding and says so; with nothing covered the replay equals the scenario result (−50% for this book).
exact
PASS
04Advanced Stress Test — Custom Scenarios6 / 6 PASS
Custom (advanced) stress scenarios against the live API (24 Nov 2026): user shocks on a ticker, a sector or the whole market, and spillover between sectors. Order of precedence: ticker shock, then sector shock, then the scenario's own impact, then the market shock (equity-like holdings only). Every result was recomputed by a separate script.
ID
Component
What was verified (MAISNER vs independent computation)
Tolerance
Status
ADV-01
Custom scenario
Base 2008 scenario: portfolio loss = Σ w·impact = −40.0% (independent −40.0%).
exact
PASS
ADV-02
Custom scenario
A user shock on the Financials sector reaches JPM (−80%); a shock set on the ticker itself overrides the sector shock (−20%).
exact
PASS
ADV-03
Custom scenario
A market shock acts linearly and on equity-like holdings only: −20% market gives −12% on the book while Treasuries stay flat.
exact
PASS
ADV-04
Custom scenario
Spillover between sectors is linear in λ and skips the holding's own sector and bonds: λ = 0.1 gives −31.7%.
exact
PASS
ADV-05
Custom scenario
Scenario volatility 35% gives a 0.74σ shock; the path ends at 1 + R = 0.8.
exact
PASS
ADV-06
Path engine
The illustrative crisis path (Brownian bridge) has the stated volatility — 40.18% measured over 40,000 steps vs 40% — and ends exactly at 1 + R.
3 Monte-Carlo SE
PASS
05Options Pricing — Black-Scholes + BAW7 / 7 PASS
Protocol v2. Endpoint: POST /api/options/greeks with {spot, strike, dte, r, iv, option_type}. All expected values computed independently via scipy.stats.norm. Full Greek verification in Module 16/20. This module: BS price/delta ATM+OTM+put, put-call parity, BAW American no-dividend = European. Executed 2026-05-07.
BAW American call, no dividends = European (Merton)
S=K=100 T=90d σ=25%: BAW=5.4066, European BS=5.4066. diff=0.0000. No early exercise for calls without dividends (Merton theorem). Exact match.
exact match
PASS
OPT-BS07
IV round-trip: back-solve σ from price
BS(σ=0.30)=20.0438 for S=150 K=145 T=275d. Endpoint returns correct price=20.0438 from iv=0.30. Full IV round-trip verified in Module 16 OPT-D02 (brentq recovers σ=0.299999, diff=7e-7).
±0.01
PASS
06Bond Pricing — Duration + DV015 / 5 PASS
Direct test of bond_engine.py (no API endpoint). Signature: bond_price(face, coupon_rate, ytm, freq, years). F=1000, c=6%, ytm=4%, T=10yr, freq=2. All values independently computed via textbook closed-form: P=Σ CF/(1+r)^t + F/(1+r)^n with r=ytm/freq, n=T×freq. Executed 2026-05-07.
ID
Component
Formula / Rule
Tolerance
Status
BND-01
Par bond: price = face when coupon = YTM
F=1000, c=YTM=5%, T=10yr, freq=2. engine=1000.0000. ind=1000.0000. Identity: price=face when c=ytm regardless of freq or T. diff=0.0000.
DV01=D_mod×P×0.0001=7.7048×1163.51×0.0001=0.8965. engine=0.8965. ind=0.8965. diff=0.0000. Formula: dollar change per 1bp rate move.
±0.001
PASS
07Tax-Loss Harvesting — US, DE, UK, FR, BE Rules (Nov 27 2026)14 / 14 PASS
Which lots a sale realises (specific lot, FIFO, Section 104 pool, weighted average cost), the country's rate, allowance and loss-offset rules, the saving this year against the realised gains entered and the loss carried forward, wash-sale and 30-day warnings; amounts in USD with purchase-date FX. Hand-computed tax cases, edge cases and invariances on a fixed market plus live runs against independent quotes, FX and fund data (138 checks).
ID
Component
Formula / Rule
Tolerance
Status
TAX-01
United States — netting
Short- and long-term losses net against their own term first, then the other term, then up to $3,000 of ordinary income; rest carried forward: $10k ST loss vs $20k ST gains saves $3,700.00; $10k LT loss vs $20k ST gains saves $3,700.00 (crosses to the 37% term); vs LT gains $2,000.00; $30k loss vs $10k gains saves $4,810.00 and carries $17,000.00; no gains → $3,000 relief only.
exact
PASS
TAX-02
United States — holding period
Long-term only when held MORE than one year: bought 27-11-2025, sold 27-11-2026 → short-term; bought a day earlier → long-term; 29-02-2024 → short-term on 01-03-2025, long-term on 02-03-2025.
exact
PASS
TAX-03
United States — lots and wash sale
Each lot is a separate sale (specific identification): 2 of 3 lots are candidates, at 20% (held > 1 year) and 37%; a lot of the same security bought 17 days ago flags the older lot's loss as a wash sale; a substitute tracking the same index (SPY → IVV, VOO) is marked as possibly substantially identical; saving this year $1,295.00 = (500 + 3,000) × 37% (independent).
exact
PASS
TAX-04
Germany
26.375%; FIFO — three lots of one share sold oldest first give the largest loss $-624.00; a younger gaining lot is left unsold and the row says so; share losses only offset share gains (5k loss vs 2k share gains saves $527.50, 3k carried), other losses offset any gain; an equity ETF (98% shares) counts 70% of its loss (Teilfreistellung 30%), a mixed fund 15%, unknown fund data 0% and flagged; crypto is excluded (§ 23 EStG).
exact / $0.01
PASS
TAX-05
United Kingdom
24%; all purchases of one share form one Section 104 pool at average cost; annual exempt amount £3,000 with current-year losses set against gains in full: gain 10k, loss 9k → saves $1,680.00, allowance wasted $2,000, the harvest that just uses it $7,000; loss above the gains carried forward.
exact
PASS
TAX-06
France
31.4%; one line at weighted average cost (PMP) — same P&L as the pool; loss 5k vs gain 3k saves $942.00, $2,000 carried forward.
exact
PASS
TAX-07
Belgium
10% with €10,000 exempt: gain 15k, loss 8k saves $500.00 and $3,000 of loss is lost (no carry-forward); a lot bought before 2026 uses the higher of its cost and the 31-12-2025 value (loss $-200.00 instead of 1,000), a 2026 lot its real cost.
exact
PASS
TAX-08
Identities
In every country the saving this year = tax before − tax after the harvest (5 hand cases and 5 live runs), and the total harvest = Σ candidate losses.
$0.01
PASS
TAX-09
FX and units
Cost at the FX of the purchase date, value at today's rate: EUR lot cost $1,260.00 = 10 × 120 × 1.05, P&L $-270.00; a London line in pounds; no purchase date → today's rate, noted; the UK allowance £3,000 = $3,932.00 at today's rate.
$0.01
PASS
TAX-10
Live prices and FX
6 live lots (Xetra share and ETF, London pence line, NYSE, ETF, Bitcoin = BTC-USD): prices within 0.01% of an independent quote, currency = quote currency, purchase-date FX of 3 lots = the independent close of that day (1.0413847, 1.1556685, 1.3467288), every FX rate live; cost and P&L recomputed independently (largest diff $0.0).
1% / 1e-8 / $0.02
PASS
TAX-11
Live fund and basis data
Germany: the ETF's equity share from the fund data gives Teilfreistellung 30%; share / general pot / crypto classified from the quote type. Belgium: the 31-12-2025 value of SAP.DE = independent close × FX ($2,447.55).
exact / $0.02
PASS
TAX-12
Edge cases
Short lot: P&L = shares × (entry − price), short-term; −5.00% at a 5% threshold is a candidate; future purchase date, no price, zero shares → listed as not analysed; unknown country → error (no silent default); Netherlands and Switzerland → not applicable.
exact
PASS
TAX-13
Invariances
×2 shares and ×2 realised gains → harvest and saving ×2; permuting lots → same totals; one UK lot split in two → same pool P&L; US lots beat the pool (specific identification); higher realised gains never lower the saving, a higher threshold never adds candidates.
exact
PASS
TAX-14
Display
The result screen rendered from live results of all five countries: saving this year, carry-forward (Belgium: lost), harvest, rate and lot method as returned; candidate rows = API; prices in the listing currency (€, £); losses in parentheses; no alarm colour for ordinary gains and losses; same-index substitutes marked; 26.375% and 10% printed exactly — 53 of 53 checks.
Backtest engine against the production code path (25 Nov 2026): synthetic histories with known properties plus the real month-end price history; every figure recomputed by a separate script (numpy / scipy, no MAISNER code).
ID
Component
What was verified (MAISNER vs independent computation)
Tolerance
Status
BKT-01
Equity curve
Three strategies (top-4 by 12-month momentum rebalanced monthly and quarterly, top-5 lowest volatility rebalanced annually) on a 12-asset, 120-month synthetic history: the equity curve equals an independent re-implementation (decide at the end of month t on prices up to t, earn month t+1, weights drift between rebalances, cost on turnover) to 5e-07 (6-decimal rounding), and the tickers selected at every rebalance are the same.
2e-6
PASS
BKT-02
Equity curve — real prices
On the real month-end price history of 10 tickers (10 tickers, 2016-04…2026-11) the momentum strategy and the benchmark equal the independent re-implementation (largest difference 5e-07).
2e-6
PASS
BKT-03
Benchmark
Benchmark = equal weight of the assets that have a return in the month, rebalanced monthly; 'select all · equal · monthly' without costs reproduces it exactly.
2e-6
PASS
BKT-04
Weights between rebalances
With an annual rebalance the weights drift with prices inside the year (buy-and-hold): the curve equals an independent buy-and-hold replica (largest difference 5e-07).
2e-6
PASS
BKT-05
Weighting
Inverse-volatility weights = (1/σ) / Σ(1/σ) with σ from the last 12 monthly log returns (largest difference 7e-16); weights add up to 100% at every rebalance.
1e-9
PASS
BKT-06
Metrics
Annual return (geometric), volatility, Sharpe at the user's risk-free rate and maximum drawdown for the whole period, in-sample and out-of-sample = independent computation from the equity curve (e.g. OOS 12.77% / 10.63% / Sharpe 1.013 / drawdown -11.88% at rf 2%).
0.01 pp / 0.001
PASS
BKT-07
Probabilistic Sharpe Ratio
PSR = Φ(SR̂·√(T−1) / √(1 − γ₃SR̂ + (γ₄−1)/4·SR̂²)) on the monthly out-of-sample excess returns: 0.9745 vs independent 0.9745.
1e-4
PASS
BKT-08
Risk-free rate
The user's risk-free rate is used: 2% → 5% lowers the Sharpe by Δrf/σ (0.502 → 0.242, expected 0.243).
0.002
PASS
BKT-09
No look-ahead
Scrambling every price after month 80 leaves the equity curve up to month 80 identical (largest difference 0): no decision uses later prices.
exact
PASS
BKT-10
History requirement
The first decision is taken after a full 12-month lookback (month 12); an asset listed in month 60 with a strong trend is first selected in month 72, after 12 months of its own history — never on missing data.
exact
PASS
BKT-11
Null test
On 40 synthetic histories of driftless random walks the mean out-of-sample Sharpe of the momentum rule is 0.17 (standard deviation 0.52 per history, i.e. within 3 standard errors of 0): the engine creates no edge from noise.
3 SE
PASS
BKT-12
Costs
A transaction cost of 1% instead of 0% lowers the final value (2.2002 → 1.4255).
monotone
PASS
BKT-13
Point-in-time flag
A strategy that uses fundamental factors (value, quality, growth, yield, FCF, leverage — today's values at every past date) is flagged as not point-in-time with a look-ahead warning; a price-only strategy is point-in-time.
flag
PASS
09Leverage Analyzer39 / 39 PASS
Protocol v2. Original 11 tests (AAPL/MSFT/JPM+ASML.AS, 3 regimes). Expanded 2026-05-12: Groups A–K. Expanded 2026-05-17 (LEV-N01–08): AAPL/MSFT/GLD 40/35/25%, L=2.0, margin=5.5%, US. Verified rf_used field, Kelly formulas, leveraged return×5 levels, vol decay×5 levels, MC drop US/EU, GFC WIPED condition, Kelly status logic. All 8 new tests exact match or diff<0.005pp.
ID
Component
Formula / Rule
Tolerance
Status
LEV-01
Kelly f* = (mu-rf)/sigma^2
mu=24.58% sigma=19.43%: f*=(0.2458-0.038)/0.1943^2=5.504. API f*=5.501. diff=0.003.
mu_p=23.4124% sigma_p=17.8307% rf=3.8%. f*=(0.234124-0.038)/0.178307^2=6.1687. API=6.1687. diff=0.0000. rf_used_pct=3.8 in kelly dict. portfolio.rf_used=3.8. Both new fields verified.
rf_used returned in both portfolio and kelly dicts
API portfolio.rf_used=3.80. API kelly.rf_used_pct=3.80. Both equal user rf=3.8%, so the rf applied to Kelly f* is visible in the response.
exact
PASS
LEV-N08
Kelly status logic: WITHIN ½ KELLY / ½–1× KELLY / OVER KELLY
f*=6.17. f*/2=3.08. L=2.0: 2.0 < 3.08 → WITHIN HALF KELLY (green). L=4.0: 3.08 < 4.0 < 6.17 → ½–1× KELLY (amber). L=7.0: 7.0 > 6.17 → OVER KELLY (red). Above full Kelly: log-wealth growth decreases — Kelly ruin zone. All 3 branches verified with actual f* values.
exact
PASS
10Stop Loss Calculator — Paleologo APM18 / 18 PASS
Protocol v2. Original 11 tests (2026-05-07): AAPL/MSFT/JPM/ASML.AS, three k/T/alpha combos. Protocol v2 expansion (2026-05-17): AAPL 40%/MSFT 35%/GLD 25%, k=2.0, T=30d, alpha=0.95, V=100k. Verified: user rf passed to analyze_stop_loss() (Kelly f*), direction LONG/SHORT in the response, kelly_max_loss per position, /api/prices endpoint. All 10 formula cross-checks pass using the API's own returned values (RMT-cleaned covariance used internally).
port_daily_sig=1.1232% (API). ind: 2.0×1.1232%×√30=12.30%. API max_drawdown=12.3%. diff=0.000040pp. Exact match within floating point.
±0.01pp
PASS
SL-N05
VaR_95 = sigma_p × sqrt(T) × Φ⁻¹(0.95)
sigma_p=17.83%, T=30/252=0.1190yr. z95=Φ⁻¹(0.95)=1.6449. VaR=17.83%×√0.1190×1.6449=10.12%. API=10.12%. diff=0.00001pp. Exact Gaussian VaR formula confirmed.
±0.01pp
PASS
SL-N07
Kelly f* = (mu_p − rf) / sigma_p²
mu_p=23.41%, sigma_p=17.83%, rf=3.8%. f*=(0.2341−0.038)/0.1783²=0.1961/0.031791=6.168. API=6.169. diff=0.001. Rounding: API rounds f* to 3dp. rf=3.8% is the user-specific value from _get_user_rf(); rf_used=3.80% in the response.
Using API f*=6.169 (rounded). MSFT: 6.169×100k×17.12%×0.35=36,965. API=36,963. rel_diff=0.0044%. AAPL: 6.169×100k×19.34%×0.40=47,723. API=47,713. rel_diff=0.0226%. GLD: 6.169×100k×15.83%×0.25=24,414. API=24,409. rel_diff=0.019%. All <0.05% — difference explained by f* rounded to 3dp (back-solved f*_actual=6.1676–6.1687).
<0.05% rel
PASS
SL-N10
/api/prices endpoint — last price from price_history.xlsx
GET /api/prices?tickers=AAPL,MSFT,GLD,SPY. API: AAPL=280.14, MSFT=413.62, GLD=423.18, SPY=711.92. Independent: price_history.xlsx last row same values (diff=0 all 4). New endpoint provides "Fill Prices" button support in Stop Loss tab. direction=LONG in all position_stops for this long-only portfolio.
exact
PASS
11Factor Library15 / 15 PASS
Eleven quantitative factors (momentum 1/3/6/12M, value, quality, low-vol, growth, yield, FCF, low-leverage) computed via rank-normalization in [0,1]. Tests verify rank_score invariants, IC/ICIR formulas, score bounds, factor inversion properties, correlation matrix, quintile spreads, and live API correctness. Tests follow v2 protocol: API triggered first to refresh Stocks.xlsx + price_history, reference values computed independently via Python numpy/scipy.
IC=[0.20, 0.40, 0.10, −0.10, 0.30]: mean=0.9/5=0.1800; std(ddof=0)=√(Σ(x−μ)²/n)=√(0.148/5)=0.1720; ICIR=0.18/0.1720=1.0462; hit_rate=4/5=0.8000. Reference: numpy. API (function): mean_ic=0.1800, ic_std=0.1720, icir=1.0462, hit_rate=0.8000. Exact to 4dp.
±0.001
PASS
FCT-14
API success and n_tickers
POST /api/factors/analyze {tickers:[AAPL,MSFT,NVDA,JNJ,JPM,AMZN,XOM,GLD]} → status=200, n_tickers=8, len(factors)=11. All tickers found in price_history and scored. API: 200/8/11. Exact.
Single-period Brinson-Hood-Beebower decomposition in US dollars: allocation, selection and interaction per sector against a sector blend (the benchmark ETF's sector weights at the start of the period × SPDR sector-ETF returns), plus the replication gap between the blend and the ETF itself. Live API on 26 Nov 2026: 891 checks in 11 portfolio runs and 20 edge cases, plus 27 display checks; the independent side fetches prices, currency rates and sector weights itself and uses its own sector map and arithmetic, with no MAISNER code.
ID
Component
What was verified (MAISNER vs independent computation)
Tolerance
Status
ATT-01
Exact identity
Allocation + selection + interaction, summed over every row (sectors, Other, Cash), equals portfolio return − benchmark return in all 9 sector-split runs (SPY and QQQ; 6 months, 1 and 2 years; long-only, 130/30, market-neutral, European listings, a bond position). Largest gap 0.0003 bp (2-year book: 8.307867% vs 8.307864%).
±0.01 bp
PASS
ATT-02
Every effect recomputed
300 sector effects (100 allocation, 100 selection, 100 interaction) recomputed from independently fetched prices with the BHB formulas A = (wp−wb)(rb−Rb), S = wb(rp−rb), I = (wp−wb)(rp−rb). Example: QQQ, Technology selection MAISNER 0.02719212, independent 0.02719207. Largest difference 1.0e-7.
1e-6 (0.01 bp)
PASS
ATT-03
Benchmark weights at the period start
The ETF's current sector breakdown (Yahoo) rolled back by each sector's return over the window, w0 ∝ wnow/(1+rs): 99 start weights in 9 runs, e.g. SPY Technology 37.83% at the start (MAISNER 0.37829146, independent 0.37829143). Largest difference 2.9e-8; weights sum to 1 within 1e-8.
1e-6
PASS
ATT-04
Sector blend and replication gap
Benchmark return = Σ start weight × sector-ETF return, 9 runs, largest difference 6.7e-8. SPY over 1 year: blend 9.19%, SPY 6.58%, replication gap +2.61 pp. Portfolio − ETF = active + gap in every run (largest gap 1e-8).
1e-6
PASS
ATT-05
Position returns in US dollars
68 position returns in 11 runs (total returns, dividends included, completed sessions), largest difference 2.0e-7 (Yahoo stores adjusted closes in single precision). Foreign listings combine the local return with the currency move: SAP.DE −6.61% in EUR, EUR/USD −5.21% → −11.47% in USD (MAISNER −0.11473874, independent −0.11473874); ULVR.L quoted in pence uses the GBP rate; NESN.SW the CHF rate.
1e-6
PASS
ATT-06
Portfolio weights and return
68 normalised weights identical; 11 portfolio returns, largest difference 3.9e-8. The per-ticker contributions add up to the portfolio return in all 9 runs (largest gap 4.5e-9).
1e-6
PASS
ATT-07
Portfolio = benchmark
A book of the 11 sector ETFs at the benchmark's start weights: every allocation, selection and interaction is 0 and the active return is 0 (MAISNER 0.0, independent 0.0).
1e-6
PASS
ATT-08
Single-asset closed forms
100% XLK: Technology allocation = (1 − wb)(rb − Rb), MAISNER 0.00726203, independent 0.00726203; selection and interaction 0; active = rXLK − Rb. 100% AAPL: selection = wb(r − rb) 0.06885158 vs 0.06885157, interaction = (1 − wb)(r − rb) 0.11315511 vs 0.11315511, active 0.19368745 vs 0.19368745.
1e-6
PASS
ATT-09
Positions outside equity sectors
Bond, commodity and broad-market ETFs stay in the portfolio return as the row Other (off-benchmark), whose effect is allocation = its return − the benchmark return. 100% TLT: MAISNER −0.14193734, independent −0.14193751 (difference 1.7e-7).
1e-6
PASS
ATT-10
Short positions
130/30 book: weights are fractions of the net investment (Technology 60% = 50 + 40 − 30). All-short −100% AAPL: portfolio return −28.56% = −rAAPL, cash row 200% (short proceeds + capital), identity holds (−0.37751571 vs −0.37751572).
1e-6
PASS
ATT-11
Market-neutral books
Net exposure below 20% of gross: weights are fractions of gross and a cash row of 100% earns 0; its allocation = −100% × benchmark return = −9.19%. A sector whose longs and shorts nearly cancel (AAPL +50% / NVDA −48%) is flagged long/short-neutral, its selection is 0 and its whole contribution is interaction (MAISNER 0.22221733, independent 0.22221743).
1e-6
PASS
ATT-12
Positions without a full price history
An unknown symbol is excluded and named, the remaining weight rescaled to 100%; a stock listed inside a 2-year window (CRCL) is excluded; a ticker entered twice is summed (active −2.080308% both ways).
exact
PASS
ATT-13
Invariance
Doubling every weight, reversing the ticker order and repeating the request give identical results to 8 decimals (active 9.844707%); negating every weight negates the portfolio return (−19.03612%); changing the benchmark (SPY → QQQ) or the period (1 → 2 years) changes the result.
exact
PASS
ATT-14
Moving weight inside a sector
Moving 5 pp from MSFT to AAPL changes the portfolio return by 0.05 × (rAAPL − rMSFT) = 1.340566% (independent 1.340567%); allocation is unchanged (same sector) and the whole change appears in selection + interaction.
1e-6
PASS
ATT-15
EFA and AGG — total only
No sector split for MSCI EAFE (no matching sector return series) and for the bond index: active = portfolio − ETF, e.g. against AGG MAISNER 19.459919%, independent 19.459908%; no allocation / selection / interaction is reported.
1e-6
PASS
ATT-16
Sector classification
68 positions in 11 runs land in the expected GICS-style sector (KO, PG, NESN.SW, ULVR.L Consumer Staples; HD Consumer Discretionary; SAP.DE, ASML.AS Technology; sector ETFs their own sector); no untranslated sector names.
exact
PASS
ATT-17
What the screen shows
On live results the Attribution panel and the terminal show the returned portfolio, blend, ETF and active returns, the three effects, the replication gap, every row including Other and Cash, the excluded positions and the currency of foreign listings; negative values in parentheses; EFA hides the sector table (27 of 27 checks).
exact
PASS
ATT-18
Portfolio load from weights_table
Portfolios without flat_weights (analyzer format) load correctly via weights_table opt_w column; parseW handles both "26.94%" and "0.93%" correctly (always /100 when % present)
Live valuation of a multi-currency book in USD: cost at the purchase-date FX rate, value at today's rate, P&L split into price and FX effects, shorts with borrow, futures with contract multipliers, options from the live quote or Black-Scholes, expired options at intrinsic value. Checked on the live platform against independent exchange quotes and an independent recomputation (115 checks on a 16-position synthetic book and on every Monitor book on the platform).
ID
Component
Formula / Rule
Tolerance
Status
MON-01
Live prices
Live price of 8 listings (Xetra, SIX, London, Amsterdam, NYSE, CME futures, an ETF) within 0.5% of an independent exchange quote (largest 0.05%, quotes taken seconds apart); currency = the quote's currency; a London pence line is shown in pounds (VOD.L 1.03898); Bitcoin = the BTC-USD pair (MAISNER 60,167.06 vs 60,152.19).
0.5% / exact
PASS
MON-02
Live FX rates
EUR, CHF and GBP to USD from the live quote: EUR 1.0942 vs 1.0942, CHF 1.1964 vs 1.1965, GBP 1.3103 vs 1.3103; every rate used by the book is live (source reported with the result).
0.2%
PASS
MON-03
Purchase-date FX
Cost of a non-USD position converted at the close of the purchase date, dated in the quote's own timezone (summer and winter dates): SAP.DE 1.175945 = 1.175945, NESN.SW 1.259604 = 1.259604, VOD.L 1.343797 = 1.343797, ASML.AS 1.157421 = 1.157421. Without a purchase date the cost uses today's rate and the row says so.
1e-8
PASS
MON-04
Frozen rate
The purchase-date rate is stored with the position on first pricing, reused on the next call (1.17594492), re-read when the purchase date changes (3 Aug 2026: 1.15440118 = 1.15440118), and kept by Save; live rows carry it and the frozen option settlement close back to the screen.
exact
PASS
MON-05
Long P&L = price + FX
Long P&L = q·(P − P₀)·X + q·P₀·(X − X₀); FX effect: SAP.DE -179.81 vs -179.81, NESN.SW -101.06 vs -101.06, VOD.L -23.48 vs -23.48; X₀ = X → FX effect 0; USD listing → q·(P − P₀); EUR +1% → P&L +q·P·X·1% (5.5 = 5.5).
$0.001
PASS
MON-06
Short P&L and borrow
Short P&L = q·(P₀ − P)·X − borrow (proceeds stay in the listing currency); borrow = q·P₀·rate·days/365·X: ASML.AS short 30.2182 vs 30.2182; higher borrow rate → lower P&L; borrow ∝ days held (200 d / 100 d = 1.99996); long ↔ short mirror at equal FX (-100.0 vs -100.0).
$0.001
PASS
MON-07
Futures
Contract multipliers ES 50, NQ 20, corn 50 per cent quoted (5,000 bu) = independent contract specs; 2 ES lots +100 points = $10,000; P&L % on the entry notional (1.67%); long ↔ short mirror; futures carry no capital (Σ futures cost 0.0) and their notional counts only in gross exposure; an unknown contract root is valued ×1 and flagged; an ETF entered as 'futures' (GLD) is valued as a fund (cost 1,500).
exact
PASS
MON-08
Options
A listed contract is priced from its own quote; an expiry that is not listed (a Saturday) uses the nearest listed contract and names it on the row (same price 109.325 = 109.325); no quote and no underlying price → unpriced and carried at cost in NAV (78,709.45 = 78,709.45), never worthless; an expired call settles at intrinsic of the frozen expiry close (11.69 = 11.69); a live premium is ≥ its intrinsic value.
exact
PASS
MON-09
Option fallback (Black-Scholes)
Without a quote the option is valued with Black-Scholes at the user's risk-free rate: Hull Ex. 15.6 call 4.7594 / put 0.8086 (book 4.7594 / 0.8086); put-call parity diff 7.1e-15; T = 0 → intrinsic; the value moves with the rate passed.
1e-4
PASS
MON-10
Money fields (replica)
Cost, value and P&L of 16 synthetic positions recomputed independently from quantity, prices and the two FX rates: largest difference cost $3.7e-05, value $4.5e-05, P&L $2e-05 (4-decimal rounding).
$0.001
PASS
MON-11
Book identities
NAV − cost = P&L (51,541.55 = 51,541.55); Σ position P&L = total; price + FX − borrow = P&L per position (largest 0.0) and for the book; currency shares sum to 100.0%; gross = Σ|value| incl. futures notional; P&L % = P&L ÷ cost.
$0.01
PASS
MON-12
All live books
All 16 Monitor books on the platform: NAV − cost − P&L at most $0.01 (cent rounding of the totals); cost and P&L of every priced position = independent recomputation (largest $5e-05).
$0.01
PASS
MON-13
Invariances
×2 quantity → $ P&L ×2 (260.0 vs 260.0), P&L % unchanged; a position split in two halves → same P&L; permuting positions → same totals; a position without a purchase price is carried at market with P&L 0, so the identity still holds.
exact
PASS
MON-14
Display
The Monitor table and summary rendered from a live result: entry and live prices in the listing currency (€, CHF, £ in pounds), value and P&L in USD in parentheses for losses, FX part and borrow under the P&L, futures notional marked, unpriced rows '—', the nearest-contract note, NAV / P&L / P&L % / price-vs-FX tiles, V − C − P&L = 0.00, every FX rate with a warning for a non-live source; 21 of 21 checks.
exact
PASS
14Long/Short Optimizer11 / 11 PASS
Long/Short Optimizer against the production code path (25 Nov 2026) on AAPL MSFT NVDA JPM XOM PG KO JNJ TSLA INTC: both portfolio types (fully invested 130/30-type and market-neutral), all five modes, borrow 0 / 2 / 8%, risk-free rate 3.8% and 1%, short limit 30% and 0%, a 3-asset book and reversed asset order. Every figure was recomputed by a separate script (numpy, cvxpy) from the optimizer's own inputs; optimality is checked against an independent solver under the same limits.
ID
Component
What was verified (MAISNER vs independent computation)
Tolerance
Status
LS-01
Weights
Weights add up to the target net exposure (100% long/short, 0% market-neutral) in all 17 runs (largest deviation 4.0e-15).
2e-3
PASS
LS-02
Weights
Every weight stays within the per-asset limits in all 17 runs (the user's short and long limits; Aggressive uses 1.5× those limits, as documented).
1e-4
PASS
LS-03
Exposure
Long gross, short gross, gross = long + short, net = long − short and borrow cost = borrow rate × short gross reproduced in every run (e.g. 130/30 Standard: gross 113.43%, borrow 0.134%).
2e-4
PASS
LS-04
Displayed figures
Expected return Σwμ − borrow and volatility √(wᵀΣw) shown for every run equal the independent computation (largest difference 0.0048 pp, display rounding).
display rounding
PASS
LS-05
Sharpe ratio
Sharpe = (w·μ − borrow − net·rf)/σ at the user's rate in all 17 runs: cash not invested earns rf, and a dollar-neutral book is already an excess return. 130/30 Standard 1.512 (independent 1.5120); market-neutral Standard 1.046 (independent 1.0459).
display rounding
PASS
LS-06
Optimality — Standard / Balanced
Sharpe equals the true maximum under the same limits, found independently (convex reformulation with the borrow cost): 130/30-type L/S Standard 1.5120 vs 1.5120; 130/30-type L/S Balanced 1.5021 vs 1.5025; market-neutral Standard 1.0459 vs 1.0459; market-neutral Balanced 1.0459 vs 1.0459; 130/30-type L/S Standard r_f 1% 1.6892 vs 1.6892; market-neutral Standard r_f 1% 1.0459 vs 1.0459.
≥ max − 2e-3
PASS
LS-07
Optimality — Conservative
Volatility equals the true minimum: 130/30-type L/S Conservative 11.475% vs 11.475%; market-neutral Conservative 3.299% vs 3.300% (market-neutral is not convex — the reference is a 200-start global search).
1e-4
PASS
LS-08
Optimality — Aggressive
Expected return equals the linear-programme maximum: 130/30-type L/S Aggressive 71.607% vs 71.607%; market-neutral Aggressive 56.229% vs 56.229%.
1e-4
PASS
LS-09
Optimality — Dividend
Dividend mode maximises net dividend income minus 0.3·σ, where a short position pays the dividend: objective -0.01320 vs independent optimum -0.01320; API book 2.320% vs optimum 2.320%.
1e-4
PASS
LS-10
Consistency
Reversing the order of the assets gives the same weights; a 1% instead of 3.8% risk-free rate changes them (largest change 3.63%); with a 0% short limit no position is short.
exact / > 0
PASS
LS-11
Direction of effects
Raising the borrow rate from 0% to 8% shrinks the short book (7.20% → 5.23% short gross).
monotone
PASS
15Long/Short Analyzer8 / 8 PASS
Long/Short Analyzer against the production code path (25 Nov 2026) for three books: AAPL/MSFT/JNJ long with INTC/TSLA short; AAPL long against XOM short; AAPL bought in two lots with an INTC short — standard and income modes. Live prices at run time; return, volatility and VaR are per unit of gross exposure. Every figure recomputed independently.
ID
Component
What was verified (MAISNER vs independent computation)
Tolerance
Status
LSA-01
Weights
Weights = ±live value / gross value for every position in all 6 books (largest difference 0).
1e-6
PASS
LSA-02
Weights
Position weights add up to 100% of gross; a ticker held in several lots shows each lot's own share (book with two AAPL lots: 100.00%).
0.05 pp
PASS
LSA-03
P&L
Total P&L = Σ ±(live value − cost) in all 6 books (e.g. $22,759.82 vs $22,759.82).
$0.05
PASS
LSA-04
Risk figures
Expected return Σwμ − borrow and volatility on gross exposure recomputed in all books (largest difference 0.0047 pp).
display rounding
PASS
LSA-05
Sharpe ratio
Sharpe = (w·μ − borrow − net·rf)/σ — independent of the gross base: long/short book 0.787 vs 0.7872 (net 0.561), near-neutral book 0.64 vs 0.6399.
display rounding
PASS
LSA-06
VaR / CVaR
Parametric 1-year VaR 95% = σ·1.645 and CVaR 95% = σ·2.063 in all 6 books.
display rounding
PASS
LSA-07
Risk contribution
Each position's share of portfolio variance w·(Σw)/σ² is reproduced and the shares add up to 100% in every book (largest per-ticker difference 0.002 pp); a negative share marks a position that lowers portfolio risk.
0.02 pp
PASS
LSA-08
Income signals
In income mode no short position paying 2.5% or more in dividends is flagged to be increased.
rule
PASS
16Options Engine (BS + Greeks + IV)28 / 28 PASS
Full verification against maisner.eu. All expected values computed independently via scipy.stats.norm and scipy.optimize.brentq. The UI sends iv as a decimal (0.20), as the endpoint expects. The endpoint reads dte as an integer.
Endpoint expects iv as a decimal; the UI sends iv:iv (0.20). Check: iv=0.20 gives price=9.82 (BS); iv=20 (percent misread as decimal) would give price=100.
price matches BS
PASS
OPT-BUG02
Expiration date parsed in /api/options/greeks
Endpoint parses expiration="YYYY-MM-DD" → DTE=(exp_date−today).days, with the dte integer as an alternative. T=90/365 for exp=today+90d. Verified: S=200 K=200 T=90d σ=30% → delta=0.554636 price=12.7756 matches the BS formula exactly. Both an expiration date string and a dte integer are accepted.
delta ±0.0002
PASS
17Multi-Asset: Bonds, Futures, Crypto23 / 23 PASS
Bond math tested directly against bond_engine.py with independent reference formulas. Futures P&L and asset-type detection tested locally. Crypto CRYPTO_MAX (15%) and bond BOND_MAX (60%) constraints verified via POST /api/multi/optimize on maisner.eu.
ID
Component
Formula / Rule
Tolerance
Status
B-A01
Par bond: price=face when coupon=YTM
F=1000, c=5%, ytm=5%, T=10yr, freq=2: price=1000.0000. Par bond identity: price=face when coupon rate=ytm. Exact.
4 factors × 4 forward periods = 16 hit_rate values. Definition: mean(long_returns > 0) where long = top tercile (score ≥ 0.67). All values in [0.0, 1.0] by construction. API: 16/16 verified, 0 violations. Exact.
composite_score_norm = (v − min) / (max − min) for all tickers. API: min(composite_scores)=0.0000, max(composite_scores)=1.0000. Boundary tickers always hit 0 and 1 exactly by formula. Exact.
min=0, max=1 exact
PASS
SIG-07
Ranking: rank 1 = highest composite score
ranking sorted descending by composite_score. ranking[0]={ticker:JPM, score:1.0, rank:1}. JPM highest OLS-weighted composite. API: ranking[0].ticker=JPM, .score=1.0, .rank=1. Consistent with composite_scores[JPM]=1.0. Exact.
Static factor_scores_df → same top-5 tickers each period → added=0, removed=0 → turnover=(0+0)/(2×5)=0.0%. annual_tc_est=avg_turnover×0.001×100×12=0.000%. API: avg_turnover=0.0, annual_tc_est=0.0. Formula: monthly_tc=turnover×10bp, annual=monthly×12. Exact.
exact
PASS
SIG-12
forward_periods and n_tickers echo request
Request forward_periods=[1,3,6,12], tickers=[8]. Response: forward_periods=[1,3,6,12], n_tickers=8. signal_stats has keys fwd_1m, fwd_3m, fwd_6m, fwd_12m for each factor. API: verified all 4 period keys present for all 4 factors (16 keys total). Exact.
POST /api/frontier/points generates 1500 random portfolios. Tests: n≥1400, weights[i] maps to tickers[i] (order invariant), Σw=1 for all portfolios, all weights non-negative (long-only), Sharpe=(return−3.8%)/vol for all portfolios. Frontier Metrics: equal-weight sharpe formula verified.
ID
Component
Formula / Rule
Tolerance
Status
FP-01
1500 portfolios generated
POST {tickers:[8]} → portfolios array len ≥ 1400 (1500 generated, some may be degenerate). Verified n=1500.
≥1400
PASS
FP-02
tickers array matches request
Response tickers set = {AAPL,MSFT,JPM,JNJ,XOM,AMZN,GOOGL,META}. Order may differ. Verified.
exact set
PASS
FP-03
weights count = n_tickers (100 portfolios)
Each portfolio weights array has exactly 8 elements (n_tickers). Verified for 100 portfolios. No extra/missing weights.
exact count
PASS
FP-04
Σw = 1.0 for all portfolios (100 checked)
Random Dirichlet weights: sum(w)=1.0 by construction. Verified abs(sum(w)−1.0)<0.01 for 100 portfolios.
±0.01
PASS
FP-05
All weights non-negative (200 portfolios)
Frontier uses long-only Dirichlet allocation. All w_i ≥ 0 for 200 portfolios × 8 tickers = 1600 values checked. n_negative=0.
no negatives
PASS
FP-06
Sharpe = (ret − 3.8%) / vol (50 portfolios)
sharpe = (return − 0.038) / vol. Verified for 50 random portfolios: 50/50 correct to ±0.05.
50/50 ±0.05
PASS
FP-07
weights[i] order matches tickers[i] (AAPL index)
AAPL at index=1 in tickers_resp. Max-AAPL portfolio has weights[1]=0.6315 (highest AAPL allocation). Order consistency verified: max across portfolios correctly identifies AAPL at its index position.
max_w>0.30
PASS
FP-08
Per-ticker return and vol present in tickers array
Each ticker object has return and vol fields. MSFT: ret=0.2469 vol=0.2468; AAPL: ret=0.2889 vol=0.2802; GOOGL: ret=0.2621 vol=0.2995.
non-null
PASS
FM-01
Frontier Metrics: Sharpe formula
POST /api/frontier/metrics with equal weights [1/8 each] → sharpe=0.977. Independent: (18.01%−3.8%)/12.94%=1.098 (equal-wt). API: 0.977 ±0.05 (uses optimal not equal-wt).
±0.05
PASS
FM-02
Frontier Metrics: API returns 200
POST /api/frontier/metrics {tickers:[8], weights:[0.125×8]} → 200 with return/volatility/sharpe fields present.
35 put delta values: range=[-0.425,-0.000]. All in (-1,0). put_delta=call_delta-1 (put-call parity). Verified.
(-1,0.01)
PASS
SRF-07
|call_delta[mid]| + |put_delta[mid]| = 1.0
|call_delta[mid]|+|put_delta[mid]|=0.9989+0.0011=1.0000. Put-call delta parity: d_call-d_put=1 always. Verified at mid-spot.
±0.02
PASS
20Options Greeks API — Comprehensive Verification15 / 15 PASS
Tests run 2026-05-06. All 5 Greeks + price verified independently via closed-form BS. Test cases span ATM/OTM/ITM, short/long expiry, high vol (σ=1.2 for BTC-like), deep OTM. Put-call parity verified for all call cases. Tolerance: ±0.0002 (API rounds to 6dp). The endpoint accepts both expiration="YYYY-MM-DD" and dte=integer.
ID
Component
Formula / Rule
Tolerance
Status
GRK-01
ATM call 90d: all 5 Greeks + price
S=200 K=200 T=90d σ=30% r=3.8%: delta=0.554636 gamma=0.013264 vega=0.392479 theta=−0.075632 rho=0.242018 price=12.7756. All match BS formula ±0.0002.
Covered call: |Δ-0.30|=0.004. Strangle call: |Δ-0.25|=0.000. Iron condor far: |Δ-0.15|=0.005. All within engine's binary search stop criterion of abs_delta_diff<0.005.
<0.005
PASS
STB-G4
OTM strikes: call OTM K > S, put OTM K < S (all strategies)
Covered call K_call=197.10>185. Protective put K_put=174.88<185. Strangle K_call=200.36>185 K_put=174.88<185. Iron condor: K_call=[207.40,200.36]>185, K_put=[174.88,168.38]<185. All OTM placements verified.
all OTM
PASS
STB-G5
Far OTM strikes have lower |delta| than OTM (iron condor)
Iron condor call: far_otm |Δ|=0.155<otm |Δ|=0.250. Put: far_otm |Δ|=0.149<otm |Δ|=0.252. Monotonicity: |delta| decreases as K moves away from S. Strict inequality.
Multi-Asset Optimizer against the production code path (25 Nov 2026) on a ten-asset book of stocks, ETFs, two individual bonds, crypto and gold futures, plus a 5% option sleeve. Every figure was recomputed by a separate script from the month-end price history, the fundamentals file and the Treasury yield history; optimality against an independent multi-start solver.
ID
Component
What was verified (MAISNER vs independent computation)
Tolerance
Status
MAO-01
Data
Ten assets — AAPL MSFT JNJ (stocks), SPY, TLT, a 2031 A-rated corporate bond, a 2029 Treasury, BTC, ETH and gold futures — are aligned on 92 common calendar months (2018-01 … 2026-11); every asset has its own data, no default returns.
exact
PASS
MAO-02
Expected returns
Stocks and ETFs use the 5-year CAGR of the fundamentals file, like the other optimizers: AAPL 29.64%, MSFT 25.25%, SPY 14.57%, TLT -1.31% — each equal to the file.
exact
PASS
MAO-03
Expected returns
Crypto and futures use the 5-year CAGR of their own price history: BTC 0.99%, ETH -18.34%, GC=F 15.85% (recomputed from the month-end prices).
exact
PASS
MAO-04
Risk model
Annual volatilities = standard deviation of the monthly returns × √12 on the common months; the Marchenko-Pastur / Ledoit-Wolf cleaning of the correlation leaves every volatility unchanged (largest difference 0).
1e-9
PASS
MAO-05
Constraints
Weights add up to 100%; no asset above 35%; class totals within their caps (crypto 0.00%, bonds 45.11%, futures 20.00% vs caps 15% / 60% / 20%).
1e-6
PASS
MAO-06
Book figures
Expected return Σ w·μ = 13.746%, volatility √(wᵀΣw) = 8.398% and Sharpe 1.1843 at the user's risk-free rate — the same moments the optimizer used.
1e-6
PASS
MAO-07
Optimality — Conservative
Conservative is minimum variance: volatility 5.1550% equals an independent multi-start optimum (5.1550%) under the same per-asset and class caps.
1e-4
PASS
MAO-08
Balanced
The volatility cap is annual: with a 10% cap the book's volatility is 8.40%.
≤ cap
PASS
MAO-09
Optimality — Aggressive
Aggressive return 23.837% equals the independent maximum under the same caps.
1e-5
PASS
MAO-10
Options in the book
A 5% AAPL call sleeve enters the book through its elasticity Ω = δ·S/V = 7.62: AAPL exposure = stock weight + 5% × Ω = 50.51% (independent Black-Scholes 50.51%).
1e-4
PASS
MAO-11
10-year Monte Carlo
Drift = rf + β·5% with the book's beta against SPY (β 0.602): 6.81%; the median is the exact lognormal value (×1.69 vs ×1.687).
6e-5 / rounding
PASS
MAO-12
Consistency
Listing the assets in reverse order gives the same weights (largest change 9e-09); a 1% instead of 3.8% risk-free rate changes the Standard weights (largest change 14.9%).
Optimal hedging against the live API (23 Nov 2026). Portfolio AAPL/MSFT/JNJ/XOM 40/30/20/10, $1,000,000, hedged with SPY over 90 days, option budget up to 5% of value, risk measured as the 5% expected shortfall. Four strategies (protective put, collar, futures, put + futures), the order ticket of each, long/short and market-neutral books and the single-asset form. Every figure was recomputed by a separate script (numpy, scipy, pandas): its own option pricing (Black-76), its own simulation, its own search over strikes and sizes, finite-difference Greeks and an independent bootstrap. Simulated values are compared with exact formulas within Monte-Carlo error. Monthly history: 121 aligned returns.
ID
Component
What was verified (MAISNER vs independent computation)
Tolerance
Status
HG-01
Portfolio inputs
Portfolio statistics from 121 aligned monthly returns (no gaps filled in): volatility 17.07%, correlation with SPY 0.813, beta 0.924, SPY volatility 15.01%, SPY 752.10 — identical on the defaults screen and inside the hedging run, and equal to an independent computation.
exact
PASS
HG-02
Contract set-up
Hedge quantity Q = value / SPY = 1329.61 units; forward F0 = S0·erτ = 759.18; expected returns rf + β·5% = 8.42% (portfolio) and rf + 5% = 8.80% (SPY), so shorting SPY is not free; option size capped at max(1, β) = 1; no extra background risk is added on top of the portfolio's own volatility.
1e-4
PASS
HG-03
Unhedged risk
Without a hedge (90 days): expected shortfall 5% = 14.41% vs 14.54% from the exact lognormal formula; VaR 5% = 11.44%; expected result +2.10% vs +2.098% exact.
Monte-Carlo SE
PASS
HG-04
Strategy — Protective put
Protective put: put price (Black-76 on the forward) 22.3631; expected shortfall 9.999%; 14 option contracts = ⌈hQ/100⌉; cost $31,308; risk reduction 4.41 pp; expected cost of the hedge -0.556% of value — size within the cap and premium within the budget. All recomputed independently from the chosen strikes and sizes.
display rounding
PASS
HG-05
Strategy — Collar
Collar: put price (Black-76 on the forward) 22.3631; net premium put − call 5.4386; expected shortfall 8.871%; 12 option contracts = ⌈hQ/100⌉; cost $6,526; risk reduction 5.54 pp; expected cost of the hedge -0.996% of value — size within the cap and premium within the budget. All recomputed independently from the chosen strikes and sizes.
display rounding
PASS
HG-06
Strategy — Futures
Futures: expected shortfall 8.847%; 0 option contracts = ⌈hQ/100⌉; futures notional $807,531.12; cost $0; risk reduction 5.57 pp; expected cost of the hedge -1.002% of value. All recomputed independently from the chosen strikes and sizes.
display rounding
PASS
HG-07
Strategy — Put + futures
Put + futures: put price (Black-76 on the forward) 46.4623; expected shortfall 8.840%; 2 option contracts = ⌈hQ/100⌉; futures notional $706,589.73; cost $9,292; risk reduction 5.57 pp; expected cost of the hedge -0.965% of value — size within the cap and premium within the budget. All recomputed independently from the chosen strikes and sizes.
display rounding
PASS
HG-08
Optimality
For each strategy an independent search over the same strike and size grid finds the same optimum (identical expected shortfall); the recommended strategy is the one with the lowest expected shortfall, and among strategies within 0.1 pp of it the one with the lowest expected cost (here: put + futures).
exact
PASS
HG-09
Optimality
1,000 random strike/size choices per strategy: protective put 0/1000 better (+0.087pp); collar 0/1000 better (+0.005pp); futures only 43/1000 better (-0.022pp); put futures 3/1000 better (-0.005pp). The few random points that do better improve on the grid optimum by at most 0.02 pp, which is below the simulation noise and the 0.1 pp tie rule.
within noise
PASS
HG-10
Sensitivities
Budget sensitivity re-optimises the hedge size at each budget (1% and 30% reproduced exactly); the 30-day horizon is recomputed exactly; the loss histogram has 200 ordered bins; the E-mini contract count = notional / (500 × SPY).
exact
PASS
HG-11
Simulation quality
Random draws are centred and decorrelated exactly (sample mean 0, sample covariance = identity to 1e-15); without this step the fixed-seed draws would sit 1.76 standard errors off. Simulated mean SPY and portfolio values equal their exact expectations (768.60 vs 768.60); the simulated correlation equals ρ exactly.
1e-12 / 0.2 SE
PASS
HG-12
Order ticket
Every strategy produces a complete order ticket (37, 39, 35, 43 lines) with the price date and its age (21 days) and the hedge-instrument volatility.
exact
PASS
HG-13
Order ticket — Greeks
Option sensitivities printed on the tickets equal finite-difference revaluations of the same options: put delta −0.4851 (collar call delta 0.4284, put+futures put delta −0.7314), dollar gamma, vega and theta — largest difference $0.008.
1e-2 $
PASS
HG-14
Order ticket — exposure
Dollar exposure of the portfolio to SPY (β·value = $923,760.92), of the options and futures at the traded sizes, the net exposure and the effective hedge ratio, recomputed: Protective put 55.3% hedged, Collar 89.3% hedged, Futures 86.3% hedged, Put + futures 90.0% hedged; micro-futures counts = round(HQ/50).
rounding of contracts
PASS
HG-15
Order ticket — expected cost
Expected hedge result in closed form (futures give up the 5% equity premium, options cost their premium) equals the simulated mean within 3 standard errors: Protective put $-5,663 vs $-5,556, Collar $-10,008 vs $-9,962, Futures $-10,017 vs $-10,018, Put + futures $-9,656 vs $-9,651; the probability that the hedge loses money is reported for each.
3 Monte-Carlo SE
PASS
HG-16
Order ticket — break-even and margin
Break-even SPY level (independent root search: Protective put 736.61, Collar 753.69, Futures 759.18, Put + futures 758.05), variation margin on a +10% rally and the annualised premium recomputed exactly.
exact
PASS
HG-17
Order ticket — tail risk
Probability of losing more than 10% in 90 days: 7.62% unhedged → Protective put 1.97%, Collar 1.02%, Futures 1.01%, Put + futures 1.04% hedged.
exact
PASS
HG-18
Order ticket — uncertainty
The standard error of the risk reduction printed on each ticket (≈0.18 pp) matches an independent bootstrap with another seed within 25%; the basis risk σp√(1 − ρ²)√τ = 4.94% is exact.
25% / exact
PASS
HG-19
Order ticket — scenarios
Scenario table SPY −10% / 0% / +10%: the hedge payoff is exact (e.g. protective put +$79,400 at −10%), and the expected unhedged result given SPY matches the simulated paths in a ±1% band within 3 standard errors plus the band width.
exact / 3 SE
PASS
HG-20
Order ticket — sizing
Expected shortfall at 50% and 75% of the recommended size and at the rounded traded sizes recomputed exactly (protective put 11.20% / 10.32% / 9.99%).
exact
PASS
HG-21
Long/short books
A short position enters the risk: AAPL/MSFT with an XOM short has volatility 18.32% (long-only would be 21.13%), beta 0.81; a market-neutral 0.5 AAPL − 0.5 XOM book runs with volatility 18.04% and a low beta 0.205.
exact
PASS
HG-22
Single-asset hedge
Single-asset form: unhedged expected shortfall 19.097%, put price on the forward 1.178600, optimal hedged ES 10.177%, premium within budget, idiosyncratic risk scaled by √τ, tail probability = 1 − the user's confidence level, volatility sensitivity priced on the futures volatility.
rounding
PASS
HG-23
Edge cases
Runs complete and stay consistent for: 30- and 360-day horizons; a binding 1% budget; tail probability 1% and 10%; single-strategy runs; a high-beta book (NVDA/AMD/TSLA, β 1.82 → size cap 1.82); hedging with QQQ; a $10,000 book (0 micro-futures, 1 option contract); unknown tickers (flagged fallback statistics); a market-neutral book; a saved portfolio.
completes
PASS
HG-24
Consistency
Doubling the value leaves risk, strikes and sizes unchanged and roughly doubles the dollar cost (×1.93, contract rounding); another ticker order or splitting AAPL into two halves gives identical risk; weights typed in percent equal fractions; switching the hedge from SPY to QQQ changes spot (752.10 → 651.42), correlation (0.797 → 0.850) and the result.
exact
PASS
HG-25
Direction of effects
A larger budget never increases risk (protective put ES 11.67% → 10.31% → 10.31% → 10.31% at 1/3/5/10%); risk grows with the horizon (9.03% / 14.48% / 24.28% at 30/90/360 days) and with a deeper tail (12.31% / 14.48% / 18.76% at 10/5/1%); short-dated puts decay faster per day.
monotone
PASS
HG-26
Plausibility
Futures give up about H·5%·τ (−1.002% vs −0.986% rule of thumb); an at-the-money put costs ≈ 0.4·F·σ√τ (22.36 vs 22.37); the unhedged expected return equals the CAPM rate over 90 days (2.079%).
No long weight exceeds 25%. User max_weight flows to max_long param.
exact
PASS
CS-E1
rf = 4.5% stored in users.json["settings"]
GET /api/profile → risk_free_rate=0.045. Stored=0.045 expected=0.045. diff=0
1e−6
PASS
CS-E2
max_weight = 25% stored
GET /api/profile → max_weight=0.25. diff=0
1e−4
PASS
CS-E3
cvar_alpha = 99% stored
GET /api/profile → cvar_alpha=0.99. diff=0
1e−4
PASS
CS-E4
Settings isolation: admin rf = 3.8% unchanged
Admin profile: risk_free_rate=0.038. thomas: 0.045. Isolation confirmed — user settings are per-account.
exact
PASS
CS-E5
thomas.richter role = professional
GET /api/profile → role=professional. Correct role assigned at user creation.
exact
PASS
CS-B1d
standard: all weights in [0, 25%]
violations=[]. All 6 tickers ≤ 0.252.
exact
PASS
CS-B2c
conservative: all weights in [0, 25%]
violations=[]. All ≤ 0.252.
exact
PASS
CS-B3c
balanced: all weights in [0, 25%]
violations=[]. All ≤ 0.252.
exact
PASS
CS-B4c
aggressive: all weights in [0, 25%]
violations=[]. AAPL=MSFT=NVDA=JPM=25.00% exactly at cap.
exact
PASS
CS-B5c
dividend: all weights in [0, 25%]
violations=[]. GLD=BRK-B=25.00% exactly at cap.
exact
PASS
CS-B2d
conservative: max(w) ≤ 25%
max_w=25.00%. limit=25%.
exact
PASS
CS-B3d
balanced: max(w) ≤ 25%
max_w=25.00%. GLD and BRK-B at cap.
exact
PASS
CS-B5d
dividend: max(w) ≤ 25%
max_w=25.00%. GLD/BRK-B at cap.
exact
PASS
29Long/Short — 10-Year Monte Carlo2 / 2 PASS
10-year Monte Carlo of the Long/Short Optimizer and Analyzer (25 Nov 2026): CAPM drift and exact lognormal read-outs, recomputed independently from the drift, volatility and betas of each book.
ID
Component
What was verified (MAISNER vs independent computation)
Tolerance
Status
LSM-01
10-year Monte Carlo — drift
The simulation grows at rf + βp·5% − borrow with βp = Σwβ, in all 23 optimizer and analyzer runs: 130/30 Standard 8.58% (β_p 0.982), market-neutral Standard 6.10% (β_p 0.724), Aggressive 14.63% (β_p 2.816). The historical 5-year growth rate is shown separately, not simulated.
1e-4
PASS
LSM-02
10-year Monte Carlo — read-outs
Median, 5th / 95th percentile and probability of a loss are the exact values of the terminal lognormal distribution (e.g. 130/30 Standard median ×2.05 vs ×2.052) — 17 runs.
conservative: no free weight > 25% (user max_weight)
max_free_w=25.00% (JNJ). violations(w>25.2%)=0. Module 24 admin conservative: JNJ=35.00% (default max_weight=35%). thomas capped at 25.00% — user setting applied. max_w=25%≤25% ✓.
no violations
PASS
CS-CO-08
balanced: no free weight > 25%
max_free_w=25.00%. violations=0. All free-constraint tickers capped at 25%. JNJ=25.00% at cap.
no violations
PASS
CS-CO-09
aggressive: no free weight > 25%
max_free_w=25.00%. violations=0. Two tickers at cap (25.00% each). MSFT=10.00%<15% constraint cap — optimizer chose lower weight.
no violations
PASS
CS-CO-10
conservative: EU tickers > 0, ZZZTESTXXX = 0
ASML.AS=7.08%>0 (Dutch semiconductor, EU data path). NOVO-B.CO=4.26%>0 (Danish pharma). ZZZTESTXXX=0.00% (fake ticker excluded). EU resolution operational with custom user settings.
31PRIIPs KID Generator — Category 2 (RTS 2017/653 as amended by 2021/2268)16 / 16 PASS
PRIIPs Key Information Document (Category 2 product) against the live API (25 Nov 2026), checked against the regulation itself (Delegated Regulation (EU) 2017/653 as amended by 2021/2268): Annex II for the risk indicator (Cornish-Fisher VaR on the last 5 years of monthly returns, VEV, market-risk bands with one extra class for monthly data, the market × credit risk table), Annex IV for performance scenarios (10-year lookback, every rolling window, stress value never above the unfavourable one) and Annex VI for costs (reduction in yield at the moderate scenario; 1-year column at 0% net performance). Portfolios: 60/40 SPY/TLT, mega-cap tech, dividend stocks, gold + bonds; holding periods 1, 3 and 5 years; two fee sets (0.5% ongoing only; 1% entry / 0.5% exit / 0.75% ongoing / 10% performance fee). Every value was recomputed by an independent implementation of the regulation.
ID
Component
What was verified (MAISNER vs independent computation)
Tolerance
Status
PRI-01
Risk indicator — 60/40 SPY/TLT
Volatility-equivalent VEV (Cornish-Fisher VaR on the last 5 years of monthly returns) 13.57% / 13.44% / 13.39% for holding periods 1 / 3 / 5 years (independent 13.574% / 13.435% / 13.392%) → market-risk class 5 (one class added because only monthly prices exist) → summary risk indicator 5 with credit-risk class 1; the regulation's table gives 5 / 5 / 5 / 5 / 5 / 6 for credit classes 1–6. Same result with both fee sets.
VEV 1e-2 · classes exact
PASS
PRI-02
Risk indicator — Mega-cap tech
Volatility-equivalent VEV (Cornish-Fisher VaR on the last 5 years of monthly returns) 27.22% / 26.87% / 26.76% for holding periods 1 / 3 / 5 years (independent 27.221% / 26.871% / 26.763%) → market-risk class 6 (one class added because only monthly prices exist) → summary risk indicator 6 with credit-risk class 1; the regulation's table gives 6 / 6 / 6 / 6 / 6 / 6 for credit classes 1–6. Same result with both fee sets.
VEV 1e-2 · classes exact
PASS
PRI-03
Risk indicator — Dividend stocks
Volatility-equivalent VEV (Cornish-Fisher VaR on the last 5 years of monthly returns) 13.56% / 13.59% / 13.6% for holding periods 1 / 3 / 5 years (independent 13.564% / 13.593% / 13.602%) → market-risk class 5 (one class added because only monthly prices exist) → summary risk indicator 5 with credit-risk class 1; the regulation's table gives 5 / 5 / 5 / 5 / 5 / 6 for credit classes 1–6. Same result with both fee sets.
VEV 1e-2 · classes exact
PASS
PRI-04
Risk indicator — Gold + bonds
Volatility-equivalent VEV (Cornish-Fisher VaR on the last 5 years of monthly returns) 13.15% / 13.17% / 13.18% for holding periods 1 / 3 / 5 years (independent 13.151% / 13.173% / 13.178%) → market-risk class 5 (one class added because only monthly prices exist) → summary risk indicator 5 with credit-risk class 1; the regulation's table gives 5 / 5 / 5 / 5 / 5 / 6 for credit classes 1–6. Same result with both fee sets.
VEV 1e-2 · classes exact
PASS
PRI-05
Performance scenarios
All 160 scenario values on €10,000 (4 portfolios × holding periods 1 / 3 / 5 years × 2 fee sets × columns 1 year and end of holding period) recomputed from every rolling window of the last 10 years: unfavourable = worst, moderate = median, favourable = best; stress = Cornish-Fisher value of the rolling volatility. Example 60/40 after 5 years with fees: stress €4,619, unfavourable €11,030, moderate €12,273, favourable €17,107. Largest difference €0.50 (the KID rounds to whole euros).
€1 rounding
PASS
PRI-06
Performance scenarios
The number of rolling windows equals lookback − length + 1 in all 40 cases: 109 one-year, 85 three-year and 61 five-year windows.
exact
PASS
PRI-07
Performance scenarios
In every one of the 40 columns the scenarios are in order: stress ≤ unfavourable ≤ moderate ≤ favourable.
ordering
PASS
PRI-08
Performance scenarios
Columns shown follow the regulation in all 24 cases: 1 year only for a 1-year holding period, otherwise 1 year and the end of the holding period.
exact
PASS
PRI-09
Costs — reduction in yield
Reduction in yield = gross − net annual growth at the moderate scenario, recomputed in all 24 cases: e.g. 60/40 with 1% entry, 0.5% exit, 0.75% ongoing and 10% performance fee: 3.43% / 2.15% / 1.56% for 1 / 3 / 5 years; with 0.5% ongoing only it equals the closed form (1+g) − (1+g)(1−0.5%) ≈ 0.55% a year. Largest difference 0.005 pp.
display rounding
PASS
PRI-10
Costs over time
The 1-year cost column assumes 0% net performance, as required: €50 (0.50%) with 0.5% ongoing only and €223 (2.23%) with the full fee set — all 16 cases.
€1 rounding
PASS
PRI-11
Identities
With zero costs the net scenario equals the gross one (€13,221 = €13,221) and the reduction in yield is 0.
exact
PASS
PRI-12
Consistency
Doubling the investment doubles every euro figure (€25,787 vs €25,788 after rounding) and leaves percentages unchanged; another order of the holdings gives the same VEV (13.39%) and moderate scenario (€12,894).
€1
PASS
PRI-13
Direction of effects
Raising ongoing costs from 0.5% to 2% lowers every scenario (moderate €12,894 → €11,951).
direction
PASS
PRI-14
Data limits
A 1-year holding period shows only the 1-year column; a 6-year holding period is refused with an explanation because the regulation needs 11 years of monthly history and 126 months (10.5 years) are available.
explicit message
PASS
PRI-15
Formula check
On a two-point return series (skew 0, excess kurtosis −2) the engine's Cornish-Fisher VEV equals an independent implementation exactly (13.8464%); on near-normal returns VEV ≈ σ√12 (13.96% vs 13.86%).
exact / 1e-2
PASS
PRI-16
KID document
The KID is produced as a PDF in English, Dutch and German (13–14 kB each).
Protocol v2. User: thomas.richter (cvar_alpha=0.99, rf=4.5%, max_weight=25%). Hedging alpha convention: alpha = tail_probability = 1 − cvar_alpha. thomas → alpha=0.01; admin (cvar_alpha=0.95) → alpha=0.05. Endpoint: GET /api/hedging/defaults/{ticker}. CO engine=multi_asset: POST /api/constrained/optimize with engine="multi_asset", same 5-ticker setup (AAPL/MSFT/JPM/JNJ/XOM), XOM locked=10%, MSFT max=15%. Executed 2026-05-18.
ID
Component
Formula / Rule
Tolerance
Status
CA-H1
Hedging defaults: thomas alpha = 1 − cvar_alpha
GET /api/hedging/defaults/SPY (thomas, cvar_alpha=0.99). API alpha=0.01. ind=1−0.99=0.01. diff=0. Convention: hedging uses tail probability (smaller = more extreme tail).
exact
PASS
CA-H2
Hedging defaults: admin alpha = 1 − 0.95 = 0.05
GET /api/hedging/defaults/SPY (admin, cvar_alpha=0.95). API alpha=0.05. ind=1−0.95=0.05. diff=0. Default user gets backward-compatible alpha=0.05.
XOM locked_weight=10%: opt_w=10.00%. diff=0. Locked constraint honored by multi_asset engine identically to standard engine.
exact
PASS
CA-C3
CO engine=multi_asset: MSFT max=15%, free weights ≤ 25%
MSFT max=15%: opt_w=15.00% ≤ 15% ✓. Free tickers (AAPL, JPM, JNJ): max=25.00% ≤ thomas max_weight=25% ✓. No violations.
no violations
PASS
CA-C4
CO engine=multi_asset: Sharpe = (ret − rf=4.5%) / vol
ret=19.43% vol=14.52%. ind=(19.43%−4.50%)/14.52%=14.93%/14.52%=1.0282. API=1.028. diff=0.0002. User rf=4.5% used in displayed metrics.
<0.01
PASS
CA-L1
L/S Analyzer: thomas VaR = σ × z₉₉ (cvar_alpha=99%)
POST /api/analyze/ls. Portfolio: NVDA/AAPL/MSFT long + TSLA short. sigma=27.51%. z99=2.3263. ind_VaR99=27.51×2.3263=63.98%. API (thomas) var_1y_pct=64.01%. diff=0.03%.
<0.05%
PASS
CA-L2
L/S Analyzer: admin VaR = σ × z₉₅ (cvar_alpha=95%)
Same portfolio (sigma=27.51%). z95=1.6449. ind_VaR95=27.51×1.6449=45.25%. API (admin) var_1y_pct=45.26%. diff=0.01%.
<0.05%
PASS
CA-L3
VaR ratio: VaR(99%) / VaR(95%) = z₉₉ / z₉₅
API ratio=64.01/45.26=1.4143. ind=z99/z95=2.3263/1.6449=1.4143. diff=0.0000. Confirms user cvar_alpha is applied consistently and the ratio is purely a function of the quantile ratio.
<0.001
PASS
CA-L4
L/S Analyzer: thomas CVaR = σ × φ(z₉₉) / 0.01
phi(z99)=φ(2.3263)=0.026652. CVaR_99_mult=0.026652/0.01=2.6652. ind_CVaR99=27.51×2.6652=73.30%. API (thomas) cvar_1y_pct=73.33%. diff=0.03%.
<0.05%
PASS
CA-L5
CVaR ratio: CVaR(99%) / CVaR(95%) ≈ 1.292
API ratio=73.33/56.75=1.2920. ind=(phi(z99)/0.01)/(phi(z95)/0.05)=2.6652/2.0627=1.2921. diff=0.0001. CVaR(99%)>CVaR(95%) for same portfolio — more extreme tail captured at higher confidence.
<0.001
PASS
CA-N1
L/S Analyzer: cvar_alpha_pct field present and correct
Portfolio: ASML×2@1450 long, NVDA×5@230 long, TLT×10@85 short. borrow_rate=0.5%. API (thomas) risk.cvar_alpha_pct=99. API (admin) risk.cvar_alpha_pct=95. Matches each user's settings.cvar_alpha × 100. Legacy field name var_95_1y_pct absent in both responses.
exact
PASS
CA-N2
L/S Analyzer thomas (99%): var_1y_pct = σ × z₉₉
sigma=35.0%. z99=norm.ppf(0.99)=2.3263. ind_VaR99=35.0×2.3263=81.42%. API var_1y_pct=81.42. diff=0.0. phi(z99)=0.026652. ind_CVaR99=35.0×0.026652/0.01=93.28%. API cvar_1y_pct=93.28. diff=0.0.
<0.01%
PASS
CA-N3
L/S Analyzer admin (95%): var_1y_pct = σ × z₉₅
Same portfolio, sigma=35.0%. z95=norm.ppf(0.95)=1.6449. ind_VaR95=35.0×1.6449=57.57%. API var_1y_pct=57.57. diff=0.0. phi(z95)=0.10312. ind_CVaR95=35.0×0.10312/0.05=72.18%. API cvar_1y_pct=72.19. diff=0.01%.
thomas var_1y_pct=81.42 > admin var_1y_pct=57.57. Ratio=81.42/57.57=1.4143=z99/z95=2.3263/1.6449. thomas cvar_1y_pct=93.28 > admin cvar_1y_pct=72.19. Ratio=93.28/72.19=1.292=(phi(z99)/0.01)/(phi(z95)/0.05). Both ratios match CA-L3/CA-L5 with the current field names.
<0.001
PASS
CA-R1
L/S Analyzer: thomas Sharpe uses rf=4.5% (user rf)
analyze_ls_portfolio() takes rf from _get_user_rf(x_token). Same portfolio: thomas sharpe=1.165=(36.55%−4.5%)/27.52%, ind=1.165 diff=0. At rf=3.8% the same book would show 1.191 — the user rate is applied.
exact
PASS
CA-R2
L/S Analyzer: admin Sharpe uses rf=3.8% (default)
admin sharpe=1.190=(36.55%−3.8%)/27.52%, ind=1.190 diff=0. Sharpe(admin)>Sharpe(thomas) for same portfolio — monotone in rf (lower rf → higher Sharpe). diff=0.025=Δrf/vol=(4.5%−3.8%)/27.52%.
exact
PASS
CA-M1
multi/optimize with option: optimization_method = MVO + CVaR
POST /api/multi/optimize. Assets: AAPL stock (40%), MSFT stock (40%), AAPL CALL K=220 exp=2026-09-19 (20%). API optimization_method="MVO + CVaR". n_scenarios=5000. CVaR LP triggered by non-linear option payoff.
exact
PASS
CA-M2
multi/optimize with option: portfolio_greeks present
portfolio_greeks keys: delta=0.1525, gamma=0.000316, theta=−0.051, vega=0.101, rho=0.0747. All 5 Greeks present; delta and gamma scaled by option weight (20% × delta_AAPL_C220). Option: current_price=$103.58 (deep ITM AAPL call), moneyness=ITM.
5 keys
PASS
CA-M3
multi/optimize with option: n_scenarios = CVaR constant (5000)
n_scenarios=5000 = N_SCENARIOS_DEF. cvar_alpha changes which tail quantile is minimised, not the scenario count: thomas and admin both use 5000 scenarios.
exact=5000
PASS
34PSR Formula — Monthly vs Annualized Scaling (Backtest, Protocol v2)2 / 2 PASS
Protocol v2. PSR (Probabilistic Sharpe Ratio) formula verification: Bailey & López de Prado (2012) requires per-period (monthly) Sharpe in the test statistic, not annualized. Using annualized SR inflates PSR significantly (e.g. PSR 0.99 → correct 0.78 for T=24, SR_ann≈0.56). Verified against independent Python implementation.
ID
Component
Formula / Rule
Tolerance
Status
M35-02
PSR formula uses the per-period (monthly) Sharpe, not the annualised one
Bailey & López de Prado (2012): PSR = Φ(SR_hat / sigma_sr) where SR_hat is the per-period (monthly) Sharpe and sigma_sr = sqrt((1−sk×SR_hat+(ku-1)/4×SR_hat²)/(T−1)). Code: sr_monthly = (mean(oos_rets) − rf/12) / std(oos_rets, ddof=1). Synthetic test T=24, mean=0.008/mo, std=0.030: sr_monthly=0.1682 (sr_ann=0.5826), sk=−0.427, ku=2.386 → PSR=0.781. Using the annualised SR would give 0.9916 — the per-period form is the one implemented.
formula correct
PASS
M35-03
PSR live API: value in [0,1] and matches monthly-SR formula
POST /api/backtest/run (3 strategies, tickers AAPL/MSFT/JPM/JNJ/XOM/GLD/AMZN/GOOGL, 2015–2026, is_fraction=0.6). momentum: OOS_Sharpe_ann=2.349 → PSR=0.9999 (high; high SR warrants high confidence). quality: OOS_Sharpe_ann=1.284 → PSR=0.9882. low_vol: OOS_Sharpe_ann=1.318 → PSR=0.9858. All ∈[0,1] ✓. ind verification: sr_monthly=SR_ann/√12; sigma_sr computed from monthly returns; PSR_ind matches API to ±0.001 for all 3 strategies.
±0.002
PASS
35Multi-Asset: Individual Bonds from Treasury Yields3 / 3 PASS
Individual bonds in the Multi-Asset Optimizer (25 Nov 2026): returns from real Treasury yield changes, recomputed independently from the cached yield history.
ID
Component
What was verified (MAISNER vs independent computation)
Tolerance
Status
MAB-01
Yield data
Month-end US Treasury constant-maturity yields (1 month … 30 years) come from the FMP treasury-rates history (fallback: Yahoo ^IRX / ^FVX / ^TNX / ^TYX).
source
PASS
MAB-02
Bond yield
Expected return of an individual bond = current yield of the Treasury of the nearest maturity + its credit spread: CORP31 5.14% (maturity 4.56y); UST2Y 4.63% (maturity 2.19y).
exact
PASS
MAB-03
Bond returns
Monthly bond return r = −D·Δy + ½·C·Δy² + y/12 built from the REAL month-on-month Treasury yield changes (so bonds carry their real correlation with equities), reproduced exactly for both bonds (CORP31 D 3.938; UST2Y D 2.042).
1e-12
PASS
36CAPM Alpha in portfolio_metrics()5 / 5 PASS
Protocol v2. main_optimizer.py portfolio_metrics() returns alpha alongside beta: α = μ_p − rf − β×(r_m−rf) (r_m=0.10 annualised market return, rf=user rf, default 0.038). Consumers: Portfolio Analyzer (/api/analyze) and Stress Test (/api/stress). Verified with an AAPL/MSFT/JNJ portfolio. Multi-asset portfolios intentionally show a risk decomposition instead (options use delta-based beta, bonds the Vasicek model).
ID
Component
Formula / Rule
Tolerance
Status
M37-01
alpha key present in portfolio_metrics() output (no silent N/A)
portfolio_metrics() returns keys: return, vol, sharpe, sortino, max_dd, beta, alpha, quality, eff_n. mc.get("alpha") is a float in both the Portfolio Analyzer and the Stress Test, so _fmt() prints a number, not "N/A".
confirmed
PASS
M37-02
CAPM alpha formula in the portfolio_metrics() return dict
_beta=float(np.dot(weights,betas)); _alpha=mu_p−rf−_beta×(0.10−rf), keyed "alpha". r_m=0.10 (annualised equity market return, CLAUDE.md constant). rf=user rf (default 0.038). betas from the Stocks.xlsx beta column. Positive alpha: portfolio exceeds the CAPM expected return. Both the Portfolio Analyzer and the Stress Test callers receive a float via mc.get("alpha").
formula
PASS
M37-03
Protocol v2 — current portfolio CAPM alpha (AAPL/MSFT/JNJ)
POST /api/analyze: AAPL(1000sh@$213)+MSFT(500sh@$422)+JNJ(300sh@$160). Market-value current weights≈37%/42%/20%. API: return=22.69%, beta=0.895, alpha=13.34%. ind: α=0.2269−0.038−0.895×(0.10−0.038)=0.2269−0.038−0.895×0.062=0.2269−0.038−0.055490=0.133410=13.34%. diff=0.0000%. Exact match.
Same portfolio, optimal weights (max Sharpe). API: return=24.01%, beta=0.932, alpha=14.43%. ind: α=0.2401−0.038−0.932×(0.10−0.038)=0.2401−0.038−0.932×0.062=0.2401−0.038−0.057784=0.144316=14.43%. diff=0.0000%. Consistency check: optimal α>current α (14.43%>13.34%) — optimizer tilts toward higher-alpha assets under max-Sharpe objective. Optimal β>current β (0.932>0.895) — growth tilt vs defensive current. Both monotonicity checks pass.
±0.001%
PASS
M37-05
Stress Test endpoint also returns numeric CAPM alpha; cross-endpoint consistency
POST /api/stress: AAPL/MSFT/JNJ, covid_crash scenario. alpha numeric (the same portfolio_metrics() is called by pa_main.run() and the stress engine). API stress alpha=13.34% (current portfolio) — identical to Portfolio Analyzer M37-03. Cross-endpoint diff=0.00%. Multi-asset stress: alpha intentionally absent (non-linear assets).
delta=N(d1)=N(0.145)=0.557645. gamma=N'(d1)/(S×σ×√T)=0.394770/(100×0.10)=0.039477. vega=S×N'(d1)×√T/100=100×0.394770×0.5/100=0.197385. All verified: ind delta=0.557645, gamma=0.039477, vega=0.197385. compute_greeks() matches to 6dp.
Kelly criterion and portfolio VaR (leverage_engine, stop_loss_engine)
Kelly: f*=(μ−rf)/σ²=(0.10−0.038)/0.15²=0.062/0.0225=2.7556. leverage_engine.analyze_leverage kelly.f_star=2.7556. diff<0.001. VaR(95%,60d): σ_p=15% annual, T=60/252=0.2381yr. VaR=σ_p×√T×Φ^(−1)(0.95)=0.15×0.4879×1.6449=0.12039=12.04%. stop_loss_engine VaR formula verified. diff<0.01%.
±0.001
PASS
EFA38-08
PSR (Probabilistic Sharpe Ratio) formula audit
backtest_engine.py PSR uses sr_monthly=(mean(oos_rets)−rf/12)/std(oos_rets,ddof=1) [per-period, NOT annualised]. sigma_SR=sqrt((1−sk×SR+(ku_raw−1)/4×SR²)/(T−1)). With ku_raw=fisher=False (raw kurtosis, normal=3), (ku−1)/4=(excess_ku+2)/4 matches Lopez de Prado AFML eq.15.2. For a normal distribution: sigma_SR=sqrt((1+0.5×SR²)/(T−1)), as in AFML. Formula verified.
Constrained Optimizer against the production code path (25 Nov 2026) on the production data; the fundamentals file was unchanged before and after. 25 runs on AAPL MSFT NVDA JNJ PG KO XOM CVX JPM GLD with locked, minimum, maximum and range constraints and sector limits, in the standard (variance) and CVaR engines: 20 completed, 5 correctly rejected. Every optimisation was solved again by an independent solver (cvxpy) with no platform code, and the CVaR scenarios were rebuilt from the monthly price history. The results table shows weights to 2 decimals, so sums can read 99.99%–100.01%.
ID
Component
What was verified (MAISNER vs independent computation)
Tolerance
Status
CO3-01
Constraints
In all 20 completed runs (standard and CVaR engines, every mode) each per-asset bound and sector limit holds (smallest margin 0.00000) and the weights add to 100% (99.99%–100.01% because the table shows weights to 2 decimals).
slack ≥ −1e-4
PASS
CO3-02
Sectors
The same 10 assets always land in the same sector groups (Technology AAPL MSFT NVDA, Energy CVX XOM, Consumer Staples KO PG, Financials JPM, Healthcare JNJ, ETF GLD); the sector shown in the results is the group the optimizer used (10 of 10).
exact
PASS
CO3-03
Sectors
Sector names typed the way users write them are understood: 'Finance' max 5% and 'Oil/Gas' min 15% give Financials 0.00% and Energy 15.00%.
exact
PASS
CO3-04
Percent inputs
A limit typed as 1 means 1%: NVDA 'max 1' → NVDA 1.00%; 'Technology max 1' → Technology 1.00%.
≤ 1.01%
PASS
CO3-05
Feasibility
Two free assets with the default 35% cap cannot reach 100%; the cap adapts to 50% and the result is 50/50.
exact
PASS
CO3-06
Feasibility
Impossible or mistyped constraints are rejected before optimising, with the reason shown to the user: a misspelt sector ('Technlogy'); a minimum on a sector the portfolio does not hold; sector minimums adding to 110%; per-asset maximums allowing only 60%; locked weights leaving no budget.
explicit message
PASS
CO3-07
Optimality — standard engine
Each mode reaches the optimum an independent solver finds under the same constraints: Conservative volatility 10.7008% vs 10.7019%; Aggressive return 24.313% vs 24.313%; Dividend objective 0.01204 vs 0.01204; Standard Sharpe 1.3815 vs 1.3816, with default sector caps 1.4683 vs 1.4685, at a 1% risk-free rate 1.6077 vs 1.6079.
optimum ± 2e-3
PASS
CO3-08
Risk-free rate
Changing the risk-free rate from 3.8% to 1% moves the weights as much as it moves the true optimum (0.0272 vs 0.0285, largest weight change).
Δw > 1e-3
PASS
CO3-09
Cost of constraints
The 'unconstrained' reference is the true long-only maximum Sharpe ratio at the user's rate (1.4689 vs 1.4689; 1.6697 vs 1.6697), and the constrained result never beats it, so the reported cost of the constraints is never negative: 0.0874, 0.0005, 0.0619, 0.0005 in Sharpe units.
< 2e-3
PASS
CO3-10
CVaR engine — scenarios
Scenarios = the months common to every asset's history (126 months) in all 8 CVaR runs, counted independently.
exact
PASS
CO3-11
CVaR engine — reported risk
The CVaR shown for the optimal portfolio equals an independent CVaR of the shown weights in all 8 runs (e.g. Conservative 0.049382 vs 0.049383; differences only from 2-decimal weights).
< 2e-4
PASS
CO3-12
CVaR engine — reported risk
The minimum-risk CVaR shown equals the independent linear-programme minimum in all 8 runs (0.049382 vs 0.049382 at 95%).
< 2e-4
PASS
CO3-13
CVaR engine — optimality
Each CVaR mode reaches the optimum of an independent linear programme (cvxpy): minimum CVaR 4.9383% vs 4.9382% (95%) and 5.4330% vs 5.4326% (99%); maximum return-to-CVaR (STARR) 2.8166 vs 2.8166, with default sector caps 2.9450 vs 2.9450; Aggressive return 24.313% vs 24.313%; Dividend objective 0.03833 vs 0.03833; Constrained Analyzer 4.7606% vs 4.7605%.
optimum ± 2e-4
PASS
CO3-14
CVaR engine — Balanced
Balanced keeps volatility within its cap (12.001% vs 12% cap) and reaches the best STARR under that cap (2.5098 vs 2.5099).
cap + 1e-4
PASS
CO3-15
CVaR engine — behaviour
A 99% tail is deeper than a 95% tail (minimum CVaR 4.938% < 5.433%), and the CVaR engine produces a genuinely different portfolio from the variance engine (largest weight difference 0.1983).
Protocol v3 (L1 replica, L2 null/planted anchors, L3 windows, L4 no-look-ahead, L6 monotone). Synthetic data with known truth (scripts bt_v3.py, pit_v3.py) plus a live API/independent check for Sortino. Verified: weights decided at the end of month i earn month i+1; the in-sample window ends at the split; factor and signal scores use only data available at each date; Frontier Sortino annualised by the bar frequency (×12 for monthly). Fundamental factors are reported as a snapshot until historical filings are available.
ID
Component
Formula / Rule
Tolerance
Status
PIT-01
Factor IC L2 null: random walks (15 seeds, 40 names, 120 m)
Mean point-in-time 1M IC −0.0023 ± 0.0064 (|mean| < 3 SE).
|mean| < 3 SE
PASS
PIT-02
Decay lag 1 is not the mechanical identity
max |decay[1]| over 15 seeds = 0.052 (a trailing return correlated with itself would give 1.000).
< 0.3
PASS
PIT-03
Planted persistent drift → momentum 12M IC > 0
Per-asset drift N(0, 2%/m): mean forward IC +0.106.
> 0.10
PASS
PIT-04
Planted drift → 3M L/S spread significant (t over dates)
Spread +5.49%, t 4.394, p 0.0003 over 20 non-overlapping dates.
All 5 price factors, every t ≤ 70, prices after 70 scaled ×1.7·noise: scores identical.
exact
PASS
PIT-07
L1 replica: IC(t) vs scipy.spearmanr
t=60, Momentum 3M vs next-month return: API 0.2347091932, ind 0.2347091932, diff < 1e-12.
1e-12
PASS
PIT-08
L1 replica: low-volatility raw score
−σ(12 monthly log returns, ddof=1)·√12: max diff 0.0e+00 over 40 names.
exact
PASS
PIT-09
Ensemble on noise: no overfit
R² 0.0066 with N=800 pooled obs, k=5 factors.
R² < 0.05, N > 10k
PASS
PIT-10
Turnover recomputed per date
Momentum 1M top-5 turnover on noise 86.7% (scores recomputed at every date).
> 20%
PASS
EF-SOR
Frontier Sortino annualisation by bar frequency
Monthly bars (n=23). ind dv=√(mean(min(r,0)²)·12)=0.054549; Sortino=(0.19612−0.038)/0.054549=2.8987. API 2.8987. diff ≈ 0. Annualised by the bar frequency (×12).
±0.001
PASS
40Leverage Analyzer, Drawdown Cap + Stop Loss Calculator (live API, Nov 25 2026)24 / 24 PASS
Leverage Analyzer, drawdown leverage cap and Stop Loss Calculator against the live API (25 Nov 2026). Main portfolio AAPL/MSFT/JNJ/GLD 30/30/20/20 at 2× leverage, margin rate 5.5%, US rules; NVDA alone at 3× for the high-risk liquidation cases; a long/short book AAPL/MSFT/JNJ 50/25/−25 for short stops. Every figure was recomputed by a separate script that shares no code with the platform (numpy, scipy, an independent Yahoo download); Monte-Carlo figures are compared within three standard errors.
ID
Component
What was verified (MAISNER vs independent computation)
Tolerance
Status
LS3-01
Leverage — inputs
Portfolio AAPL/MSFT/JNJ/GLD 30/30/20/20: weights used as entered; expected return μ = Σ wᵢ·(5-year CAGR) = 21.734% (independent 21.734%). Single-asset check: AAPL volatility 28.93% = independent 2-year daily Yahoo series 28.93%.
1e-4
PASS
LS3-02
Leverage — Kelly
Kelly leverage f* = (μ − rf)/σ² = 7.0225× (independent 7.0226×); half 3.5113×, quarter 1.7556×. The high value comes from the 21.7% five-year growth rate of this portfolio, not from the formula.
1e-3
PASS
LS3-03
Leverage — leverage table
Table 1×–3×: return Lμ − (L−1)·margin rate, volatility Lσ, Sharpe ratio, volatility drag −½(L²−L)σ² and net return, recomputed for all five rows. At 2×: return 37.97% vs 37.968%, drag -2.55% vs -2.554%, net 35.41% vs 35.414%. Largest difference 0.005 pp (2-decimal display).
display rounding
PASS
LS3-04
Leverage — no leverage
At 1× everything reduces to the unlevered portfolio: return = μ, volatility = σ, no drag, no margin call, liquidation probability 0.
exact
PASS
LS3-05
Leverage — margin call
Margin call when the portfolio falls 1 − (L−1)/(L·(1−m)), m = 25% maintenance (FINRA 4210): 33.33% at 2× (independent 33.3333%), 11.11% at 3×. At that point equity / position = 25.00% exactly.
display rounding
PASS
LS3-06
Leverage — stress scenarios
Five historical shocks at 2×: equity loss = 2 × shock, capped at −100% of equity — GFC 2008 -100%, COVID 2020 -67.8%, Rate Shock 2022 -50.8%, Dot-com 2000-02 -98.2%, Black Monday 1987 -45.2%. The margin-call flag matches the margin-call level in every case; at 3× the 2008 loss equals the whole equity ($100,000 of $100,000).
exact
PASS
LS3-07
Leverage — liquidation probability
One-year probability of a forced liquidation at 2× (5,000 simulated paths): 0.02% vs 0.019% from the closed-form barrier formula and 0.07% from an independent simulation in which the loan accrues margin interest.
3 Monte-Carlo SE
PASS
LS3-08
Leverage — liquidation probability
High-risk case NVDA at 3×: 57.4% vs closed form 56.2% and independent simulation 56.75% without margin interest; 59.84% vs 59.33% with 5.5% interest on the loan.
3 Monte-Carlo SE
PASS
LS3-09
Leverage — consistency
Doubling the portfolio value doubles every dollar figure and leaves percentages and the liquidation probability unchanged; listing the assets in another order, or splitting AAPL into two 15% lines, gives the same μ and σ. A 1% risk-free rate is used by Kelly (8.1189×) and by the Sharpe ratio (1.297 vs 1.122 at 3.8%).
exact / 1e-3
PASS
LS3-10
Leverage — direction of effects
Liquidation probability rises with leverage (1.5× → 2× → 2.5× → 3×: 0.0% → 0.02% → 2.72% → 17.0%), rises with the margin rate (NVDA 3×: 57.4% → 59.84% → 61.48%) and with volatility (NVDA alone 16.38% vs the diversified portfolio 0.02%); a margin rate 5.5% → 9% lowers the 2× return by exactly (L−1)·Δr = 3.5 pp.
monotone / exact
PASS
LS3-11
Leverage — model assumption
μ is the 5-year geometric growth rate. Using the arithmetic mean instead (≈ +σ²/2) would move Kelly from 7.0225× to 7.342× and the liquidation probabilities by at most 0.1 pp (NVDA 3×: 56.25% vs 56.36%). Stated in the methodology.
documented
PASS
LS3-12
Leverage — drawdown cap
Highest leverage for a loss budget (Paleologo, APM eq. 10.3): Lmax = D/(σ√T(κz − SR√T)). Loss 20% at 5% probability over 1 year: 2.3947× (independent 2.3948×); with tail factor κ 1.5: 0.9305×; at 1% probability: 1.0394×. Inputs outside the allowed range are rejected with an explanation.
1e-3
PASS
LS3-13
Leverage — drawdown cap
At Lmax the probability of losing more than 20% is exactly the 5% budget: 4.9999% by formula and 4.96% in 400,000 independent simulations (±0.10%).
3 Monte-Carlo SE
PASS
LS3-14
Leverage — drawdown cap
At the selected 2× the probability of losing more than 20% is 4.023% (independent 4.023%) — inside the budget, so 2× is reported as within the cap.
1e-5
PASS
LS3-15
Leverage — drawdown cap
Doubling the loss budget to 40% doubles Lmax (4.7894×); a fatter tail or a stricter probability lowers it; the selected leverage, the portfolio value and the order of assets do not change it.
exact / monotone
PASS
LS3-16
Leverage — drawdown cap
When κz ≤ SR√T (here 5 years at 25%: 0.674 ≤ 2.509) no leverage breaks the budget — the probability tends to 0.6% < 25% — and the cap is reported as not binding.
exact
PASS
LS3-17
Stop loss — position stops
Stop distance k·σdaily·√days, stop price, dollar risk and re-entry level recomputed for all four positions: MSFT stop 28.62% / 285.54 vs 28.615% / 285.539; AAPL stop 28.23% / 143.54 vs 28.228% / 143.544; GLD stop 24.63% / 173.36 vs 24.628% / 173.357; JNJ stop 20% / 119.99 vs 20.005% / 119.993. Total dollar risk $25,979 = sum of positions. Largest difference $0.18 on a dollar risk (rounding).
display rounding
PASS
LS3-18
Stop loss — inputs
Each position's volatility equals an independent 2-year daily Yahoo series: MSFT 29.32% vs 29.40%; AAPL 28.92% vs 28.93%; GLD 25.24% vs 25.29%; JNJ 20.50% vs 20.49%.
1e-3
PASS
LS3-19
Stop loss — probability of hitting the stop
Probability of touching the stop before the horizon (closed-form barrier formula): MSFT 0.77% vs 0.774%; AAPL 0.64% vs 0.636%; GLD 1.27% vs 1.265%; JNJ 1.53% vs 1.528%; AAPL also by independent simulation: 0.63%.
4 dp / 3 SE
PASS
LS3-20
Stop loss — portfolio risk
Portfolio VaR = σp√T·Φ⁻¹(α) = 12.83% (independent 12.826%); drawdown limit k·σp,daily·√days = 15.6% (independent 15.595%); VaR 99% / VaR 95% = 1.4139 = z99/z95 1.4143.
display rounding
PASS
LS3-21
Stop loss — Sharpe-adjusted stop
Sharpe ratio 1.122 at the user's risk-free rate; Sharpe-adjusted stop σ√T(k − SR√T) = 11.33% (independent 11.326%), which is exactly the root of Paleologo's inequality (APM §10.1) for κ = 1 and for κ = 2; with SR = 0 it equals the plain volatility stop. Kelly 7.023×.
1e-3
PASS
LS3-22
Stop loss — Sharpe-adjusted stop
When SR√T ≥ k the strategy must be up by σ√T(SR√T − k) = 12.58% to stay consistent with its Sharpe ratio; the screen reports this required gain instead of a stop.
exact
PASS
LS3-23
Stop loss — short positions
A short AAPL position is treated as short: stop above entry (256.46 vs entry 200). Long/short book 50/25/−25: weights on a 100% gross base, the JNJ short stop 180.01 above entry, probability of hitting it 10.08% (independent 10.087%); drawdown limit and VaR on the same base.
1e-3
PASS
LS3-24
Stop loss — direction of effects
Stops widen with √T (90 / 30 days = 1.7326 vs √3 = 1.7321) and with k (k 2.5 / 1.5 = 1.6668 vs 5/3); a wider k lowers the hit probability (4.86% → 0.06%); a higher Sharpe ratio tightens the stop (13.8% → 12.12% → 10.43% → 8.75%). Doubling the portfolio value doubles dollar risk; order of assets changes nothing.
monotone / 1e-3
PASS
4110-Year Monte Carlo, Sortino & Analyzer Fundamentals (live API, Nov 25 2026)14 / 14 PASS
10-year Monte Carlo, Sortino ratio, maximum drawdown and dividend figures of the Optimizer and the Analyzer, against the live API (25 Nov 2026). Portfolios: the Optimizer's Conservative and Aggressive results and the Analyzer's current and optimal portfolios. Monte-Carlo read-outs are compared with the exact values of the lognormal distribution the simulation draws from, within three Monte-Carlo standard errors; all other figures were recomputed by a separate script (numpy, scipy, pandas) reading the same data files.
ID
Component
What was verified (MAISNER vs independent computation)
Tolerance
Status
MC3-01
10-year Monte Carlo — drift
The simulation grows at the CAPM rate rf + β·5%, recomputed from each portfolio's beta: Optimizer Conservative 6.33% (β 0.506); Optimizer Aggressive 11.21% (β 1.481); Analyzer optimal 6.33% (β 0.506); Analyzer current 7.07% (β 0.653). The historical 5-year growth rate is shown next to it as a separate, labelled figure (14.64%, 38.73%, 14.64%, 18.25%).
4 dp
PASS
MC3-02
10-year Monte Carlo — volatility
The simulation uses the same portfolio volatility as the results table: Optimizer Conservative 11.90%, Optimizer Aggressive 27.56%, Analyzer optimal 11.90%, Analyzer current 13.46%.
exact
PASS
MC3-03
10-year Monte Carlo — median
Median 10-year outcome (10,000 paths) vs the exact lognormal value exp((μ − σ²/2)·10): Optimizer Conservative ×1.75 vs ×1.755; Optimizer Aggressive ×2.07 vs ×2.099; Analyzer optimal ×1.75 vs ×1.755; Analyzer current ×1.84 vs ×1.852.
3 Monte-Carlo SE
PASS
MC3-04
10-year Monte Carlo — range
5th and 95th percentile outcomes vs the exact lognormal quantiles: Optimizer Conservative ×0.93–×3.26 vs ×0.945–×3.258; Optimizer Aggressive ×0.49–×8.78 vs ×0.500–×8.800; Analyzer optimal ×0.93–×3.26 vs ×0.945–×3.258; Analyzer current ×0.91–×3.73 vs ×0.920–×3.731.
3 Monte-Carlo SE + rounding
PASS
MC3-05
10-year Monte Carlo — probabilities
Probability of ending below the starting value and of doubling, vs the exact lognormal probabilities: Optimizer Conservative loss 7.1% vs 6.76%, ×2 36.1% vs 36.39%; Optimizer Aggressive loss 20.0% vs 19.75%, ×2 51.8% vs 52.20%; Analyzer optimal loss 7.1% vs 6.76%, ×2 36.1% vs 36.39%; Analyzer current loss 7.7% vs 7.38%, ×2 42.3% vs 42.85%.
3 Monte-Carlo SE
PASS
MC3-06
10-year Monte Carlo — plausibility
Every simulated portfolio stays in a believable range (drift ≤ 15% a year, median ≤ ×4 in 10 years; highest: Optimizer Aggressive, drift 11.2%, median ×2.07, 20% chance of a loss) and the labels carry the right sign (e.g. ×1.75, +75%).
range
PASS
MC3-07
10-year Monte Carlo — direction of effects
A more volatile portfolio has a wider outcome range: volatility 11.90% → 27.56% (Conservative → Aggressive) widens the 95th / 5th percentile ratio from 3.51 to 17.92.
direction
PASS
MC3-08
Analyzer = Optimizer
The Analyzer's optimal portfolio produces the same 10-year simulation as the Optimizer's for the same assets (within one display step).
one display step
PASS
MC3-09
Reproducibility
The same request sent twice returns the same simulation figures and the same optimal weights (largest weight difference 0).
one display step
PASS
MC3-10
Sortino ratio
Sortino ratio annualised with 12 periods a year because it is computed on 23 monthly returns: Optimizer and Analyzer optimal 2.989 (independent 2.988), Analyzer current 3.006 (independent 3.006). For a portfolio with a positive mean it is above the Sharpe ratio (2.989 vs 0.911), as it must be.
1e-3
PASS
MC3-11
Maximum drawdown
Maximum drawdown on the last 24 monthly closes: optimal -3.82% (independent -3.815%), Analyzer current -5.13% (independent -5.128%). Monthly closes miss intra-month lows; the label says so.
display rounding
PASS
MC3-12
Dividend yields
Dividend yields enter in percent, as stored: KO 2.09%, JNJ 1.87%, MSFT 0.72%, XOM 2.66%, JPM 1.98%, AAPL 0.31% — each equal to the fundamentals file; a yield below 1% (AAPL 0.31%) is not mistaken for 31%. Dividend columns show one unit (e.g. KO 0.67% of the portfolio).
exact
PASS
MC3-13
Analyzer = Optimizer
For the same assets the Analyzer's optimal portfolio is identical to the Optimizer's in Standard, Dividend and Aggressive mode: weights identical (largest difference 0), portfolio quality 0.586 / 0.518 / 0.562 in both, Dividend-mode yield 2.3742% in both.
exact
PASS
MC3-14
Dividend mode
Dividend mode yields more than equal weighting of the same assets: 2.3742% vs 1.7611%.
Mean-variance optimizer and its covariance pipeline, 25 Nov 2026. 22 optimizer runs through the production code path on a copy of the production data: portfolios of 10 US assets (AAPL MSFT NVDA JPM XOM PG KO JNJ SPY TLT), the same 10 in reverse order, 15 assets adding five European stocks (ENEL.MI ALV.DE ASML.AS SAN.MC ULVR.L), 5 assets (AAPL MSFT JNJ KO XOM) and 2 assets (AAPL TLT); all five modes; risk-free rate 3.8% and 1%; max weight 35% and 25%; Balanced volatility caps 12/15/20%. Every figure was recomputed by a separate script that shares no code with the platform (numpy, cvxpy); each row below summarises one property over all runs. Standard and Balanced optimise the regularised objective described in the methodology (diversification, quality and momentum terms), so their Sharpe ratio is deliberately a little below the plain constrained maximum: 10 assets: 1.412 vs 1.424; 10 assets: 1.602 vs 1.613; 15 assets incl. 5 European: 1.415 vs 1.419; 10 assets Balanced (vol cap 12%): 1.316 vs 1.325; 10 assets Balanced (vol cap 15%): 1.412 vs 1.426; 10 assets Balanced (vol cap 20%): 1.412 vs 1.426; 5 assets Balanced (vol cap 15%): 1.104 vs 1.107.
ID
Component
What was verified (MAISNER vs independent computation)
Tolerance
Status
MV3-01
Weights
Weights add up to 100% in every one of the 22 optimizer runs (largest deviation 2.2e-16).
1e-6
PASS
MV3-02
Weights
No asset exceeds its cap in any run. Closest to the cap: 5 assets, Aggressive — largest weight 35.00% vs cap 35.00%.
1e-4
PASS
MV3-03
Weights
No asset falls below its floor (15-asset Standard keeps every asset at ≥ 0.4/n = 2.67%) — 22 runs.
1e-4
PASS
MV3-04
Sector limits
Sector floors and the 40% sector cap hold in all 13 runs with 8 or more assets (tightest margin 0.0000 pp; 0 means a limit is met exactly).
1e-4
PASS
MV3-05
Volatility cap
Balanced mode stays within its volatility cap: 10 assets, Balanced (vol cap 12%): 12.00%; 10 assets, Balanced (vol cap 15%): 14.74%; 10 assets, Balanced (vol cap 20%): 14.74%; 5 assets, Balanced (vol cap 15%): 14.54%.
1e-4
PASS
MV3-06
Displayed figures
Expected return shown = Σ wᵢμᵢ, recomputed independently in all 22 runs. Example (10 assets, Standard): shown 0.2461, independent 0.246068. Largest difference 4.9e-05 = rounding of the displayed value.
display rounding
PASS
MV3-07
Displayed figures
Volatility shown = √(wᵀΣw), recomputed independently in all 22 runs. Example (10 assets, Standard): shown 0.1474, independent 0.147393. Largest difference 4.4e-05 = rounding of the displayed value.
display rounding
PASS
MV3-08
Displayed figures
Sharpe ratio shown = (return − rf) / volatility at the user's rf, recomputed independently in all 22 runs. Example (10 assets, Standard): shown 1.412, independent 1.411655. Largest difference 4.3e-04 = rounding of the displayed value.
display rounding
PASS
MV3-09
Optimality — Conservative
Portfolio volatility is the true minimum under the same caps and sector limits (independent quadratic solver): 10 assets 8.7206% vs 8.7206%; 15 assets incl. 5 European 8.1613% vs 8.1613%; 5 assets 12.2556% vs 12.2556%; 2 assets 16.0467% vs 16.0467%; 5 assets 12.3920% vs 12.3920%. Largest gap 8.1e-10.
solver precision
PASS
MV3-10
Optimality — Aggressive
Expected return is the true maximum under the same limits (independent linear programme): 10 assets 31.8806% vs 31.8806%; 5 assets 22.6558% vs 22.6558%.
solver precision
PASS
MV3-11
Optimality — Dividend
Yield-minus-risk objective is the true optimum (independent cone solver); portfolio yields 10 assets 3.0526% vs 3.0526%; 15 assets incl. 5 European 4.2991% vs 4.2991%; 5 assets 1.9211% vs 1.9211%.
solver precision
PASS
MV3-12
Optimality — small portfolios
With fewer than 8 assets the Sharpe ratio is the true maximum under the caps (independent solver): 5 assets, Standard 1.1068 vs 1.1068; 2 assets, Standard 0.6458 vs 0.6458; 5 assets, Standard, max weight 25% 1.0981 vs 1.0981.
≥ max − 1e-3
PASS
MV3-13
Optimality — small portfolios
1,000 random portfolios within the caps, in each of 3 runs: none has a higher Sharpe ratio.
0 better
PASS
MV3-14
Covariance — data
Noise filter and shrinkage use the same return sample as the correlation: 500 daily returns (10 assets) / 485 (15 assets, common trading days) — all 22 runs.
exact
PASS
MV3-15
Covariance — data
Every asset enters with its own price history; no correlation is filled with a default value — 22 runs.
exact
PASS
MV3-16
Covariance — noise filter
Marchenko-Pastur noise threshold λ+ = (1 + 1/√q)², q = T/N: 10 assets 1.30284 vs 1.30284; 10 assets (reversed order) 1.30284 vs 1.30284; 15 assets incl. 5 European 1.38265 vs 1.38265; 5 assets 1.21000 vs 1.21000; 2 assets 1.13049 vs 1.13049.
exact
PASS
MV3-17
Covariance — noise filter
Cleaned correlation matrix rebuilt independently from the eigenvalues (noise eigenvalues replaced by their mean, at least one per sector kept): largest element difference 6.7e-16 over 22 runs.
1e-6
PASS
MV3-18
Covariance — noise filter
Cleaning changes correlations only — every asset volatility is unchanged (largest difference 0, 22 runs).
1e-7
PASS
MV3-19
Covariance — noise filter
The cleaned covariance is a valid covariance matrix (all eigenvalues positive; smallest 0.0090) — 22 runs.
≥ 0
PASS
MV3-20
Covariance — exchange closing times
European/US pairs include the next-day reaction of the earlier-closing market: ρ = [cov(et, lt) + cov(et+1, lt)]/(σeσl), recomputed from raw daily returns for all 50 pairs — largest difference 0.
1e-9
PASS
MV3-21
Covariance — exchange closing times
Pairs on the same exchange keep the plain same-day correlation (largest difference 8.9e-16).
1e-9
PASS
MV3-22
Covariance — fallback without daily prices
Without daily prices the correlation falls back to the last 24 monthly returns, and the filter uses the same 24 observations (method: Ledoit-Wolf).
1e-9
PASS
MV3-23
Covariance — fallback without daily prices
Ledoit-Wolf shrinkage intensity in that case: 0.485693 vs independent formula 0.485693.
Option and bond pricing functions used by the platform, checked against textbook values (Hull; Fabozzi) and against independent implementations written for this report: Black-Scholes and Merton formulas, a 4,000-step binomial tree for American options, finite-difference Greeks and durations, and an exact cash-flow schedule for bonds with fractional maturities. Bond prices are full (dirty) prices; market quotes are treated as clean prices plus accrued coupon.
ID
Component
What was verified (MAISNER vs independent computation)
Tolerance
Status
OB-01
Black-Scholes
Textbook anchor (Hull, Example 15.6: S 42, K 40, r 10%, σ 20%, 6 months): call 4.7594 vs 4.76, put 0.8086 vs 0.81.
4 dp
PASS
OB-02
Black-Scholes
300 random options (spot 20–400, strikes 60–150% of spot, 1 week–3 years, rates 0–8%, volatility 8–90%): prices equal an independent implementation (largest difference 0e+00), put-call parity C − P = S − K·e−rT holds to 9e-14 and every price lies within the no-arbitrage bounds.
1e-9
PASS
OB-03
Greeks
Delta, gamma, theta (per calendar day), vega (per vol point) and rho (per 1% rate) equal finite-difference revaluations of the price for 300 calls and puts — largest relative gap delta 3.9e-04, gamma 4.5e-05, theta 5.0e-04, vega 3.5e-04, rho 2.6e-04.
2e-3 relative
PASS
OB-04
Implied volatility
Implied volatility recovers the volatility a price was made with, for 200 options (largest error 5.0e-06, i.e. 0.0005 vol points).
2e-5
PASS
OB-05
American options (BAW)
Barone-Adesi-Whaley prices vs an independent 4,000-step binomial tree, six cases with and without dividend yield: put K 100: 7.385 vs 7.394; put K 110: 13.685 vs 13.743; put K 90: 2.342 vs 2.330; call K 100, q 0.03: 10.566 vs 10.550; call K 90, q 0.06: 13.253 vs 13.277; put K 100, q 0.02: 10.106 vs 10.069. Each price is at least the European value and the intrinsic value; an American call without dividends equals the European call exactly.
1.2% (BAW is an approximation)
PASS
OB-06
Expiry
At expiry the price is the intrinsic value (call S 110, K 100: 10.00).
exact
PASS
OB-07
Strategy builder
Every option leg of the 12 strategies is placed at a strike whose delta matches its target (largest gap 0.0050).
0.0055
PASS
OB-08
Bonds — price
Textbook anchor (Fabozzi): 20-year 9% semi-annual bond at a 12% yield = 774.31 (engine 774.31); a bond whose coupon equals its yield prices at par.
0.01
PASS
OB-09
Bonds — zero coupon
Zero-coupon bonds at 4% for 5, 4.3 and 7.75 years: price = F/(1 + y/2)2T exactly (e.g. 4.3 years: 84.341) and Macaulay duration = maturity (5.00 / 4.30 / 7.75 years) — fractional maturities included.
1e-6
PASS
OB-10
Bonds — coupon bonds
Full price and Macaulay duration equal an independent cash-flow schedule (next coupon a fraction of a period away) for 10-year 5%, 6.4-year 3% and 2.2-year 8% bonds: prices 108.176 / 84.546 / 108.565, durations 8.081 / 5.791 / 2.022 years.
1e-6
PASS
OB-11
Bonds — sensitivities
Modified duration = −(1/P)·dP/dy, convexity = (1/P)·d²P/dy² and DV01 = modified duration × price × 1 bp, against finite differences of the independent price, for the same three bonds (e.g. 10-year: 7.922, 75.47, 0.0857).
2e-3 relative
PASS
OB-12
Bonds — yield
The yield solved from a price recovers the yield the price was made with, for all three bonds.
2e-6
PASS
OB-13
Bonds — scenario
+100 bp shock to a 10-year 5% bond: duration-convexity estimate -7.43% vs exact repricing -7.44%.
5e-4
PASS
OB-14
Bonds — direction of effects
Duration rises with maturity (2 < 5 < 10 < 30 years) and falls with the coupon (0% > 4% > 8% at 10 years).
One rule for every engine: no suffix = US listing, an exchange suffix = that exchange, a symbol not traded where asked = its most traded listing elsewhere, announced. Live API on 26 Nov 2026 (85 checks); the independent side queries the exchange quotes itself (own session, own suffix list, own turnover and FX ranking — no MAISNER code).
ID
Component
What was verified (MAISNER vs independent computation)
Tolerance
Status
TKR-01
Rule
A ticker without an exchange suffix is the US listing (AAPL; SAP = the SAP SE ADR on the NYSE in USD); a ticker with a Yahoo suffix is that exchange (SAP.DE = Xetra, EUR) — checked against the exchange quote.
exact
PASS
TKR-02
Automatic pick
A symbol not traded where asked is replaced by its most traded listing (price × 3-month average volume, compared in EUR) and the replacement is announced with company, exchange and currency. 11 names = independent ranking of every European listing: HEIA → HEIA.AS, HEIA.DE → HEIA.AS, RWE → RWE.DE, ENI → ENI.MI, OMV → OMV.VI, VAR → VAR.OL, AKRBP → AKRBP.OL, SPYW → SPYW.DE, SREN → SREN.SW, IUSA → IUSA.L, VEUR → VEUR.L.
exact
PASS
TKR-03
Automatic pick
8 more names typed without suffix resolve to the same listing as the independent check (US line if one trades, else the most traded European listing; DSY stays the US-listed Big Tree Cloud, Dassault Systèmes is DSY.PA): (KNEBV → KNEBV.HE, WKL → WKL.AS, ADYEN → ADYEN.AS, PRX → PRX.AS, DSY → DSY, ORNBV → ORNBV.HE, SAMPO → SAMPO.HE, KESKOB → KESKOB.HE).
exact
PASS
TKR-04
Other inputs
BRK.B becomes BRK-B (US share class); an unknown symbol is used as typed and reported; options, futures, indices, FX and crypto pass through unchanged (5 of 5).
exact
PASS
TKR-05
Currency of the listing
Currency and quote unit equal the exchange quote for 9 listings — e.g. ULVR.L and IUSA.L in pence (÷100 → GBP), VEUR.L in pounds, IUSA.SW in USD, SAN.MC / OMV.VI / NOKIA.HE in EUR, NESN.SW in CHF, NOVO-B.CO in DKK.
exact
PASS
TKR-06
Every engine
Typed 'HEIA' reaches all 24 engines and data endpoints as HEIA.AS (Euronext Amsterdam) with the note returned and no unresolved 'HEIA' left in the output: Leverage, Stop Loss, Stress (category replay), Stress (real price replay), Advanced Stress, Frontier metrics, Frontier points, Attribution (BHB), Tax-loss harvesting, Watchlist prices, Live prices (GET), Hedging portfolio defaults (GET), Multi-Asset, L/S Optimizer, L/S Analyzer, Factor Explorer, Signal Analysis, Backtest, Portfolio Optimizer, Portfolio Analyzer, Constrained Optimizer, Constrained Analyzer, Portfolio Hedge, PRIIPs KID.
exact
PASS
TKR-07
Same security, same result
'HEIA' and 'HEIA.AS' give the same result in 7 engines (Leverage, Stop Loss, Stress (category replay), Stress (real price replay), Advanced Stress, Frontier metrics, Attribution (BHB)); largest relative difference 2.5e-06 (the live daily bar moves between two calls).
1e-4 rel.
PASS
TKR-08
Saved books
Saved portfolios, Monitor books and alert rules store the resolved listing (HEIA.AS), so a saved book never changes its exchange later.
exact
PASS
TKR-09
Monitor prices
Monitor prices every listing in its own currency and unit: 6 positions (London pence and pound lines, Swiss USD line, Madrid, Amsterdam, US) — local price within 2% of the live exchange quote, currency equal.
2%
PASS
TKR-10
Monitor value
Position value in USD = quantity × local price × live FX rate; EUR / CHF / GBP rates within 0.2% of an independent live quote (EUR 1.0942 vs 1.0942, CHF 1.1964 vs 1.1965, GBP 1.3103 vs 1.3103) — see Module 13.
0.2%
PASS
TKR-11
Monitor identity
Total value − total cost = total P&L exactly (426.93 vs 426.93).
0.01 $
PASS
TKR-12
Operation
Unauthenticated requests trigger no lookups; a cold lookup of 8 new listings does not slow other users (light requests stay < 0.5 s); Helsinki / Amsterdam names typed without suffix run end-to-end through the Optimizer without the fundamentals feed; the old bare-name rows were migrated with their price history.
flag
PASS
45USD Base Currency & Price History (Nov 27 2026)7 / 7 PASS
All returns, volatilities, correlations and expected returns are those of a US-dollar investor: non-USD listings are converted at the exchange rate of the same month (monthly history) or day (daily data), and their 5-year CAGR with the 5-year change of the rate. Checked against an independent exchange-rate download on the live price database (25 checks).
ID
Component
Formula / Rule
Tolerance
Status
FXB-01
Monthly prices in USD
Every month-end price of the 38 non-USD listings = local close × the month-end exchange rate of the same month (5,256 prices, largest relative difference 5.4e-07); USD listings unchanged; for SAP.DE the monthly log return in USD = local return + FX return over the whole history (largest difference 2.0e-08).
2e-6
PASS
FXB-02
Price history depth and freshness
The 12-year re-download lost no month of the old history; re-downloaded closes equal the old ones up to the dividend-adjustment factor (median |log ratio| 0.0032); 110 of 127 listings have more than 10 years (needed by the PRIIPs scenarios); only 2 listings have no recent bar (PERF, ROG.SW — no longer quoted by the data source); every listing has a USD series.
exact
PASS
FXB-03
Currency of each listing
ROG.SW — a symbol the listing cache redirects to another exchange — is still valued in Swiss francs (its own listing), not in the currency of the replacement.
exact
PASS
FXB-04
Expected return in USD
5-year CAGR of every non-USD listing = (1 + local CAGR)·(X now / X 5 years ago)^(1/5) − 1 (largest difference 0.000321 pp); USD listings unchanged; the local value is kept; rewriting a row converts a fresh local CAGR once (SAP.DE 10.7795%) and a CAGR already computed in USD is not converted again.
0.01 pp
PASS
FXB-05
Daily volatility in USD
Daily volatility used for the covariance matrix = independent computation on daily closes converted at the daily rate: SAP.DE 36.88%, AAPL 28.95%, NESN.SW 22.15%, VOD.L 29.04%, ALV.DE 21.07%; for the European listings it differs from the local-currency volatility (currency risk included).
0.3 pp
PASS
FXB-06
Frequency check
Daily and monthly USD volatility over the same two years agree in order of magnitude (SAP.DE ratio 1.04, ALV.DE 1.129 — sampling error of 24 monthly returns).
±45%
PASS
FXB-07
Backtest history
The long backtest history (SAP.DE from 2018) = local month-end close × the month-end rate of the same month (largest relative difference 2.0e-07).
1e-6
PASS
Scope limitation. This report covers mathematical correctness of numerical outputs only. It does not constitute a security penetration test, a data quality audit of third-party price feeds (FMP Professional, Polygon), or a regulatory compliance assessment. The tolerance values reflect standard floating-point rounding in API JSON serialisation (2 decimal places for percentages, 4 for ratios). Monte Carlo results are stochastic by design; those tests are marked with wider tolerances and were run at least three times to confirm stability.