ticker.kagi() - Pine Script Function
ticker.kagi()
Section titled “ticker.kagi()”Overview
Section titled “Overview”Creates a ticker identifier for requesting Kagi values.
Syntax
Section titled “Syntax”ticker.kagi(symbol, reversal) → 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.kagi", overlay=true)kagi_tickerid = ticker.kagi(syminfo.tickerid, 3)kagi_close = request.security(kagi_tickerid, timeframe.period, close)plot(kagi_close)