本分类共收录 **18** 个官方知识节点，其中 **18** 个具有正式签名。常用函数优先排列；对象、字段、枚举与说明节点也保留独立页面。

<section class="docs-function-finder" data-function-finder>
  <div class="docs-function-finder__search">
    <label for="function-search-qmt-system-functions">查找函数</label>
    <input id="function-search-qmt-system-functions" type="search" autocomplete="off" placeholder="输入函数名或中文用途，例如：回测、行情、下单" data-function-search>
    <span data-function-count>共 18 项</span>
  </div>
  <nav class="docs-function-finder__groups" aria-label="按用途跳转"><a href="docs/qmt/builtin-python/api-reference/categories/system-functions/#init-初始化函数">init - 初始化函数</a><a href="docs/qmt/builtin-python/api-reference/categories/system-functions/#after-init-初始化后函数">after_init - 初始化后函数</a><a href="docs/qmt/builtin-python/api-reference/categories/system-functions/#handlebar-行情事件函数">handlebar - 行情事件函数</a><a href="docs/qmt/builtin-python/api-reference/categories/system-functions/#contextinfo-schedule-run-设置定时器">ContextInfo.schedule_run - 设置定时器</a><a href="docs/qmt/builtin-python/api-reference/categories/system-functions/#contextinfo-cancel-schedule-run-取消由schedule-run产生的定时任务">ContextInfo.cancel_schedule_run - 取消由schedule_run产生的定时任务</a><a href="docs/qmt/builtin-python/api-reference/categories/system-functions/#contextinfo-run-time-设置定时器">ContextInfo.run_time - 设置定时器</a><a href="docs/qmt/builtin-python/api-reference/categories/system-functions/#stop-停止处理函数">stop - 停止处理函数</a><a href="docs/qmt/builtin-python/api-reference/categories/system-functions/#contextinfo-is-last-bar-是否为最后一根k线">ContextInfo.is_last_bar - 是否为最后一根K线</a><a href="docs/qmt/builtin-python/api-reference/categories/system-functions/#contextinfo-is-new-bar-判定是否为新的-k-线">ContextInfo.is_new_bar - 判定是否为新的 K 线</a><a href="docs/qmt/builtin-python/api-reference/categories/system-functions/#contextinfo-get-stock-name-根据代码获取名称">ContextInfo.get_stock_name - 根据代码获取名称</a><a href="docs/qmt/builtin-python/api-reference/categories/system-functions/#contextinfo-get-open-date-根据代码返回对应股票的上市时间">ContextInfo.get_open_date - 根据代码返回对应股票的上市时间</a><a href="docs/qmt/builtin-python/api-reference/categories/system-functions/#contextinfo-set-output-index-property-设定指标绘制的属性">ContextInfo.set_output_index_property - 设定指标绘制的属性</a><a href="docs/qmt/builtin-python/api-reference/categories/system-functions/#create-sector-创建板块">create_sector - 创建板块</a><a href="docs/qmt/builtin-python/api-reference/categories/system-functions/#create-sector-folder-创建板块目录节点">create_sector_folder - 创建板块目录节点</a><a href="docs/qmt/builtin-python/api-reference/categories/system-functions/#get-sector-list-获取板块目录信息">get_sector_list - 获取板块目录信息</a><a href="docs/qmt/builtin-python/api-reference/categories/system-functions/#reset-sector-stock-list-设置板块成分股">reset_sector_stock_list - 设置板块成分股</a><a href="docs/qmt/builtin-python/api-reference/categories/system-functions/#remove-stock-from-sector-移除板块成分股">remove_stock_from_sector - 移除板块成分股</a><a href="docs/qmt/builtin-python/api-reference/categories/system-functions/#add-stock-to-sector-添加板块成分股">add_stock_to_sector - 添加板块成分股</a></nav>
  <div class="docs-function-finder__common">
    <strong>常用入口</strong>
    <div><a href="docs/qmt/builtin-python/api-reference/init/index.html"><span>初始化函数</span><code>init</code></a><a href="docs/qmt/builtin-python/api-reference/after-init/index.html"><span>初始化后函数</span><code>after_init</code></a><a href="docs/qmt/builtin-python/api-reference/handlebar/index.html"><span>行情事件函数</span><code>handlebar</code></a><a href="docs/qmt/builtin-python/api-reference/contextinfo-schedule-run/index.html"><span>设置定时器</span><code>ContextInfo.schedule_run</code></a><a href="docs/qmt/builtin-python/api-reference/contextinfo-run-time/index.html"><span>设置定时器</span><code>ContextInfo.run_time</code></a><a href="docs/qmt/builtin-python/api-reference/contextinfo-is-last-bar/index.html"><span>是否为最后一根K线</span><code>ContextInfo.is_last_bar</code></a></div>
  </div>
  <p class="docs-function-finder__no-results" data-function-empty hidden>没有匹配结果，请尝试中文用途、函数名或参数关键词。</p>
</section>

## init - 初始化函数

| 用途 | 函数或资料 | 状态 | 适用环境 |
|---|---|---|---|
| 初始化函数 | [`init`](docs/qmt/builtin-python/api-reference/init/index.html) | 常用 | 以详情页为准 |

## after_init - 初始化后函数

| 用途 | 函数或资料 | 状态 | 适用环境 |
|---|---|---|---|
| 初始化后函数 | [`after_init`](docs/qmt/builtin-python/api-reference/after-init/index.html) | 常用 | 以详情页为准 |

## handlebar - 行情事件函数

| 用途 | 函数或资料 | 状态 | 适用环境 |
|---|---|---|---|
| 行情事件函数 | [`handlebar`](docs/qmt/builtin-python/api-reference/handlebar/index.html) | 常用 | 实盘 |

## ContextInfo.schedule_run - 设置定时器

| 用途 | 函数或资料 | 状态 | 适用环境 |
|---|---|---|---|
| 设置定时器 | [`ContextInfo.schedule_run`](docs/qmt/builtin-python/api-reference/contextinfo-schedule-run/index.html) | 常用 | 以详情页为准 |

## ContextInfo.cancel_schedule_run - 取消由schedule_run产生的定时任务

| 用途 | 函数或资料 | 状态 | 适用环境 |
|---|---|---|---|
| 取消由schedule_run产生的定时任务 | [`ContextInfo.cancel_schedule_run`](docs/qmt/builtin-python/api-reference/contextinfo-cancel-schedule-run/index.html) | 函数 | 以详情页为准 |

## ContextInfo.run_time - 设置定时器

| 用途 | 函数或资料 | 状态 | 适用环境 |
|---|---|---|---|
| 设置定时器 | [`ContextInfo.run_time`](docs/qmt/builtin-python/api-reference/contextinfo-run-time/index.html) | 常用 | 以详情页为准 |

## stop - 停止处理函数

| 用途 | 函数或资料 | 状态 | 适用环境 |
|---|---|---|---|
| 停止处理函数 | [`stop`](docs/qmt/builtin-python/api-reference/stop/index.html) | 函数 | 以详情页为准 |

## ContextInfo.is_last_bar - 是否为最后一根K线

| 用途 | 函数或资料 | 状态 | 适用环境 |
|---|---|---|---|
| 是否为最后一根K线 | [`ContextInfo.is_last_bar`](docs/qmt/builtin-python/api-reference/contextinfo-is-last-bar/index.html) | 常用 | 以详情页为准 |

## ContextInfo.is_new_bar - 判定是否为新的 K 线

| 用途 | 函数或资料 | 状态 | 适用环境 |
|---|---|---|---|
| 判定是否为新的 K 线 | [`ContextInfo.is_new_bar`](docs/qmt/builtin-python/api-reference/contextinfo-is-new-bar/index.html) | 函数 | 以详情页为准 |

## ContextInfo.get_stock_name - 根据代码获取名称

| 用途 | 函数或资料 | 状态 | 适用环境 |
|---|---|---|---|
| 根据代码获取名称 | [`ContextInfo.get_stock_name`](docs/qmt/builtin-python/api-reference/contextinfo-get-stock-name/index.html) | 函数 | 以详情页为准 |

## ContextInfo.get_open_date - 根据代码返回对应股票的上市时间

| 用途 | 函数或资料 | 状态 | 适用环境 |
|---|---|---|---|
| 根据代码返回对应股票的上市时间 | [`ContextInfo.get_open_date`](docs/qmt/builtin-python/api-reference/contextinfo-get-open-date/index.html) | 函数 | 以详情页为准 |

## ContextInfo.set_output_index_property - 设定指标绘制的属性

| 用途 | 函数或资料 | 状态 | 适用环境 |
|---|---|---|---|
| 设定指标绘制的属性 | [`ContextInfo.set_output_index_property`](docs/qmt/builtin-python/api-reference/contextinfo-set-output-index-property/index.html) | 函数 | 以详情页为准 |

## create_sector - 创建板块

| 用途 | 函数或资料 | 状态 | 适用环境 |
|---|---|---|---|
| 创建板块 | [`create_sector`](docs/qmt/builtin-python/api-reference/create-sector/index.html) | 函数 | 以详情页为准 |

## create_sector_folder - 创建板块目录节点

| 用途 | 函数或资料 | 状态 | 适用环境 |
|---|---|---|---|
| 创建板块目录节点 | [`create_sector_folder`](docs/qmt/builtin-python/api-reference/create-sector-folder/index.html) | 函数 | 以详情页为准 |

## get_sector_list - 获取板块目录信息

| 用途 | 函数或资料 | 状态 | 适用环境 |
|---|---|---|---|
| 获取板块目录信息 | [`get_sector_list`](docs/qmt/builtin-python/api-reference/get-sector-list/index.html) | 函数 | 以详情页为准 |

## reset_sector_stock_list - 设置板块成分股

| 用途 | 函数或资料 | 状态 | 适用环境 |
|---|---|---|---|
| 设置板块成分股 | [`reset_sector_stock_list`](docs/qmt/builtin-python/api-reference/reset-sector-stock-list/index.html) | 函数 | 以详情页为准 |

## remove_stock_from_sector - 移除板块成分股

| 用途 | 函数或资料 | 状态 | 适用环境 |
|---|---|---|---|
| 移除板块成分股 | [`remove_stock_from_sector`](docs/qmt/builtin-python/api-reference/remove-stock-from-sector/index.html) | 函数 | 以详情页为准 |

## add_stock_to_sector - 添加板块成分股

| 用途 | 函数或资料 | 状态 | 适用环境 |
|---|---|---|---|
| 添加板块成分股 | [`add_stock_to_sector`](docs/qmt/builtin-python/api-reference/add-stock-to-sector/index.html) | 函数 | 以详情页为准 |
