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: norequest 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: