How Project Strata calculates bond analytics, risk metrics, and portfolio values. All formulas are industry-standard and traceable.
Present value calculations for fixed-income securities
Computes the present value of all future cashflows by discounting each at the yield to maturity using periodic compounding.
Finds the yield that equates the discounted cashflows to the target dirty price. Uses bisection with bracket expansion.
Generates the coupon schedule by walking backward from maturity in regular coupon periods.
Discounts cashflows using interpolated zero rates from the yield curve with continuous compounding.
Adds a credit spread to the benchmark UST yield, then prices using periodic compounding.
Duration, convexity, and sensitivity measures
Measures the percentage price sensitivity to a 1% change in yield. Computed using finite difference (1bp bump).
Measures the curvature of the price-yield relationship. Captures second-order effects not explained by duration.
The change in portfolio value for a 1 basis point move in yield. Expressed in currency units.
The change in value for a 1 basis point move in credit spread. Only applicable in Curve+Spread mode.
Projected returns when selling before maturity
Decomposes the expected return from holding a bond to a future horizon into four components: carry, roll-down, price effect, and reinvestment.
The return from coupon income received during the holding period, expressed as a percentage of the initial investment.
The price change from the bond 'aging' along the yield curve, assuming yields remain unchanged.
The price change due to assumed yield (or spread) movements between today and the horizon.
The additional income earned by reinvesting coupon payments at a specified rate until the horizon.
The expected price of the bond at the horizon date, computed by discounting remaining cashflows at the horizon yield.
Standard methods for computing time fractions
Assumes each month has 30 days and each year has 360 days. Standard for US corporate bonds.
Uses actual days, split across year boundaries. Standard for government securities.
Actual days divided by 360. Common for money market instruments.
Actual days divided by 365. Ignores leap years. Used for UK gilts and some Asian markets.
Coupon accrual and clean/dirty price relationship
The portion of the next coupon that has accrued to the seller since the last coupon date.
The dirty (full) price includes accrued interest; the clean (quoted) price excludes it.
Multi-asset calculations and currency conversion
Portfolio-level metrics are computed as market-value weighted averages of individual holdings.
Converts between currencies using triangulation through a base currency (USD).
Estimates P&L impact of rate/spread shocks using duration approximation.
Efficient frontier optimization, Monte Carlo simulation, and risk metrics (VaR, CVaR)
The variance of portfolio returns depends on individual asset variances and their covariances. This is the foundation of Modern Portfolio Theory (Markowitz, 1952).
Finds the set of portfolios offering the highest expected return for each level of risk. We use grid search over weight combinations to trace the frontier.
Shows the risk-return trade-off for portfolios combining the risk-free asset with the tangency (max Sharpe) portfolio.
Estimates the covariance structure from historical returns. We use sample covariance with n-1 denominator (Bessel's correction).
Projects portfolio value using correlated random walks. Each asset follows a log-normal process, which is the standard model in finance (same assumption as Black-Scholes).
Transforms independent random variables into correlated ones using the Cholesky decomposition of the covariance matrix. This is the standard method in finance.
Estimates the maximum loss at a given confidence level. We use the percentile of simulated terminal values (historical simulation approach).
The average loss in the worst α% of scenarios. Unlike VaR, CVaR tells you how bad losses are when they exceed VaR. Required by Basel III for market risk.
For bonds without direct price history, we proxy returns using UST yield changes and duration. This captures rate sensitivity but not credit spread movements.
External data feeds and refresh schedules
US Treasury par yields for benchmark pricing
Foreign exchange rates for currency conversion
Stock prices, fundamentals, and historical data
Project Strata is for educational purposes. Calculations are illustrative and should not be used for actual trading decisions.