phointellectual2 downloadsDraws a live price-ratio chart (one ticker divided by another) with 200/400/1,000-day regression lines and standard deviation bands, a 14-day RSI panel, and a 200-day z-score, from Yahoo Finance data.
Draw a live price-ratio chart inside any Obsidian note: one ticker's price divided by another's, with 200-, 400-, and 1,000-day regression lines and standard deviation bands, a 14-day RSI panel underneath, and the ratio's 200-day z-score printed on the chart.
Relative strength between two tickers is easier to read as a single ratio line than as two price charts. When the ratio drifts far from its own trend, the regression bands and the z-score give that "stretched" reading a number instead of an eyeball.
Add a code block named ratio naming the two tickers, the one on top first:
```ratio
top: ORCL
bottom: QQQ
```
That draws Oracle divided by the QQQ ETF. Both tickers are always your choice, in every block — any stock, ETF, or index that Yahoo Finance carries.
Options, one per line inside the block:
top: or bottom: is missing, the block shows a short message saying both tickers must be named, with an example, instead of a chart.windows: 200,1000 — draw only the regression windows listed (any of 200, 400, 1,000 days).bands: 1,2 — draw the bands at those standard deviation levels instead of the default.asof: 2025-06-30 — draw the chart as if standing on that date: the visible window, the regressions, the RSI, the z-score, and the header values are all computed from data up to the last trading day on or before it. Useful for postmortems — checking whether the chart would have supported the same decision at the time. Omit it for today's chart.If a ticker is misspelled, or there is no connection and no cached prices yet, the block shows a plain error message instead of a chart.
Under Settings → Community plugins → Price Ratio Chart:
2 draws just the two-standard-deviation bands; 1,2 draws both.This plugin uses the network for one thing only: downloading daily closing prices from Yahoo Finance (query1.finance.yahoo.com) when a note containing a ratio block is opened and the cached prices are older than the cache setting. Downloaded prices are cached in the plugin's own data file inside your vault, so notes still open offline and Yahoo is not asked again until the cache expires.
The plugin has no accounts, no telemetry, and no analytics. It sends nothing anywhere except the ticker symbols in the price request itself. It does not read or modify your notes; it only renders the chart inside them.
From the community directory (once listed): Settings → Community plugins → turn off Restricted Mode if prompted → Browse → search for "Price Ratio Chart" → Install → Enable.
With BRAT (works before any directory listing, and keeps the plugin updated from GitHub releases):
owner/repo or the full GitHub URL) and click "Add Plugin".Manually: download main.js, manifest.json, and styles.css from the latest GitHub release, put them in a folder named price-ratio-chart inside your vault's .obsidian/plugins/ folder, restart Obsidian, and enable Price Ratio Chart under Settings → Community plugins.
npm install
npm run build
That type-checks the TypeScript and bundles src/main.ts into main.js with esbuild.
MIT. See LICENSE.