# Gold & Silver Allocation Dashboard: Design Spec (v2)

**Deliverable:** one self-hosted HTML file. It pulls live prices in the browser and tells you two things each time you open it: how to split this month's metals money between gold and silver, and whether your metals holdings need rebalancing. DSP Netra's fair-value model stays on the page as context, with its back-test results shown openly.
**Prepared:** 17 Nov 2026 (v2 replaces v1 of the same day)
**Evidence:** `Gold-Model-Backtest-1990-2025.xlsx` (DSP model, monthly data and formulas) and Section 5 of this spec (all other tests)

---

## What changed from v1

v1 turned DSP's fair-value gap into buy and trim tiers (−10% / −20% / −30%). The back-test showed those tiers carried no information:
- The model read gold 30% or more below fair value in 315 of 318 months (1999–2025).
- A tiered SIP was identical to a plain SIP.
- Five other ways of turning the model or DSP's checklist into signals did not reliably beat a plain SIP. The best added a median 1.3% over 10 years, based on about one cycle.

v2 takes its actions from the two things that tested better:
- **Rule A, the gold/silver split.** The gold/silver ratio decides how new money is split between the metals.
- **Rule B, rebalancing.** A band around your target decides when to add to metals or trim them.

---

## 1. Decisions

| # | Topic | v1 decision | v2 status |
|---|---|---|---|
| 1 | Deliverable | Single HTML with formulas and live rates; you host it | Unchanged |
| 2 | Currency | USD/oz and INR | Unchanged; INR at the current **15%** customs duty |
| 3 | Platform | No preference | Plain static HTML |
| 4 | Wording | Zones and actions | Unchanged; actions now come from Rules A and B |
| 5 | Model | DSP core, editable inputs | Kept as **context only** |
| 6 | Benchmark | Gap vs DSP headline value | Kept as context |
| 7 | Gold buy tiers −10/−20/−30% | Actions | **Dropped as actions** (no edge); kept as descriptive labels |
| 8 | Silver rule | Ratio 80–85+ and gold criteria | **Replaced by Rule A** (ratio split for new money) |
| 9 | Checks | Momentum, demand, positioning | Momentum and demand kept as context; positioning dropped (untested) |
| 10 | Extra models | None | Unchanged |
| 11 | Role of checks | Conviction | Context only |
| 12 | Sell side | Trim tiers | Trims come from **Rule B's upper band** |
| 13 | Data | Free keyless APIs + manual override | Unchanged |
| 14 | INR method | Spot × USDINR × (1 + duty) | Unchanged; duty 15% |
| 15 | Refresh | On load + button | Unchanged |
| 16 | Alerts | None | Unchanged |
| 17 | Calibration | Fixed tiers + 10-yr gauge | The 10-yr gauge stays in the valuation context panel |
| 18 | History | Since 1990 + back-test | Unchanged; all back-tests shown on the page |
| 19 | Sizing | Target % + cash-reserve tranches | Target % + **rebalance amounts**; tranches dropped |
| 20 | Layout | Dashboard + formulas | Unchanged (sections reworked, Section 7) |

---

## 2. The rules

### Rule A: split new money by the gold/silver ratio

Ratio = gold price ÷ silver price (both USD/oz).

| Ratio | New money (monthly SIP or a rebalance buy) | A rebalance sale |
|---|---|---|
| **85 or higher** | 100% silver | Sell gold first |
| **Between 55 and 85** | 50% gold, 50% silver | Sell both in proportion |
| **55 or lower** | 100% gold | Sell silver first |

**Evidence (Section 5.3):** splitting a monthly SIP this way beat a fixed 50/50 SIP in **90% of 10-year periods**, 1990–2026, with a median gain of +2.4% and a worst result of −2%.

The DSP-aligned 80/60 variant has a higher median (+4.0%) but a worse low (−6%), and beat the fixed split in 82% of periods. Both thresholds are editable. Default: 85/55, the more consistent of the two.

**Not used:** switching all your existing metal between gold and silver. Over the full period it beat holding gold. But across 10-year periods at 80/60 it lost nearly as often as it won (105 wins, 83 losses, 134 periods with no trade), with a worst result of −32% (Section 5.3).

### Rule B: rebalance total metals when they drift outside a band

You set a **target** share of metals in your whole portfolio (DSP's multi-asset example uses 15% gold) and a **band** (default ±5 points).

| Your metals share | Action |
|---|---|
| Below target − band | **Buy** metals back up to the target (split by Rule A) |
| Inside the band | Nothing to do; this month's SIP follows Rule A |
| Above target + band | **Sell** metals back down to the target (Rule A decides which metal) |

**Option:** "Yearly" mode rebalances to the target every January, whatever the drift.

**Evidence (Section 5.4, INR, 2000–2026):**
- Rebalancing in any form beat never rebalancing. The ±5 band beat it in **80% of 10-year periods** (median +4.1%) with smaller drawdowns in 71%.
- Yearly rebalancing did slightly better than the band before costs and taxes. It had higher value in 70% of periods (median +1.5%), and its drawdowns were no larger than the band's in 96%. But it traded **26 times vs 8**.

The band is the default because each sale is a taxable event in India. The band also fires on real moves, which is closest to the "good time to buy" trigger you originally asked for. Switch to yearly if trading costs and tax don't concern you.

### What the DSP model is used for now

DSP's model is context only. The page shows:
- the fair value and gap (with DSP's descriptive zone label)
- where the gap ranks in its own last 10 years
- a short table of why it isn't used for actions (Section 5.1)

---

## 3. Today's reading (17 Nov 2026)

| Item | Value |
|---|---|
| Gold / silver spot | $3,874.25 / $47.425 (gold-api.com, 06:27 UTC) |
| USDINR / EURUSD | 93.93 / 1.1014 (Frankfurter, 16 Nov) |
| INR at 15% duty | Gold ≈ **₹1,34,500 per 10 g**; silver ≈ **₹1,64,700 per kg** |
| Gold/silver ratio | **81.7** |
| Rule A | **50% gold / 50% silver** (between 55 and 85). The 80/60 variant would say 100% silver. |
| Rule B | Depends on your holdings, which you enter in the page; they stay in your browser |
| DSP context | Fair value $4,460, gap **−13.1%** (−14.1% with WGC's latest gold stock). This is higher than **89%** of the model's monthly readings over the last 10 years, so it is expensive against its own history. |

These are rule outputs, not advice.

---

## 4. Formulas

### Prices (live)
```
₹ per 10 g gold  = Pg × USDINR × (10 / 31.1034768) × (1 + d)        d = customs duty, default 15%
₹ per kg silver  = Ps × USDINR × 32.1507466 × (1 + d)
Ratio            = Pg / Ps
```

### Your holdings (entered once, stored only in your browser)
```
V_gold   = grams of gold ÷ 10 × ₹ per 10 g     (or type the ₹ value, e.g. for ETFs)
V_silver = kg of silver × ₹ per kg              (or type the ₹ value)
V_other  = everything else you own, in ₹ (you update it)
Share    = (V_gold + V_silver) ÷ (V_gold + V_silver + V_other)
Total    = V_gold + V_silver + V_other
```

### Rule B (band mode)
```
If Share < T − b:   BUY  = T × Total − (V_gold + V_silver)
If Share > T + b:   SELL = (V_gold + V_silver) − T × Total
Defaults: T = 15% (illustrative, DSP's multi-asset gold weight), b = 5 points
```

### Rule A (split)
```
If Ratio ≥ U:  buys → 100% silver; sales → gold first
If Ratio ≤ D:  buys → 100% gold;   sales → silver first
Otherwise:     buys → 50/50;       sales → in proportion
Defaults: U = 85, D = 55. Applied to your monthly metals SIP and to any Rule B buy or sale.
```

### DSP model (context panel)
```
Gold stock (bn oz)  = tonnes × 32,150.7466 ÷ 1e9      default 225,265 t (DSP, Jun-2026) + 304 t/month; WGC's latest: 224,200 t (end-Q3 2026)
Floor F             = US M2 (USD bn) ÷ gold stock (bn oz)
Add-on A            = 50% × Eurozone M2 (EUR bn) × EURUSD ÷ gold stock (bn oz)
Fair value FV       = F + A
Gap                 = Pg ÷ FV − 1
Silver band         = F ÷ 60  to  FV ÷ 60
10-yr rank          = share of the last 120 monthly gaps below today's gap
```

---

## 5. Evidence

All tests use monthly averages:
- Gold and silver: IMF (London fix) for Jan 1990 – Jun 2025; Yahoo COMEX futures for Jul 2025 – Oct 2026.
- US M2: Federal Reserve. Eurozone M2 and exchange rates: ECB.
- Sensex: Yahoo ^BSESN plus an assumed 1.3%/yr dividend yield.

No costs, taxes or duty changes are modelled. These are past results on about two full cycles, not guarantees.

### 5.1 DSP fair-value model as a buy signal (does not work)

| Rule (monthly SIP; unspent cash earns 0%) | Beat a plain SIP in 10-year periods | Median difference |
|---|---|---|
| Fixed tiers −10/−20/−30% (v1 design) | 0% (identical: it said "buy" every month) | 0% |
| Gap vs US-M2 floor, ranked vs own 10 years | 35% | −4.4% |
| Gap vs DSP fair value, ranked vs own 10 years | 76% (2008–2015 starts only, about one cycle) | +1.3% |
| Buy more below the 10-month average | 17% | −3.7% |
| Buy more above the 10-month average | 11% | −1.0% |
| DSP checklist: buy more after a 20%+ fall from the high | 18% | −0.5% |

Full DSP-model data, formulas and sensitivity checks are in `Gold-Model-Backtest-1990-2025.xlsx`.

### 5.2 Gold/silver ratio: what followed each level (1990 – Oct 2026)

| Ratio | Months | Silver beat gold over the next 12 months | …over the next 3 years |
|---|---|---|---|
| Below 50 | 26 | 4% | 4% |
| 50–60 | 87 | 26% | 20% |
| 60–70 | 92 | 44% | 60% |
| 70–80 | 132 | 46% | 56% |
| 80–85 | 42 | 39% | 86% |
| 85–90 | 43 | 63% | 86% |
| 90+ | 20 | 95% | 100% |

- **Rank correlation** between the ratio and silver's later performance against gold: +0.41 over 12 months, +0.55 over 3 years.
- **Timing is slow and lumpy.** With buy-silver at 80 and back-to-gold at 60, there were only two complete signals in 36 years: Sep 1990 → Dec 1997 (silver beat gold by 63%) and Mar 2016 → Jan 2026 (+54%). After each buy signal the ratio first rose further: to 97.5 in 1991 and 111.9 in 2020.
- **Low readings:** each time the ratio fell to 50 or below (7 times), silver lagged gold over the next 12 months, and over the next 3 years in 6 of 7 cases.
- **Few independent episodes:** the 20 months at 90+ come from four clusters: 1990–93 (10 months), 2019–20 (6), 2022 (1) and 2025 (3).

### 5.3 Using the ratio

| Rule | Result across rolling 10-year periods |
|---|---|
| **Split each month's SIP: 100% silver at 85+, 100% gold at 55−, else 50/50** | Beat a fixed 50/50 SIP in **90%**; median +2.4%; worst −2% |
| Same with 80/60 thresholds | Beat it in 82%; median +4.0%; worst −6% |
| Switch all holdings: to silver at 80, back to gold at 60 | Won 105, no trade 134, lost 83 vs gold-only; worst −32% (full period ×21.6 vs gold ×9.9) |
| Switch all holdings at 85/55 | Won 106, no trade 194, lost 22; worst −22% |

### 5.4 Rebalancing a Sensex + metals portfolio (INR, Jan 2000 – Oct 2026, metals target 15%)

| Approach | Ending multiple | CAGR | Max drawdown | Rebalances |
|---|---|---|---|---|
| Never rebalance | ×21.10 | 12.1% | −44.8% | 0 (metals drifted 10–29%) |
| Yearly, every January | ×24.40 | 12.7% | −42.5% | 26 |
| Band ±3 points | ×22.98 | 12.4% | −44.0% | 21 |
| **Band ±5 points** | ×22.71 | 12.4% | −44.0% | **8** |
| Band ±7.5 points | ×22.48 | 12.3% | −43.3% | 3 |
| Band ±5, metals 50/50 gold/silver | ×23.35 | 12.5% | −45.7% | 10 |
| Band ±5, Rule A directs each trade (metals start 50/50) | ×22.80 | 12.4% | −43.9% | 8 |

**Across 203 rolling 10-year periods, band ±5 compared with:**
- **Never rebalancing:** higher value in 80% of periods (median +4.1%); smaller drawdown in 71%.
- **Yearly rebalancing:** higher value in only 30% (median −1.5%); smaller drawdown in 4%.
- **Band ±3:** higher value in 60% (median +0.9%).
- **Band ±7.5:** higher value in 52% (median +0.1%).

**When the ±5 band fired (gold-only row):** sells in Oct 2000, Jun 2002, Jul 2008, Jan 2009 and Jan 2026; buys in Apr 2004, May 2007 and Jun 2014. The Rule-A-directed row fired on the same dates from 2007 onward.

- **Rule A at rebalancing time** changed little, because there were only 8 trades. Rule A's value is in the monthly split (5.3).

### 5.5 Data checks

- **Formula:** fed DSP's own inputs, the model reproduces all four published fair values exactly ($4,529, $4,514, $4,526, $4,473).
- **Gold and silver prices:** IMF vs Yahoo futures differ by 0.35% (gold) and 0.51% (silver) on average, over 104 months.
- **USD-INR:** the ECB cross rate vs Yahoo INR=X differs by 0.11% on average, over 274 months.
- **Workbook:** Excel and Python agree on every headline number.
- **Consistency with DSP:** my monthly gaps match DSP's published readings: Jul 2026 −10.6% vs DSP −10.7%; Feb 2026 +11.0% vs DSP's 4-Feb +12.1%.

---

## 6. Data sources

**Live (all keyless and browser-callable, tested 17 Nov 2026):**

| Data | Endpoint | Update |
|---|---|---|
| Gold/silver spot | `https://api.gold-api.com/price/XAU`, `/price/XAG` | real time |
| USDINR, EURUSD | `https://api.frankfurter.dev/v1/latest?base=USD&symbols=INR,EUR` (fallback `https://open.er-api.com/v6/latest/USD`) | daily |
| US M2 | `https://api.db.nomics.world/v22/series/FED/H6_H6_M2/M2.M?observations=1` | monthly |
| Eurozone M2 | `https://api.db.nomics.world/v22/series/ECB/BSI/M.U2.Y.V.M20.X.1.U2.2300.Z01.E?observations=1` (DBnomics mirror of the ECB series); fallback `https://data-api.ecb.europa.eu/service/data/BSI/M.U2.Y.V.M20.X.1.U2.2300.Z01.E?lastNObservations=1&format=csvdata&detail=dataonly`. The ECB's own API was intermittent in testing (timeouts and missing CORS headers). | monthly |

**Bundled in the file:** monthly gold, silver, ratio and DSP gap since 1990, for the charts, the ratio table and the 10-yr rank. The page appends the live reading. `update_dashboard_history.py` (same folder) extends the bundle each month. It adds the completed months (gold and silver from COMEX futures averages; M2 and EUR-USD from DBnomics, with the ECB as fallback), fills M2 values that were carried forward, keeps a dated backup, and writes nothing if a download fails or a price looks wrong.

**Back-tests only (not called by the page):** IMF PCPS via DBnomics; Yahoo GC=F, SI=F, ^BSESN, INR=X; ECB EURINR and EURUSD.

Every live value has a manual override and falls back to the last good value saved in your browser.

---

## 7. Page layout

1. **Header:** feed timestamps, Refresh button, data-status badges.
2. **This month's action** (the main card):
   - Rule A split for your monthly SIP, e.g. "₹10,000 → ₹5,000 gold, ₹5,000 silver (ratio 81.7)".
   - Rule B status: "Within band", "Buy ₹X of metals" or "Sell ₹Y of metals", with the gold/silver breakdown.
3. **Your holdings & settings** (stored only in your browser):
   - Gold grams or ₹ value, silver kg or ₹ value, other investments in ₹, monthly metals SIP.
   - Target %, band, mode (band or yearly), U/D thresholds, duty %.
4. **Gold/silver ratio:** live ratio and zone, the history table from 5.2, and a chart since 1990 with the 55 and 85 lines.
5. **Prices:** gold and silver in USD and INR, plus USDINR.
6. **DSP valuation (context):** fair value, gap, 10-yr rank, band chart, and a "why this isn't an action" box (table 5.1).
7. **Market context:** drawdown from the all-time high, price vs its 10-month average, 3-yr CAGR, and demand drivers (manual quarterly entries from the World Gold Council). Labelled "context, not a signal".
8. **Evidence:** tables 5.3–5.5 with their caveats.
9. **Methodology:** every formula with today's numbers, the data sources, and a not-advice disclaimer.

---

## 8. Caveats

- **Past data only.** The ratio rules are calibrated on 1990–2026; in the 1970s the ratio sat at 15–40, so the thresholds could stop working in a new regime.
- **Small samples.** There are few independent cycles, and the rolling windows overlap.
- **Not modelled:**
  - costs and capital-gains tax, which count against frequent trading
  - India's customs-duty changes
  - Sensex dividends, which are assumed rather than measured
- **Different data from Jul 2025.** Prices from then are COMEX futures averages, not the London fix.
- **Spot vs monthly ratio.** The page uses the live spot ratio; the tests used the previous month's average. Expect more flips near 55 and 85 than the tests show.
- **Gold stock.** DSP's figure and WGC's latest differ by about 1%; the page lets you choose.
- **Your choices.** The target allocation and band are yours to set; nothing here is investment advice.
