: The data or calculation you want to retrieve from the specified symbol/timeframe (e.g., close , hl2 , or a custom function call).
//@version=6 indicator("HTF MA", overlay=true) htf_ma = request.security(syminfo.tickerid, "1D", ta.sma(close, 20)) plot(htf_ma, color=color.yellow, linewidth=2) pine script v5 request.security function documentation
Instead of calling request.security five times for Open, High, Low, Close, and Volume, call it once: [o, h, l, c] = request.security(syminfo.tickerid, "D", [open, high, low, close]) : The data or calculation you want to
No – it must be at the . But you can wrap it in a function: overlay=true) htf_ma = request.security(syminfo.tickerid