Skip to content
Algo Trade Analytics Docs

ticker.kagi() - Pine Script Function

Creates a ticker identifier for requesting Kagi values.

ticker.kagi(symbol, reversal) → simple string
NameTypeDescription
symbolsimple stringSymbol ticker identifier.

String value of ticker id, that can be supplied to request.security function.

//@version=6
indicator("ticker.kagi", overlay=true)
kagi_tickerid = ticker.kagi(syminfo.tickerid, 3)kagi_close = request.security(kagi_tickerid, timeframe.period, close)
plot(kagi_close)