ticker.heikinashi() - Pine Script Function
ticker.heikinashi()
Section titled “ticker.heikinashi()”Overview
Section titled “Overview”Creates a ticker identifier for requesting Heikin Ashi bar values.
Syntax
Section titled “Syntax”ticker.heikinashi(symbol) → 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.heikinashi", overlay=true)heikinashi_close = request.security(ticker.heikinashi(syminfo.tickerid), timeframe.period, close)heikinashi_aapl_60_close = request.security(ticker.heikinashi("AAPL"), "60", close)plot(heikinashi_close)plot(heikinashi_aapl_60_close)