request.security

Value of an expression on another timeframe and/or symbol. The expression runs on the requested bars (its ta.* calls use those bars) and the script sees the value of the newest requested bar that has closed by the end of the current bar, so there is no look-ahead: a daily value appears once the day has ended. Returns a series, or several for a tuple expression.

request.security(symbol: simple string, timeframe: simple string, expression: any, gaps: const bool = false, lookahead: const bool = false) -> float

Parameters

Example

dailyClose = request.security(syminfo.tickerid, "1D", close)