Skip to main content

Can I use data from another symbol or timeframe?

Yes. Use request.security and request.security_lower_tf for other symbols and timeframes, request.instrument for SAHI instruments, and request.pcr, request.oi_change_pcr and request.volume_pcr for options data.

Bars before the first higher-timeframe value is available are na, so guard the early bars of your calculation.