Skip to main content
Relative strength on a BTC chart

BTC on 1-hour bars in the 0xArchive Terminal, 2026-10-15.

Open on a chart

Load it on BTC 1h in the terminal, then change its settings or open it in the script editor.
The chart’s market divided by another (ETH by default), rebased to 100 at the first bar they share. Above 100, the chart’s market has done better since then.

How it works

input.market picks the other market, and bars({ market }) reads its bars on the chart’s interval. Each stream reads the other as of the same moment, so the two line up bar for bar.

The script

relative-strength.ts

Next step

See the next example, Trend bars.
Last modified on October 16, 2026