Open interest

Open interest is one name, oi.

NameTypeHolds
oiseries floatThe bar’s open interest

It is a float series, so it changes from bar to bar as a price does.

There is no open-interest namespace, and no second open-interest name. Anything you want from open interest, you build from oi.

A script that plots it

indicator("Open interest")
plot(oi)

The plot call sits at the top level of the script. Chart-output functions have to be called there.

Where open interest is available

Which instruments carry open-interest data is settled by the data, not by the language. This manual does not list them; see Data availability by market.

Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.
Upgrade