Historical VaR on your own prices

Calculators › Value at Risk › Historical VaR on Your Prices

Price History

Illustrative example: 779 business days of synthetic prices, 04-Dec-2023 to 04-Dec-2026, for Fund A, Fund B, Index. Paste your own below.

DateFund AFund BIndex
04-Dec-2026201.17109.312,688.64
03-Dec-2026203.29109.272,700.13
02-Dec-2026206.39109.142,732.92
…
04-Dec-2023125981,800

What you paste stays in your browser: it is read and calculated on this page, and is not sent or stored.

Positions

SeriesLatest priceValue todayUnits
Fund A201.17 (04-Dec-2026)4,970.9201
Fund B109.31 (04-Dec-2026)18,296.5877
Index2,688.64 (04-Dec-2026)−185.9676

A position's value today, in the prices' currency; it holds that value's worth of units at the latest price. A negative value is a short position; a blank one leaves the series out.

Calculation Settings

Historical simulation: each date of the history gives a scenario, each price's move over the horizon applied to its latest price. All the series are taken in one currency, the prices' own, and the figures are in it. What you paste stays in your browser: it is read and calculated on this page, and is not sent or stored.

Results

Select a figure to see its formula.

Reading the calculator

Blue values are inputs, black values are calculated. Select a figure to see its GIAnalyzer formula.

  • Price history: an illustrative example of synthetic prices to start with. Paste your own from Excel: a Date column and one column of prices or returns per series, with a header row of names, newest or oldest first; or a dates column for each series. Up to ten series and ten thousand dates. Dates may be written as Excel shows them or as Excel date numbers.
  • Sample shares: the closes of the sample shares of one currency, two years of business days to 4 December 2026, with a position of 1,000,000 in each, in that currency. Illustrative sample data, not market prices.
  • Prices or returns: returns become prices, as GIAnalyzer's VaR functions take prices: each series starts at 100 on its oldest date and moves by each later row's return. A return written with a percent sign is read as a percent.
  • Positions: the value today of a position in each series, in the prices' currency. A negative value is a short position. The page shows the latest price of each series and the number of units the value buys at it.
  • Historical or Hybrid: the method, chosen by the tabs.
  • Settings: the confidence level and the horizon in calendar days. Advanced adds the expected shortfall's own confidence level, the percentile method and the dates of the scenarios; the hybrid method adds the decay factor λ.
  • Results: the VaR, the expected shortfall, the value of the positions and the VaR as a percent of it; by position, the stand-alone VaR, the component VaR, the incremental VaR and the marginal VaR; the scenario behind the VaR and how each price moved in it. A loss is negative, as GIAnalyzer signs it.
  • Scenarios lists every scenario, worst first, with each position's P&L. Graphs shows the distribution of the P&L with the VaR and the expected shortfall marked, and the P&L by scenario date.
  • Copy GIAnalyzer tables copies the positions, the latest prices and the history as GIAnalyzer's tables, to paste into a workbook and run the formulas the page shows.

Your data stays with you. What you paste is read and calculated on this page, in your browser. It is not sent anywhere and not stored; reloading the page brings back the example.

How the figures are calculated

  • Historical simulation: each date of the history gives a scenario: each price's relative change from the latest date at least a horizon earlier to that date, applied to its latest price. Each position is revalued in each scenario; its P&L is the change in its value.
  • Hybrid historical simulation: the same scenarios, each weighted by λ raised to its age in days, the weights adding up to one; the VaR is the P&L at which the weights of the worse scenarios reach one less the confidence level.
  • Gaps: a blank, a zero or text in a series is skipped, and the series keeps its previous price on that date, as GIAnalyzer fills a history. The history starts on the latest of the series' first dates.
  • VaR: the percentile of the P&Ls at one less the confidence level. Expected shortfall: the mean P&L of the scenarios worse than the VaR at its own confidence level.
  • Breakdown: a position's stand-alone VaR is the VaR of the position alone; its component VaR its P&L in the VaR scenario, so the components add up to the VaR; its incremental VaR the VaR without it less the VaR; its marginal VaR the change in the VaR for 1% more of the position.

Each series is taken as a share in the prices' own currency, with no FX conversion, so the formulas give the equity VaR functions no FX tables. The Value at Risk methodology describes our models, and the function reference every argument of the historical and hybrid historical VaR functions. For a portfolio of FX, bonds and swaps as well as shares, use the portfolio VaR calculator.