ticker
函数
heikin_ashi
heikin_ashi(ticker_id: series String): series String创建用于请求平均K线(Heikin Ashi)数据的代码标识符。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
ticker_id | series String | The base ticker id to modify (e.g. syminfo.tickerid). |
返回: series String — A ticker id string usable with request.security.
inherit
inherit(from_ticker_id: series String, ticker_id: series String): series String构建一个继承另一代码标识符所有修饰符的代码标识符。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
from_ticker_id | series String | The ticker id whose modifiers are inherited. | |
ticker_id | series String | The base ticker id supplying the symbol. |
返回: series String — A ticker id string usable with request.security.
kagi
kagi(
ticker_id: series String,
param: series float,
style: series BoxStyle = BoxStyle.Traditional
): series String创建用于请求卡吉图(Kagi)数据的代码标识符。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
ticker_id | series String | The base ticker id (e.g. symbol_info.tickerid). | |
param | series float | Reversal amount (Traditional) or ATR length (ATR). | |
style | series BoxStyle | BoxStyle.Traditional | Box size assignment method. |
返回: series String — A ticker id string usable with request.security.
line_break
line_break(ticker_id: series String, num_lines: series int = 3): series String创建用于请求折线图(Line Break)数据的代码标识符。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
ticker_id | series String | The base ticker id to modify (e.g. symbol_info.tickerid). | |
num_lines | series int | 3 | Number of lines used for break calculation. |
返回: series String — A ticker id string usable with request.security.
modify
modify(
ticker_id: series String,
session: series Session = na,
adjustment: series Adjustment = na,
backadjustment: simple BackAdjustment = na,
settlement_as_close: simple SettlementAsClose = na
): series String覆盖现有代码标识符上的数据修饰符,其余部分保持不变。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
ticker_id | series String | The ticker id to modify. | |
session | series Session | na | Session type. Optional. |
adjustment | series Adjustment | na | Price adjustment. Optional. |
backadjustment | simple BackAdjustment | na | Continuous-futures back-adjustment. Optional. |
settlement_as_close | simple SettlementAsClose | na | Settlement-as-close. Optional. |
返回: series String — A ticker id string usable with request.security.
new
new(
prefix: series String,
ticker: series String,
session: series Session = Session.Regular,
adjustment: series Adjustment = Adjustment.None,
backadjustment: simple BackAdjustment = BackAdjustment.Inherit,
settlement_as_close: simple SettlementAsClose = SettlementAsClose.Inherit
): series String根据前缀和代码名称以及指定的数据修饰符(时段、复权等)构建代码标识符,未指定的修饰符使用默认值。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
prefix | series String | Exchange prefix (e.g. symbol_info.prefix). | |
ticker | series String | Ticker name (e.g. symbol_info.ticker). | |
session | series Session | Session.Regular | Session type. Optional. |
adjustment | series Adjustment | Adjustment.None | Price adjustment. Optional. |
backadjustment | simple BackAdjustment | BackAdjustment.Inherit | Continuous-futures back-adjustment. Optional. |
settlement_as_close | simple SettlementAsClose | SettlementAsClose.Inherit | Settlement-as-close. Optional. |
返回: series String — A ticker id string usable with request.security.
point_figure
point_figure(
ticker_id: series String,
source: series PnfSource,
style: series BoxStyle,
param: series float,
reversal: series int
): series String创建用于请求点数图(Point & Figure)数据的代码标识符。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
ticker_id | series String | The base ticker id (e.g. symbol_info.tickerid). | |
source | series PnfSource | Source used to calculate boxes (Hl / Close). | |
style | series BoxStyle | Box size assignment method. | |
param | series float | ATR length, box size, or percentage, depending on style. | |
reversal | series int | Reversal amount, in boxes. |
返回: series String — A ticker id string usable with request.security.
renko
renko(
ticker_id: series String,
style: series BoxStyle = BoxStyle.Atr,
param: series float = 10,
request_wicks: series bool = false,
source: series RenkoSource = RenkoSource.Close
): series String创建用于请求砖形图(Renko)数据的代码标识符。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
ticker_id | series String | The base ticker id (e.g. symbol_info.tickerid). | |
style | series BoxStyle | BoxStyle.Atr | Box size assignment method (ATR / Traditional / PercentageLtp). |
param | series float | 10 | ATR length, box size, or percentage, depending on style. |
request_wicks | series bool | false | Whether Renko bricks include wick values. |
source | series RenkoSource | RenkoSource.Close | Source used to calculate bricks (Close / OHLC). |
返回: series String — A ticker id string usable with request.security.
standard
standard(ticker_id: series String): series String创建用于请求标准图表数据的代码标识符,不受非标准图表类型修饰符(Heikin Ashi、Renko 等)的影响。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
ticker_id | series String | The base ticker id to modify (e.g. syminfo.tickerid). |
返回: series String — A ticker id string usable with request.security.

