Skip to content
Algo Trade Analytics Docs

ticker.renko() - Pine Script Function

Creates a ticker identifier for requesting Renko values.

ticker.renko(symbol, style, param, request_wicks, source) → simple string
NameTypeDescription
symbolsimple stringSymbol ticker identifier.

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

//@version=6
indicator("Renko candles", overlay=false)
renko_tickerid = ticker.renko(syminfo.tickerid, "ATR", 10)[renko_open, renko_high, renko_low, renko_close] = request.security(renko_tickerid, timeframe.period, [open, high, low, close])
plotcandle(renko_open, renko_high, renko_low, renko_close, color = renko_close > renko_open ? color.green : color.red)