Pine Script V5 Request.security Function Documentation _verified_ -
: v5 allows you to request multiple values at once to save resources: pinescript
request.security(symbol, timeframe, expression, gaps, lookahead) → series Use code with caution. Core Arguments: pine script v5 request.security function documentation
In this example, we're fetching the close price of AAPL on the 1-hour timeframe and plotting it on the current chart. : v5 allows you to request multiple values
//@version=5 indicator("MTF EMA", overlay=true) // Fetching data dailyClose = request.security(syminfo.tickerid, "D", close) dailyEma = request.security(syminfo.tickerid, "D", ta.ema(close, 20)) plot(dailyEma, color=color.yellow, title="Daily 20 EMA") Use code with caution. Avoiding "Repainting" (The Most Common Trap) close) dailyEma = request.security(syminfo.tickerid
✅
plot(get_htf_ma(20))
Build a :