Skip to main content
A script reads the bars of the chart it runs on, and nothing else. This page lists what is there and how a script finds out that an instrument lacks some of it.

What a script can read

The bars at the chart’s interval (open, high, low, close, volume), the syminfo and interval namespaces, open interest (oi) and the orderflow series.

What a script cannot read

There is no request for another instrument or another interval: no request namespace exists, and request.security(...) is refused with No variable with name request found. A script cannot read a second symbol’s price, nor the same symbol at a higher interval. timeframe.* does not exist either. Nothing in the language or the compiler states which markets carry open-interest or footprint data, so the manual does not either.

When an instrument lacks the data

Write for both cases and the same script runs on every instrument: