GR: Ratio Analysis Command

GR is the Godel Terminal command for graphing the relationship between two securities over time: ratios, spreads, or correlations.

GR Ratio Analysis window for NVDA vs SPY showing the price comparison chart, NVDA/SPY ratio mountain chart, rolling correlation panel, and a regression scatter plot with Beta, Alpha, R², and standard error statistics

How to use GR

Global (default):

GR: opens with AAPL vs. SPY as the default pair.

Godel Terminal command bar showing GR typed with the COMMANDS autocomplete suggesting 'Graph Relationship between two securities over time'

Scoped:

Security Identifier/Ticker Country/Instrument Asset Class GR

Opens with the scoped ticker as the "buy" leg.

Godel Terminal command bar showing NVDA US EQ GR typed with the COMMANDS autocomplete suggesting 'Graph Relationship between two securities over time'

Tickers

At the top of the window:

Use the inline ticker search next to each to swap either leg. Any pair of the same asset class (equity, ETF, FX, index, futures, crypto) can be compared.

Time Period

Dropdown with presets: 1D, 1W, 1M, 3M, 6M, 1Y, and longer windows where data is available.

Panels

Price Comparison Chart

A dual-axis time series with both tickers plotted on their own y-scale. Legend shows the most recent price for each side; highs and lows for the selected period are marked on the chart.

Ratio Chart

A mountain chart of Buy / Sell. Useful for spotting mean-reversion and persistent drifts in the relationship.

Correlation (optional)

Toggle Correlation on to add a rolling-correlation chart below the ratio. Configure the window length (default 120 observations, min 2, max 730) using the inline input + Set button.

Regression (optional)

Toggle Regression on to add a scatter plot of Buy returns vs. Sell returns with an OLS fit. The regression panel provides:

StatMeaning
BetaSlope of Buy returns regressed on Sell returns
Adjusted BetaShrinkage-adjusted beta
AlphaRegression intercept
Explained variance
rPearson correlation
Std Error (α, β)Standard errors of the intercept and slope
T-test / p-valueMost recent significance test

When the dataset is very large, the scatter plot is sampled using an inverse-normal-weighted scheme to preserve tails. A Show Full Data / Show Filtered Data toggle switches between the downsampled view and the full set.

Notes

FAQ

What does GR do?
GR is the Godel Terminal ratio analysis command.
How do I open GR in Godel Terminal?
Type GR in the terminal, or prefix with a ticker (for example, NVDA US EQ GR).
Is GR available on all plans?
Yes, GR is available on every Godel plan.
Does GR work for ETFs, indices, or non-US securities?
Yes. GR works for ETFs, indices, and non-US securities, not just US stocks.

Keep reading

All commands →