ticker.renko() - Pine Script Function
ticker.renko()
Section titled “ticker.renko()”Overview
Section titled “Overview”Creates a ticker identifier for requesting Renko values.
Syntax
Section titled “Syntax”ticker.renko(symbol, style, param, request_wicks, source) → 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("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)