@ftshare-lab/dsh-kline 0.6.10 → 0.6.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.en.md +110 -55
- package/README.md +107 -52
- package/config/dsh-tool-catalog.json +1 -1
- package/docs/embedding.md +34 -0
- package/docs/guide.en.md +1 -1
- package/docs/guide.md +2 -2
- package/docs/npm-release.md +6 -6
- package/docs/release-acceptance-v0.6.11.md +21 -0
- package/docs/release-notes-v0.6.11.md +16 -0
- package/lib/client/PanelHost.js +46 -0
- package/lib/client/generated-view.js +2 -2
- package/lib/client/host-options.js +41 -0
- package/lib/client/host-panels.js +111 -0
- package/lib/client/index.js +19 -4
- package/lib/client/mode-preferences.js +21 -1
- package/lib/client/native-sidebar.js +3 -1
- package/lib/client/ui-onboarding.js +7 -1
- package/lib/client.js +207 -8
- package/lib/client.js.map +1 -1
- package/lib/types/client/PanelHost.d.ts +25 -0
- package/lib/types/client/client-context.d.ts +2 -0
- package/lib/types/client/generated-view.d.ts +1 -1
- package/lib/types/client/host-options.d.ts +38 -0
- package/lib/types/client/host-panels.d.ts +55 -0
- package/lib/types/client/mode-preferences.d.ts +13 -1
- package/lib/types/client/ui-onboarding.d.ts +2 -1
- package/package.json +7 -5
- package/screenshots.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
本项目遵循 [Semantic Versioning](https://semver.org/lang/zh-CN/)。
|
|
4
4
|
|
|
5
|
+
## 未发布
|
|
6
|
+
|
|
7
|
+
## 0.6.11 - 2026-11-13
|
|
8
|
+
|
|
9
|
+
- README 在 npm 版本徽章旁显示自动更新的近一个月下载量;中英文与公开插件目录同步。
|
|
10
|
+
- 新增可选宿主面板挂载与界面偏好契约:宿主可复用图表、联动标的选择,并按需关闭浮动入口和首启提示;独立安装保留默认行为。
|
|
11
|
+
- 修复宿主面板重复挂载与清理的归属:每次挂载独立释放,旧清理函数不会误删新图表;支持槽位服务重连,并补充生命周期回归测试。
|
|
12
|
+
- 重写中英文 README:在首页列明十二类绘图及自动/手动操作,恢复最近的 ABC 与下降通道实测,保留高清大盘、主图对比和箱体突破展示。
|
|
13
|
+
- 补充 npm 安装入口;市场截图清单优先展示 ABC、通道与高清形态实例。
|
|
14
|
+
|
|
5
15
|
## 0.6.10 - 2026-11-11
|
|
6
16
|
|
|
7
17
|
- 修复 DSH 0.2 工具返回成功但原生 K 线标签不自动打开:兼容宿主的独立 `role: tool` 结果消息,保留旧版结果格式与调用归属校验。
|
package/README.en.md
CHANGED
|
@@ -1,49 +1,109 @@
|
|
|
1
1
|
# FT K-Line · 非凸 K 线助手
|
|
2
2
|
|
|
3
|
-
Explore
|
|
3
|
+
Explore market data in **DeepSeek Harness** and **Codex**. Analyze, draw, and revise charts through natural language, or pick anchors on the chart yourself.
|
|
4
4
|
|
|
5
5
|
[简体中文](README.md) · English
|
|
6
6
|
|
|
7
|
-
[](https://github.com/FTShare-Lab/dsh_kline/actions/workflows/install.yml) [](https://github.com/FTShare-Lab/dsh_kline/actions/workflows/install.yml) [](https://www.npmjs.com/package/@ftshare-lab/dsh-kline) [](https://www.npmjs.com/package/@ftshare-lab/dsh-kline) [](https://github.com/FTShare-Lab/dsh_kline/releases) [](LICENSE)
|
|
8
8
|
|
|
9
|
-
[
|
|
9
|
+
[Drawing tools](#supported-drawing-tools) · [ABC and channel examples](#natural-language-drawing-in-action) · [Drawing workbench](#drawing-workbench-and-price-patterns) · [Market and comparison](#market-overview-and-chart-comparison) · [Install](#install) · [Documentation](#documentation)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Current release: **v0.6.11**. npm package: **`@ftshare-lab/dsh-kline`**. Drawings appear directly and remain when the controls are closed. Switch candidates, continue editing, or clear them yourself.
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## Supported drawing tools
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Chat and the chart panel use the same drawing capabilities. Automatic drawing uses the **latest closed daily bars already loaded in the current chart** and selects the newest qualifying candidate by default. You can also choose a candidate or specify dates and prices.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
| Drawing tool | Automatic drawing | Manual anchors and natural-language control |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| **Horizontal line** | Find recent high/low pivot price candidates | Specify a price or select a candle; use it as support, resistance, or a custom level |
|
|
20
|
+
| **Trend line** | Find a qualifying recent two-anchor move | Specify two times and prices; create or adjust the segment |
|
|
21
|
+
| **Parallel channel** | Find recent channel candidates | Select three anchors; adjust boundaries and the optional midpoint |
|
|
22
|
+
| **Range box** | Find recent ranges meeting boundary-contact and drift rules | Select the interval and upper/lower boundaries; edit the name, color, and fill |
|
|
23
|
+
| **Fibonacci retracement** | Find anchors from recent swings | Specify endpoints and ratios; edit or remove the group together |
|
|
24
|
+
| **ABC swing / wave labels** | Find 0/A/B/C swing candidates meeting geometric rules | Pick anchors or have the host verify them before drawing; revise a named point |
|
|
25
|
+
| **Double top** | Identify the structure and its subsequent state | Supply structural anchors, subject to the same recognition rules |
|
|
26
|
+
| **Double bottom** | Identify the structure and its subsequent state | Supply structural anchors, subject to the same recognition rules |
|
|
27
|
+
| **Head and shoulders top** | Identify shoulders, head, and neckline | Supply five structural anchors and validate the pattern |
|
|
28
|
+
| **Head and shoulders bottom** | Identify the inverse structure and neckline | Supply five structural anchors and validate the pattern |
|
|
29
|
+
| **Platform breakout / failure** | Freeze range boundaries and mark pending, confirmed, or failed breakouts | Use a range box for a manually chosen interval; states come from price analysis |
|
|
30
|
+
| **Nine Count** | Display upward/downward 1–9 counts and update with chart data | Counts are calculated from prices; adjust the display range and style |
|
|
18
31
|
|
|
19
|
-
|
|
32
|
+
**ABC candidates and labels are not a complete Elliott-wave recognizer.** Price patterns and Nine Count currently support closed daily bars for A-share, Hong Kong, and US stocks. When no candidate qualifies, the tool explains that instead of forcing a drawing.
|
|
20
33
|
|
|
21
|
-
|
|
34
|
+
### Indicators and additional annotations
|
|
22
35
|
|
|
23
|
-
|
|
36
|
+
- **Indicator panel:** SMA, EMA, VOL, MACD, KDJ, RSI, BOLL, ATR, and VWAP. Selected SMA/EMA/BOLL results can also be added as independent objects through the host.
|
|
37
|
+
- **Chat-driven annotations:** text, numbers, arrows, diamonds, and labeled polylines. Continue editing by object name or named point.
|
|
38
|
+
- **Advanced tool interfaces:** conditional price series, price bands, and conditional sticks. See [function and drawing coverage](docs/chart-functions.md) for inputs, display behavior, and limits.
|
|
39
|
+
- **Object management:** create, rename, recolor, update anchors, and delete; multiple objects can coexist on one chart. The 201 TA-Lib functions support queries and calculations; only implemented drawing and indicator families can be put on the chart.
|
|
24
40
|
|
|
25
|
-
|
|
41
|
+
## Natural-language drawing in action
|
|
26
42
|
|
|
27
|
-
|
|
43
|
+
### Verify an ABC candidate, then draw its anchors
|
|
28
44
|
|
|
29
|
-
|
|
45
|
+
DeepSeek checks Wolong Electric's four 0/A/B/C anchors against daily candles before drawing through the plugin. The full capture preserves both the conversation and the visible result.
|
|
30
46
|
|
|
31
|
-
|
|
47
|
+
[](docs/images/natural-language-abc-wolong-2026-10-27.png)
|
|
32
48
|
|
|
33
|
-
|
|
49
|
+
### Continue by adding a descending channel
|
|
34
50
|
|
|
35
|
-
|
|
51
|
+
A follow-up request adds parallel channel boundaries after the host checks their anchors. The existing ABC labels remain on the same chart.
|
|
36
52
|
|
|
37
|
-
|
|
53
|
+
[](docs/images/natural-language-descending-channel-wolong-2026-10-27.png)
|
|
38
54
|
|
|
39
|
-
|
|
55
|
+
The two full captures above are from October 27, 2026 and retain the conversation and interface from that session. Click an image for its original resolution; current drawing controls are described below.
|
|
56
|
+
|
|
57
|
+
Example requests:
|
|
58
|
+
|
|
59
|
+
```text
|
|
60
|
+
Open Wolong Electric's daily chart. Verify a recent ABC swing candidate and draw it if it qualifies.
|
|
61
|
+
Add a descending channel to the same chart, keeping the ABC labels.
|
|
62
|
+
Draw the newest qualifying double bottom and explain its current state.
|
|
63
|
+
Show Nine Count for the latest 30 closed daily bars.
|
|
64
|
+
Make “Key support” blue and move it to 30.8.
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
An analysis request returns analysis. An explicit drawing request puts the result on the chart. Specified anchors and candidate choices take priority.
|
|
68
|
+
|
|
69
|
+
## Drawing workbench and price patterns
|
|
70
|
+
|
|
71
|
+
Open **Draw** → select a tool → **Draw now**. Use **Pick anchors manually** to select your own points and **Settings** to adjust parameters. Drawings appear directly, without a separate save step. Closing or collapsing the controls preserves them; **Clear** is inside the drawing panel.
|
|
72
|
+
|
|
73
|
+
### Range formation, breakout, and failure states
|
|
74
|
+
|
|
75
|
+
MSFT daily example: the range forms from August 28 to September 25, with an upward breakout confirmed on October 6. The chart shows its boundaries and actual confirmation date; subsequent prices do not enlarge the frozen range.
|
|
76
|
+
|
|
77
|
+
[](docs/images/platform-breakout-msft-v0.6.9.png)
|
|
78
|
+
|
|
79
|
+
Double tops/bottoms and head-and-shoulders patterns likewise show necklines and candidate, confirmation, or failure states. Nine Count displays individual counts; it does not include a full DeMARK 13 Countdown. See [pattern rules](docs/price-pattern-rules-v1.md).
|
|
80
|
+
|
|
81
|
+
## Market overview and chart comparison
|
|
82
|
+
|
|
83
|
+
### Put comparison lines in the main candlestick chart
|
|
84
|
+
|
|
85
|
+
Search for stocks, indices, or ETFs and overlay their price-performance lines behind the main chart. The primary symbol retains its candles and indicators. Hide or remove comparison lines independently.
|
|
86
|
+
|
|
87
|
+
[](docs/images/main-chart-comparison-v0.6.9.png)
|
|
88
|
+
|
|
89
|
+
*Lines use a common normalization baseline to compare cumulative percentage changes. They do not compare raw prices across symbols or calculate technical indicators for the comparison lines.*
|
|
90
|
+
|
|
91
|
+
### Market overview
|
|
92
|
+
|
|
93
|
+
Browse major A-share, Hong Kong, and US indices, sector rankings, and unusual-trading lists. Select a symbol to continue in its chart and research panels.
|
|
94
|
+
|
|
95
|
+
[](docs/images/market-overview-v0.6.9.png)
|
|
96
|
+
|
|
97
|
+
The market, comparison, and MSFT platform captures preserve native Retina pixels as lossless PNGs. Prices are snapshots from capture time.
|
|
98
|
+
|
|
99
|
+
## Levels, review, and research
|
|
100
|
+
|
|
101
|
+
| Feature | What it does |
|
|
40
102
|
| --- | --- |
|
|
41
|
-
|
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
|
45
|
-
| Watchlists | Favorites, groups, sorting, importing, batch opening; DSH retains them across conversations |
|
|
46
|
-
| Technical functions | Query and calculate 201 TA-Lib functions; selected SMA/EMA/BBANDS results support guarded drawing |
|
|
103
|
+
| **Support and resistance** | Analyze reference prices in Levels, add custom levels, and draw them on the current chart |
|
|
104
|
+
| **Interval review** | Inspect interval returns and drawdown alongside the chart |
|
|
105
|
+
| **News and company information** | Read symbol news, company information, and research panels, subject to source coverage and permissions |
|
|
106
|
+
| **Watchlists and groups** | Save, group, sort, import, and open symbols in batches; DSH retains these across conversations |
|
|
47
107
|
|
|
48
108
|
## Install
|
|
49
109
|
|
|
@@ -51,13 +111,23 @@ Supports macOS, Linux, and native Windows. First launch downloads dependencies a
|
|
|
51
111
|
|
|
52
112
|
### DeepSeek Harness
|
|
53
113
|
|
|
54
|
-
Install a working DSH Web host and **Python 3.11+**, then
|
|
114
|
+
Install a working DSH Web host and **Python 3.11+**, then run:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
dsh plugin --profile web add @ftshare-lab/dsh-kline@0.6.11
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
GitHub installation is also available:
|
|
55
121
|
|
|
56
122
|
```bash
|
|
57
123
|
dsh plugin --profile web add github:FTShare-Lab/dsh_kline
|
|
58
124
|
```
|
|
59
125
|
|
|
60
|
-
|
|
126
|
+
You can also find `dsh_kline` in the plugin marketplace. Its version and download information depend on catalog synchronization. See the [npm package](https://www.npmjs.com/package/@ftshare-lab/dsh-kline) for the published version; downloads are not unique installations.
|
|
127
|
+
|
|
128
|
+
[](docs/images/dsh-market.png)
|
|
129
|
+
|
|
130
|
+
After enabling it, click **K** or request analysis in chat. Newer DSH versions provide native right-sidebar tabs without Better Sidebar. Choose **UI → Workspace tab**, or continue using the classic K sidebar. v0.6.10's native auto-open was tested on DSH 0.2.1-rc.5, a prerelease host.
|
|
61
131
|
|
|
62
132
|
### Codex
|
|
63
133
|
|
|
@@ -68,49 +138,34 @@ codex plugin marketplace add FTShare-Lab/dsh_kline --ref main
|
|
|
68
138
|
codex plugin add ft-kline@ftshare
|
|
69
139
|
```
|
|
70
140
|
|
|
71
|
-
Reopen Codex and ask “Open China Merchants Bank's daily chart.” FTShare is this project's public GitHub plugin source
|
|
141
|
+
Reopen Codex and ask “Open China Merchants Bank's daily chart.” FTShare is this project's public GitHub plugin source.
|
|
72
142
|
|
|
73
143
|
| Host | Interactive chart and manual drawing | Chat-driven drawing | Quotes and structured analysis |
|
|
74
144
|
| --- | --- | --- | --- |
|
|
75
145
|
| DSH Web | Yes | Yes | Yes |
|
|
76
146
|
| Codex Desktop | Inside an App card | Yes | Yes |
|
|
77
|
-
| Codex CLI |
|
|
78
|
-
|
|
79
|
-
For updates, fixed-release ZIPs, migration, credentials, and troubleshooting, see the [complete guide](docs/guide.en.md).
|
|
80
|
-
|
|
81
|
-
## Get started
|
|
82
|
-
|
|
83
|
-
**Ask in chat:**
|
|
84
|
-
|
|
85
|
-
```text
|
|
86
|
-
Open Tencent's daily chart and analyze its volume, MACD, and RSI over the last month.
|
|
87
|
-
Draw a blue horizontal line at 31.2 called “Key support”.
|
|
88
|
-
Move Key support to 30.8; leave the other drawings unchanged.
|
|
89
|
-
Find and draw the latest eligible double bottom; explain its current state.
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
**Use the workbench:** Search a symbol → choose a range and timeframe → enable indicators → choose a tool under **Draw** and click **Draw now**. Use **Pick anchors manually** for your own points and **Settings** for parameters. Drawings appear directly without a separate save step.
|
|
147
|
+
| Codex CLI | No canvas | No chart writes | Yes |
|
|
93
148
|
|
|
94
|
-
|
|
149
|
+
See the [complete guide](docs/guide.en.md) for pinned archives, updates, migration, and startup troubleshooting.
|
|
95
150
|
|
|
96
151
|
## Data and scope
|
|
97
152
|
|
|
98
|
-
- **Sources:**
|
|
99
|
-
- **
|
|
100
|
-
- **
|
|
101
|
-
- **
|
|
153
|
+
- **Sources:** FTShare can be configured and tested under Settings → Data source. Without a key, selected A-share, Hong Kong, US, and index historical daily sources may be available; coverage depends on the public provider.
|
|
154
|
+
- **Permissions and periods:** minute bars, news, and company information depend on the source and permissions. Automatic drawing, patterns, and Nine Count currently use loaded, closed daily bars for A-share, Hong Kong, and US stocks.
|
|
155
|
+
- **Editing:** drawings use real candles in the current chart. Unknown sources, expired results, or ambiguous active views stop edits with an explanation. Dragging anchors and undo are not currently supported.
|
|
156
|
+
- **Retention:** DSH watchlists and groups persist across conversations. Codex charts, watchlists, and temporary App keys remain in the current connection's memory and do not inherit DSH settings. Drawing recovery across service restarts is not guaranteed.
|
|
102
157
|
|
|
103
|
-
|
|
158
|
+
Market data may be delayed. Patterns and counts support research and review, without guaranteed trading returns. See [key-less coverage](docs/anonymous-market-support.md) and [free Hong Kong/US daily sources](docs/free-foreign-daily.md).
|
|
104
159
|
|
|
105
160
|
## Documentation
|
|
106
161
|
|
|
107
|
-
| Topic |
|
|
162
|
+
| Topic | Link |
|
|
108
163
|
| --- | --- |
|
|
109
|
-
|
|
|
110
|
-
| Automatic drawing and
|
|
164
|
+
| Install, updates, keys, troubleshooting | [Complete guide](docs/guide.en.md) |
|
|
165
|
+
| Automatic drawing and extension | [Shared drawing architecture](docs/automatic-drawing.md) |
|
|
111
166
|
| Pattern definitions and real samples | [Rules](docs/price-pattern-rules-v1.md) · [Samples](docs/price-pattern-samples-v1.md) |
|
|
112
|
-
| Technical functions | [
|
|
113
|
-
| Host and
|
|
114
|
-
| Releases and
|
|
167
|
+
| Technical functions and advanced annotations | [Function and drawing coverage](docs/chart-functions.md) |
|
|
168
|
+
| Host and provider integration | [Embedding](docs/embedding.md) · [Provider adaptation](docs/provider-adaptation.md) |
|
|
169
|
+
| Releases and acceptance | [Changelog](CHANGELOG.md) · [v0.6.11 release notes](docs/release-notes-v0.6.11.md) · [Acceptance](docs/release-acceptance-v0.6.11.md) |
|
|
115
170
|
|
|
116
171
|
[MIT License](LICENSE) · [Frontend provenance](PROVENANCE.md) · [GitHub Releases](https://github.com/FTShare-Lab/dsh_kline/releases)
|
package/README.md
CHANGED
|
@@ -1,49 +1,109 @@
|
|
|
1
1
|
# 非凸 K 线助手 · FT K-Line
|
|
2
2
|
|
|
3
|
-
在 **DeepSeek Harness** 与 **Codex**
|
|
3
|
+
在 **DeepSeek Harness** 与 **Codex** 中查看行情,用自然语言分析、绘图和继续修改,也可以亲自在图上选点。
|
|
4
4
|
|
|
5
5
|
简体中文 · [English](README.en.md)
|
|
6
6
|
|
|
7
|
-
[](https://github.com/FTShare-Lab/dsh_kline/actions/workflows/install.yml) [](https://github.com/FTShare-Lab/dsh_kline/releases) [](LICENSE)
|
|
7
|
+
[](https://github.com/FTShare-Lab/dsh_kline/actions/workflows/install.yml) [](https://www.npmjs.com/package/@ftshare-lab/dsh-kline) [](https://www.npmjs.com/package/@ftshare-lab/dsh-kline) [](https://github.com/FTShare-Lab/dsh_kline/releases) [](LICENSE)
|
|
8
8
|
|
|
9
|
-
[
|
|
9
|
+
[绘图清单](#支持哪些绘图) · [ABC 与通道实测](#自然语言绘图实测) · [绘图工作台](#绘图工作台与价格形态) · [大盘与对比](#大盘与主图对比) · [安装](#安装) · [文档](#文档)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
当前发布版本 **v0.6.11**,npm 包名 **`@ftshare-lab/dsh-kline`**。图形直接显示,关闭工具面板后保留;用户可切换候选、继续修改或清除。
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## 支持哪些绘图
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
对话和图表面板使用同一套绘图能力。自动绘图以**当前已加载的最近已收盘日线**为准,默认显示最新合格候选;也可以指定候选、日期和点位。
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
| 绘图工具 | 自动绘图 | 手动选点与自然语言操作 |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| **水平线** | 查找近期高点/低点作为价位候选 | 指定价格,或点选 K 线;可作为支撑、压力或自定义价位 |
|
|
20
|
+
| **趋势线** | 查找近期符合条件的两点走势 | 指定两个时间与价位,创建或调整线段 |
|
|
21
|
+
| **平行通道** | 查找近期通道候选 | 选择三个锚点,调整边界及中线样式 |
|
|
22
|
+
| **平台框/箱体** | 查找符合边界接触与漂移条件的近期区间 | 框定时间和上下边界,调整名称、颜色及填充 |
|
|
23
|
+
| **斐波那契回撤** | 从近期波段寻找锚点 | 指定波段起终点及回撤比例,整组修改或删除 |
|
|
24
|
+
| **ABC 波段/ABC 浪标注** | 查找符合几何条件的 0/A/B/C 波段候选 | 自选锚点,或让宿主核对后落图;可单独修改指定点 |
|
|
25
|
+
| **双顶** | 识别顶部结构及后续状态 | 手动指定结构锚点,仍需满足识别规则 |
|
|
26
|
+
| **双底** | 识别底部结构及后续状态 | 手动指定结构锚点,仍需满足识别规则 |
|
|
27
|
+
| **头肩顶** | 识别双肩、头部与颈线 | 手动指定五个结构锚点,并校验形态 |
|
|
28
|
+
| **头肩底** | 识别反向头肩结构与颈线 | 手动指定五个结构锚点,并校验形态 |
|
|
29
|
+
| **平台突破/失效** | 冻结平台边界,标示待确认、突破确认及失效状态 | 自选区间使用普通平台框;状态由行情分析得出 |
|
|
30
|
+
| **九转计数** | 逐根显示上涨/下跌 1–9;行情变化后更新 | 由行情自动计数,可调整显示范围与样式 |
|
|
18
31
|
|
|
19
|
-
|
|
32
|
+
**ABC 是波段几何候选与折线标注,不等于完整艾略特波浪识别。** 价格形态与九转当前支持 A/港/美股已收盘日线;找不到合格候选时会说明原因,不强行绘制。
|
|
20
33
|
|
|
21
|
-
|
|
34
|
+
### 指标与更多标注
|
|
22
35
|
|
|
23
|
-
|
|
36
|
+
- **指标面板:** SMA、EMA、VOL、MACD、KDJ、RSI、BOLL、ATR、VWAP。SMA/EMA/BOLL 也支持由宿主计算并添加为独立指标对象。
|
|
37
|
+
- **自然语言标注:** 文字、数值、箭头与菱形图标、带标签折线;支持按名称或指定点继续修改。
|
|
38
|
+
- **进阶工具接口:** 条件价格序列、价带与条件柱线。具体输入、显示范围及限制见[函数与绘图说明](docs/chart-functions.md)。
|
|
39
|
+
- **图形管理:** 创建、改名、改色、更新锚点、删除;同一张图可叠加多个对象。201 个 TA-Lib 函数可查询计算,只有已接入的图形与指标支持落图。
|
|
24
40
|
|
|
25
|
-
|
|
41
|
+
## 自然语言绘图实测
|
|
26
42
|
|
|
27
|
-
|
|
43
|
+
### ABC 候选:核对锚点后画到图上
|
|
44
|
+
|
|
45
|
+
DeepSeek 核对卧龙电驱日 K 的 0/A/B/C 四个锚点,再通过插件绘制。完整截图同时保留了左侧对话与右侧实际图形。
|
|
46
|
+
|
|
47
|
+
[](docs/images/natural-language-abc-wolong-2026-10-27.png)
|
|
48
|
+
|
|
49
|
+
### 在同一张图上继续添加下降通道
|
|
50
|
+
|
|
51
|
+
继续提出绘图请求,宿主核对通道锚点后添加平行边界,原有 ABC 标注保留。
|
|
52
|
+
|
|
53
|
+
[](docs/images/natural-language-descending-channel-wolong-2026-10-27.png)
|
|
54
|
+
|
|
55
|
+
以上两张为 2026-10-27 的完整实测截图,保留当时的对话和界面。点击图片可查看原图;当前绘图操作见下文。
|
|
56
|
+
|
|
57
|
+
可以这样提出需求:
|
|
58
|
+
|
|
59
|
+
```text
|
|
60
|
+
打开卧龙电驱日 K,核对最近一个 ABC 波段候选,符合条件就画出来。
|
|
61
|
+
在同一张图上添加下降通道,保留已有 ABC 标注。
|
|
62
|
+
找最近一个符合规则的双底并画出来,说明现在处于什么状态。
|
|
63
|
+
显示最近 30 根已收盘日线的九转计数。
|
|
64
|
+
把“关键支撑”改成蓝色,并移到 30.8 元。
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
请求“分析”时返回分析;明确请求“画出来”时直接绘制。用户指定点位或候选时,优先使用其选择。
|
|
68
|
+
|
|
69
|
+
## 绘图工作台与价格形态
|
|
70
|
+
|
|
71
|
+
点击 **绘图** → 选择工具 → **绘图**。需要自行指定锚点时使用 **手动选点**,通过 **设置** 调整参数;图形直接展示,无需另行保存。关闭或收起面板不会删除图形,**清除** 位于绘图面板内。
|
|
72
|
+
|
|
73
|
+
### 箱体形成、突破与失效状态
|
|
74
|
+
|
|
75
|
+
微软日 K 实例:08/28—09/25 形成平台,10/06 确认上破。图上展示箱体边界与实际确认日期;后续行情不会扩大已经冻结的箱体。
|
|
76
|
+
|
|
77
|
+
[](docs/images/platform-breakout-msft-v0.6.9.png)
|
|
78
|
+
|
|
79
|
+
双顶/底、头肩顶/底同样显示颈线及候选、确认、失效等状态。九转显示逐根计数,基础九转不包含完整 DeMARK 13 Countdown。定义与适用范围见[形态规则](docs/price-pattern-rules-v1.md)。
|
|
80
|
+
|
|
81
|
+
## 大盘与主图对比
|
|
28
82
|
|
|
29
|
-
###
|
|
83
|
+
### 把对比折线放进 K 线主图
|
|
30
84
|
|
|
31
|
-
|
|
85
|
+
搜索添加个股、指数或 ETF,将其走势作为背景折线叠加在主图中。主标的继续显示蜡烛图与指标,对比线可以分别隐藏或移除。
|
|
32
86
|
|
|
33
|
-
[](docs/images/main-chart-comparison-v0.6.9.png)
|
|
34
88
|
|
|
35
|
-
|
|
89
|
+
*对比线按共同基准归一化,比较累计涨跌幅;不直接比较不同标的的绝对价格,也不为对比线计算技术指标。*
|
|
36
90
|
|
|
37
|
-
|
|
91
|
+
### 大盘概览
|
|
38
92
|
|
|
39
|
-
|
|
93
|
+
浏览 A/港/美主要指数、板块排行和龙虎榜,点击标的进入图表,继续查看行情与资料。
|
|
94
|
+
|
|
95
|
+
[](docs/images/market-overview-v0.6.9.png)
|
|
96
|
+
|
|
97
|
+
大盘、主图对比与微软平台三张新图保留原生 Retina 像素,以无损 PNG 展示。行情是截图时的快照。
|
|
98
|
+
|
|
99
|
+
## 点位、复盘与资讯
|
|
100
|
+
|
|
101
|
+
| 功能 | 可以做什么 |
|
|
40
102
|
| --- | --- |
|
|
41
|
-
|
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
|
45
|
-
| 自选管理 | 收藏、分组、排序、导入、批量打开;DSH 支持跨对话保留 |
|
|
46
|
-
| 技术函数 | 201 个 TA-Lib 函数可查询计算;其中 SMA/EMA/BBANDS 支持受控落图 |
|
|
103
|
+
| **支撑与压力** | 在「点位」中分析参考价位、手动添加价位,并画在当前图上 |
|
|
104
|
+
| **区间复盘** | 查看指定区间的涨跌、回撤等统计,结合图表检查走势 |
|
|
105
|
+
| **资讯与公司资料** | 在行情旁查看新闻、公司资料与研究入口,覆盖取决于来源与权限 |
|
|
106
|
+
| **自选与分组** | 收藏、分组、排序、导入和批量打开标的;DSH 支持跨对话保留 |
|
|
47
107
|
|
|
48
108
|
## 安装
|
|
49
109
|
|
|
@@ -51,13 +111,23 @@
|
|
|
51
111
|
|
|
52
112
|
### DeepSeek Harness
|
|
53
113
|
|
|
54
|
-
先安装可用的 DSH Web 和 **Python 3.11
|
|
114
|
+
先安装可用的 DSH Web 和 **Python 3.11+**,然后执行:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
dsh plugin --profile web add @ftshare-lab/dsh-kline@0.6.11
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
也可使用 GitHub 安装:
|
|
55
121
|
|
|
56
122
|
```bash
|
|
57
123
|
dsh plugin --profile web add github:FTShare-Lab/dsh_kline
|
|
58
124
|
```
|
|
59
125
|
|
|
60
|
-
|
|
126
|
+
插件市场中搜索 `dsh_kline` 也可安装;市场的版本与下载数据随其目录同步。npm 当前版本见[包页面](https://www.npmjs.com/package/@ftshare-lab/dsh-kline),下载量不代表独立安装人数。
|
|
127
|
+
|
|
128
|
+
[](docs/images/dsh-market.png)
|
|
129
|
+
|
|
130
|
+
启用后点击右侧 **K**,或直接在对话中请求分析。新版 DSH 自带原生右侧标签,无需安装 Better Sidebar;在 **UI → 工作台标签** 中切换,经典 K 侧栏仍可使用。v0.6.10 已验证 DSH 0.2.1-rc.5 的原生自动开图;该宿主属于预发布版本。
|
|
61
131
|
|
|
62
132
|
### Codex
|
|
63
133
|
|
|
@@ -68,39 +138,24 @@ codex plugin marketplace add FTShare-Lab/dsh_kline --ref main
|
|
|
68
138
|
codex plugin add ft-kline@ftshare
|
|
69
139
|
```
|
|
70
140
|
|
|
71
|
-
重新打开 Codex,请求「打开招商银行日 K」。FTShare 是本项目维护的公开 GitHub
|
|
141
|
+
重新打开 Codex,请求「打开招商银行日 K」。FTShare 是本项目维护的公开 GitHub 插件源。
|
|
72
142
|
|
|
73
143
|
| 宿主 | 交互图表与手动绘图 | 自然语言绘图 | 行情与结构化分析 |
|
|
74
144
|
| --- | --- | --- | --- |
|
|
75
145
|
| DSH Web | 支持 | 支持 | 支持 |
|
|
76
|
-
| Codex 桌面版 |
|
|
77
|
-
| Codex CLI |
|
|
78
|
-
|
|
79
|
-
更新、固定版本 ZIP、旧安装迁移、Key 配置与启动排障见[完整指南](docs/guide.md)。
|
|
80
|
-
|
|
81
|
-
## 开始使用
|
|
82
|
-
|
|
83
|
-
**用对话提出需求:**
|
|
84
|
-
|
|
85
|
-
```text
|
|
86
|
-
打开腾讯控股日 K,分析最近一个月的成交量、MACD 和 RSI。
|
|
87
|
-
在当前图画一条 31.2 元的蓝色支撑线,命名为“关键支撑”。
|
|
88
|
-
把关键支撑移到 30.8 元,其他图形不动。
|
|
89
|
-
找最近一个符合规则的双底并画出来,说明当前状态。
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
**在工作台操作:** 搜索标的 → 选择范围与周期 → 开启指标 → 在「绘图」选择工具并点击「绘图」。需要自行指定锚点时切换「手动选点」;「设置」调整参数。图形直接展示,无需另行保存。
|
|
146
|
+
| Codex 桌面版 | 在应用卡片内使用 | 支持 | 支持 |
|
|
147
|
+
| Codex CLI | 不提供画布 | 不落图 | 支持 |
|
|
93
148
|
|
|
94
|
-
|
|
149
|
+
固定版本归档、更新、旧安装迁移与启动排障见[完整指南](docs/guide.md)。
|
|
95
150
|
|
|
96
151
|
## 数据与适用范围
|
|
97
152
|
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
153
|
+
- **行情来源:** 可接入 FTShare;在「设置 → 数据源」配置并测试 Key。无 Key 时可尝试部分 A 股、港美股历史日 K 和指数备用行情,覆盖与可用性取决于公开源。
|
|
154
|
+
- **权限与周期:** 分钟线、新闻和公司资料取决于来源与权限。自动绘图、价格形态与九转当前使用已加载的 A/港/美股已收盘日线。
|
|
155
|
+
- **修改边界:** 绘图使用当前图真实 K 线。数据来源不明、结果过期或活动视图存在歧义时,会停止修改并说明原因;鼠标拖拽改点与撤销暂不支持。
|
|
156
|
+
- **保存范围:** DSH 自选与分组跨对话保留。Codex 图表、自选及应用内临时 Key 保存在当前连接内存中,不继承 DSH 配置;绘图不保证跨服务重启恢复。
|
|
102
157
|
|
|
103
|
-
|
|
158
|
+
行情可能延迟。形态与计数用于研究和复盘,不保证交易收益。数据覆盖见[无 Key 支持范围](docs/anonymous-market-support.md)与[港美股免费日线](docs/free-foreign-daily.md)。
|
|
104
159
|
|
|
105
160
|
## 文档
|
|
106
161
|
|
|
@@ -109,8 +164,8 @@ codex plugin add ft-kline@ftshare
|
|
|
109
164
|
| 安装、更新、Key、故障排查 | [完整指南](docs/guide.md) |
|
|
110
165
|
| 自动绘图流程与扩展 | [共享绘图骨架](docs/automatic-drawing.md) |
|
|
111
166
|
| 形态定义与真实样本 | [规则](docs/price-pattern-rules-v1.md) · [样本](docs/price-pattern-samples-v1.md) |
|
|
112
|
-
|
|
|
167
|
+
| 技术函数与进阶标注 | [函数与绘图范围](docs/chart-functions.md) |
|
|
113
168
|
| 宿主与数据源接入 | [面板嵌入](docs/embedding.md) · [数据适配](docs/provider-adaptation.md) |
|
|
114
|
-
| 版本与验收 | [更新日志](CHANGELOG.md) · [v0.6.
|
|
169
|
+
| 版本与验收 | [更新日志](CHANGELOG.md) · [v0.6.11 发布说明](docs/release-notes-v0.6.11.md) · [验收记录](docs/release-acceptance-v0.6.11.md) |
|
|
115
170
|
|
|
116
171
|
[MIT License](LICENSE) · [前端来源](PROVENANCE.md) · [GitHub Releases](https://github.com/FTShare-Lab/dsh_kline/releases)
|
package/docs/embedding.md
CHANGED
|
@@ -37,6 +37,40 @@
|
|
|
37
37
|
2. **调色板**:面板背景与文字颜色由宿主决定,需要一致时显式传 `theme`,不要依赖宿主 DOM 的 CSS 变量被继承进来。
|
|
38
38
|
3. **不弹全屏对话框**:内嵌模式下对话框是面板内的绝对定位元素;宿主不要给面板 `overflow: visible`,否则对话框会盖到面板外。
|
|
39
39
|
|
|
40
|
+
## 可选:宿主面板槽位
|
|
41
|
+
|
|
42
|
+
侧栏和 Tab 之外,宿主也可以在自己已有的有界面板里放一张图表,而插件不需要认识宿主:宿主的客户端半声明一个槽位、渲染时把 `{ symbol, name, onIdentity }` 传给座位,然后调用插件提供的 `klinePanels` 服务填充它。
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
// 宿主客户端半
|
|
46
|
+
ctx.inject(['klinePanels'], scope => {
|
|
47
|
+
const panels = scope.get('klinePanels') as {
|
|
48
|
+
mount(seat: string, options?: { chrome?: 'full' | 'chart' | 'chart-search' }): () => void
|
|
49
|
+
} | undefined
|
|
50
|
+
if (panels === undefined) return () => {}
|
|
51
|
+
return panels.mount('paperTrading.kline') // 宿主自己声明的槽位名
|
|
52
|
+
})
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
- 只有调用 `mount(seat)` 才会往宿主已声明的槽位注册;没有调用的宿主不会注册任何东西,行为与没有本契约的版本一致。
|
|
56
|
+
- 面板体就是侧栏那张图:`chrome` 与上述内嵌契约同义,默认 `chart-search`;`symbol` 跟随宿主选择,`onIdentity` 把图内的选择回写给宿主。
|
|
57
|
+
- 每个座位一个独立会话(`host-panel:<seat>`),同一宿主挂多个面板不会互相串数据。
|
|
58
|
+
- 同一槽位、相同 `chrome` 的重复挂载共用一个图表,各调用方独立释放;最后一个调用方释放后才卸载。清理函数可重复调用,旧清理函数不会移除后来重新挂载的图表。槽位占用期间不接受不同的 `chrome`,需先释放再切换。
|
|
59
|
+
|
|
60
|
+
## 可选:宿主偏好
|
|
61
|
+
|
|
62
|
+
宿主的客户端半还可以提供 `klineHost` 服务,调整图表自绘的界面元素;没有该服务、字段缺失或取值不认识时,一律回到默认行为:
|
|
63
|
+
|
|
64
|
+
| 字段 | 取值 | 作用 |
|
|
65
|
+
| --- | --- | --- |
|
|
66
|
+
| `entry` | `'tab'` | 宿主自己提供图表入口(原生右栏);图表不绘制经典浮动 K,并优先使用宿主的右栏 |
|
|
67
|
+
| `onboarding` | `'off'` | 不显示首启欢迎与一次性界面提示,也不写入相关存储 |
|
|
68
|
+
|
|
69
|
+
```ts
|
|
70
|
+
// 宿主客户端半
|
|
71
|
+
ctx.provide('klineHost', { entry: 'tab', onboarding: 'off' })
|
|
72
|
+
```
|
|
73
|
+
|
|
40
74
|
## 边界
|
|
41
75
|
|
|
42
76
|
- 本节描述的是**同一插件内的挂载契约**,不是跨包的 ESM 入口:客户端的交付形态是 DSH 的浏览器模块(`window.__ModuleLoader__`),第三方面板插件通过宿主槽位获得图表,而不是 `import` 本包。
|
package/docs/guide.en.md
CHANGED
|
@@ -69,7 +69,7 @@ The selected file is reread before provider requests and is never modified or de
|
|
|
69
69
|
|
|
70
70
|
Without a key, supported A-share, HK and US daily-history and index fallbacks remain available. Chart state, results, watchlists and App-entered keys stay in connection memory until the last view closes, disconnect, or 30 idle minutes. User-managed environment/file credentials are not deleted when a chart closes. DSH persistent watchlists are not inherited.
|
|
71
71
|
|
|
72
|
-
For the v0.6.
|
|
72
|
+
For the v0.6.11 candidate, see [release notes](release-notes-v0.6.11.md), [acceptance](release-acceptance-v0.6.11.md), and [npm preparation](npm-release.md).
|
|
73
73
|
|
|
74
74
|
See the [v0.6.8 release notes](release-notes-v0.6.8.md) and [acceptance checklist](release-acceptance-v0.6.8.md) for verification and remaining manual desktop checks.
|
|
75
75
|
|
package/docs/guide.md
CHANGED
|
@@ -73,7 +73,7 @@ Codex 依次使用:
|
|
|
73
73
|
|
|
74
74
|
图表、函数结果、自选和应用内临时 Key 保存在当前连接内存中;最后一个图表视图关闭、连接结束或空闲 30 分钟后清除。Codex 不继承 DSH 的持久化自选。环境变量和显式文件由用户管理,不会随图表关闭而被插件删除。
|
|
75
75
|
|
|
76
|
-
v0.6.
|
|
76
|
+
v0.6.11 候选见[发布说明](release-notes-v0.6.11.md)、[验收记录](release-acceptance-v0.6.11.md)与[npm 发布准备](npm-release.md)。
|
|
77
77
|
|
|
78
78
|
已发布版本内容、自动化验证和桌面验收见 [v0.6.8 发布说明](release-notes-v0.6.8.md) 与 [验收说明](release-acceptance-v0.6.8.md)。
|
|
79
79
|
|
|
@@ -174,7 +174,7 @@ dsh plugin --profile web add github:FTShare-Lab/dsh_kline
|
|
|
174
174
|
二者不选点、不评判专业形态、不代替绘图授权。旧的分类型工具是快照接口,不应绕过当前图应用协议。
|
|
175
175
|
|
|
176
176
|
运行 `pnpm build:sidebar` 和 `pnpm test` 验证构建与全部 Node / Python 回归。
|
|
177
|
-
DSH 绘图范围见[v0.5.0 验收说明](release-acceptance-v0.5.0.md),当前候选安装与 Codex 验证见[v0.6.
|
|
177
|
+
DSH 绘图范围见[v0.5.0 验收说明](release-acceptance-v0.5.0.md),当前候选安装与 Codex 验证见[v0.6.11 验收说明](release-acceptance-v0.6.11.md)。
|
|
178
178
|
首次自动准备依赖需要网络,耗时取决于网络和本机环境。
|
|
179
179
|
|
|
180
180
|
## 行情与数据源
|
package/docs/npm-release.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# npm 发布与安装
|
|
2
2
|
|
|
3
|
-
包名:`@ftshare-lab/dsh-kline@0.6.
|
|
3
|
+
包名:`@ftshare-lab/dsh-kline@0.6.11`,公共 npm registry,公开访问。
|
|
4
4
|
|
|
5
5
|
npm 安装包与 DSH GitHub 发行资产使用同一份已验证的 TGZ,避免发布时重新取到不同内容。`package.json` 已移除 `private` 并设置 `publishConfig.access=public`。上传需在跨平台 CI、发行资产核对及 npm 登录验证后执行。
|
|
6
6
|
|
|
7
7
|
## 发布前
|
|
8
8
|
|
|
9
9
|
1. 推送候选到 `test`,等待九组跨平台 CI 全部通过,完成 DSH/Codex 桌面验收,再合并 `main`。
|
|
10
|
-
2. 创建 `v0.6.
|
|
10
|
+
2. 创建 `v0.6.11` 标签,等待现有发行流水线生成草稿资产;下载 TGZ/ZIP,校验版本、SHA-256 和内容。
|
|
11
11
|
3. 本机使用 `npm login` 登录有 `@ftshare-lab` scope 发布权限的账号;`npm whoami` 核对账号。GitHub 组织权限不等于 npm 组织权限,发布前分别核对。
|
|
12
12
|
4. 对准备上传的 TGZ 执行下面的 dry-run。dry-run 只验证打包与命令,不证明 npm 权限或正式上传会成功。
|
|
13
13
|
|
|
14
14
|
```sh
|
|
15
|
-
npm publish ./release/dsh-kline-v0.6.
|
|
15
|
+
npm publish ./release/dsh-kline-v0.6.11.tgz --access public --dry-run
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## 获准发布后
|
|
@@ -20,11 +20,11 @@ npm publish ./release/dsh-kline-v0.6.10.tgz --access public --dry-run
|
|
|
20
20
|
对核对过的同一份 TGZ 执行;如 npm 要求身份验证,由维护者完成。
|
|
21
21
|
|
|
22
22
|
```sh
|
|
23
|
-
npm publish ./release/dsh-kline-v0.6.
|
|
24
|
-
npm view @ftshare-lab/dsh-kline@0.6.
|
|
23
|
+
npm publish ./release/dsh-kline-v0.6.11.tgz --access public
|
|
24
|
+
npm view @ftshare-lab/dsh-kline@0.6.11 version dist.integrity dist.tarball
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
发布后先用 `npm view @ftshare-lab/dsh-kline@0.6.
|
|
27
|
+
发布后先用 `npm view @ftshare-lab/dsh-kline@0.6.11 version` 确认 registry 可读,再在全新 DSH profile 验证按包名安装,最后复核插件市场目录中的 npm 关联、版本和下载统计。GitHub 安装路径继续保留。
|
|
28
28
|
|
|
29
29
|
## 统计口径
|
|
30
30
|
|