ticker.linebreak() - Pine Script Function
ticker.linebreak()
Section titled “ticker.linebreak()”Overview
Section titled “Overview”Creates a ticker identifier for requesting Line Break values.
Syntax
Section titled “Syntax”ticker.linebreak(symbol, number_of_lines) → simple stringParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| symbol | simple string | Symbol ticker identifier. |
Returns
Section titled “Returns”String value of ticker id, that can be supplied to request.security function.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”//@version=6indicator("ticker.linebreak", overlay=true)linebreak_tickerid = ticker.linebreak(syminfo.tickerid, 3)linebreak_close = request.security(linebreak_tickerid, timeframe.period, close)plot(linebreak_close)