---
title: 'How do I chart a ratio, spread or formula of two markets?'
description: 'Click the symbol name on the chart toolbar and type the formula, such as SPY/GLD or BTC-ETH, then press Enter. You can use + - * /, brackets and plain numbers.'
category: chart
kind: faq
keywords:
  [
    ratio,
    ratio chart,
    spread,
    spread chart,
    formula,
    symbol math,
    divide,
    btc/spx,
    aapl/qqq,
    yield spread,
    plotted against each other,
    custom formula,
    portfolio formula,
    basket,
  ]
updatedAt: '2026-11-27'
popularity: 31
---

# How do I chart a ratio, spread or formula of two markets?

**Type the formula into the symbol search, such as `SPY/GLD`, and press Enter.**

1. Click the symbol name at the left of the chart toolbar.
2. Type the first market, then an operator: `/` (ratio), `-` (spread), `+` (sum) or `*` (product). The market turns into a part of the formula.
3. Type the next market and pick it from the list.
4. Press `Enter`, or click the **Plot ...** row at the top of the list.

You can also paste the whole formula, such as `SPY/GLD`, into super search (`Ctrl/Cmd+K`) and pick **Plot SPY ÷ GLD**.

## Building longer formulas

- Add more markets with more operators: `AAPL+MSFT-QQQ`.
- Type a plain number to scale a market: `BTC*2`.
- Type `(` and `)` to group parts: `(BTC-ETH)*2`.
- Write `BYBIT:ETH` to take a market from one exchange.
- Click a part to change it. `Backspace` steps back one part.

A pair written with its quote, such as `EUR/USD`, is searched as one market, not as a formula.

## Limits

- A formula holds up to 5 markets.
- DEX pools cannot be part of a formula.
- Only the four operators, brackets and numbers work. Functions such as powers or logs do not.
- Formulas with stocks, forex or commodities work as the main chart only, not as a compare overlay.

To draw two markets as separate lines instead, see [compare two markets](/learn/faq/chart/compare-two-markets).
