Reference
Other symbols and timeframes
Read values from another timeframe or symbol. Never looks ahead.
request.security(symbol, timeframe, expression, gaps=false, lookahead=false)
The value of an expression on another symbol or a higher timeframe (only closed bars, never future data). Call at the top level of the script.
Returns: arg2
| Parameter | Type | Notes |
|---|---|---|
symbol | string | |
timeframe | string | |
expression | any | |
gaps | bool | Default false |
lookahead | bool | Default false |
Education only. Not financial advice. Examples are teaching samples, not trading results.
