request.security() in Pine Script: Multi-Timeframe Without Surprises

request.security() is a Pine Script function that fetches data from any symbol or timeframe, not just the one on your current chart. You can pull OHLCV values, custom calculations, or entire indicator outputs from another context and display them in your active script.
Ever found yourself on a 1-minute chart needing the daily trend? Or trading SPY but wanting to watch what the VIX is doing at the same time? That's exactly what this function does. I've been using it for years.
Back in February 2024 I built a multi-timeframe strategy on MES futures — request.security() handled the 15-minute vs 1-hour data switching without a single issue. In October 2023, I built an indicator tracking AAPL against the XLK tech sector ETF, both streams on one pane. It works, but you need to know where it doesn't.





