@ftshare-lab/dsh-kline 0.0.0-stage → 0.6.10

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.
Files changed (203) hide show
  1. package/CHANGELOG.md +601 -0
  2. package/LICENSE +21 -0
  3. package/PROVENANCE.md +13 -0
  4. package/README.en.md +116 -0
  5. package/README.md +115 -2
  6. package/chart_service.py +687 -0
  7. package/config/basic-symbols.json +570 -0
  8. package/config/dsh-kline.patch.yml +4 -0
  9. package/config/dsh-tool-catalog.json +3875 -0
  10. package/cordis.patch.yml +33 -0
  11. package/core/__init__.py +0 -0
  12. package/core/adjustment.py +16 -0
  13. package/core/calc.py +691 -0
  14. package/core/rows.py +228 -0
  15. package/core/ta_engine.py +99 -0
  16. package/docs/anonymous-market-support.md +33 -0
  17. package/docs/automatic-drawing.md +24 -0
  18. package/docs/chart-functions.md +136 -0
  19. package/docs/drawing-examples.en.md +13 -0
  20. package/docs/drawing-examples.md +13 -0
  21. package/docs/embedding.md +43 -0
  22. package/docs/fixtures/price-pattern-real-v1.json +1 -0
  23. package/docs/free-foreign-daily.md +44 -0
  24. package/docs/guide.en.md +232 -0
  25. package/docs/guide.md +248 -0
  26. package/docs/images/abc-drawing-v0.5.0.jpg +0 -0
  27. package/docs/images/channel-drawing-v0.5.0.jpg +0 -0
  28. package/docs/images/drawing-workbench-v0.5.0.jpg +0 -0
  29. package/docs/images/dsh-kline-tab-workspace.png +0 -0
  30. package/docs/images/dsh-market.png +0 -0
  31. package/docs/images/kline-news.png +0 -0
  32. package/docs/images/kline-range-stats.png +0 -0
  33. package/docs/images/kline-support.png +0 -0
  34. package/docs/images/main-chart-comparison-v0.6.9.png +0 -0
  35. package/docs/images/market-overview-v0.6.9.png +0 -0
  36. package/docs/images/natural-language-abc-wolong-2026-10-27.png +0 -0
  37. package/docs/images/natural-language-descending-channel-wolong-2026-10-27.png +0 -0
  38. package/docs/images/platform-breakout-msft-v0.6.9.png +0 -0
  39. package/docs/npm-release.md +33 -0
  40. package/docs/price-pattern-rules-v1.md +40 -0
  41. package/docs/price-pattern-samples-v1.md +42 -0
  42. package/docs/provider-adaptation.md +73 -0
  43. package/docs/release-acceptance-v0.4.0.md +46 -0
  44. package/docs/release-acceptance-v0.4.1.md +43 -0
  45. package/docs/release-acceptance-v0.5.0.md +40 -0
  46. package/docs/release-acceptance-v0.6.0.md +33 -0
  47. package/docs/release-acceptance-v0.6.1.md +19 -0
  48. package/docs/release-acceptance-v0.6.10.md +21 -0
  49. package/docs/release-acceptance-v0.6.2.md +31 -0
  50. package/docs/release-acceptance-v0.6.3.md +25 -0
  51. package/docs/release-acceptance-v0.6.4.md +24 -0
  52. package/docs/release-acceptance-v0.6.5.md +21 -0
  53. package/docs/release-acceptance-v0.6.6.md +21 -0
  54. package/docs/release-acceptance-v0.6.7.md +18 -0
  55. package/docs/release-acceptance-v0.6.8.md +18 -0
  56. package/docs/release-acceptance-v0.6.9.md +98 -0
  57. package/docs/release-notes-v0.5.0.md +23 -0
  58. package/docs/release-notes-v0.6.0.md +11 -0
  59. package/docs/release-notes-v0.6.1.md +20 -0
  60. package/docs/release-notes-v0.6.10.md +11 -0
  61. package/docs/release-notes-v0.6.2.md +14 -0
  62. package/docs/release-notes-v0.6.3.md +26 -0
  63. package/docs/release-notes-v0.6.4.md +12 -0
  64. package/docs/release-notes-v0.6.5.md +13 -0
  65. package/docs/release-notes-v0.6.6.md +13 -0
  66. package/docs/release-notes-v0.6.7.md +17 -0
  67. package/docs/release-notes-v0.6.8.md +10 -0
  68. package/docs/release-notes-v0.6.9.md +16 -0
  69. package/lib/candle-sequence.js +15 -0
  70. package/lib/chart-adjustment.js +7 -0
  71. package/lib/chart-annotations.js +33 -0
  72. package/lib/chart-applications.js +171 -0
  73. package/lib/chart-context.js +164 -0
  74. package/lib/chart-observation.js +251 -0
  75. package/lib/chart-service-status.js +82 -0
  76. package/lib/chart-source-status.js +39 -0
  77. package/lib/chart-sources.js +354 -0
  78. package/lib/client/BetterSidebarTab.js +70 -0
  79. package/lib/client/ClassicShell.js +254 -0
  80. package/lib/client/KlineContent.js +155 -0
  81. package/lib/client/chart-apply.js +73 -0
  82. package/lib/client/chart-context.js +233 -0
  83. package/lib/client/chart-handoff.js +34 -0
  84. package/lib/client/chart-session-resolver.js +74 -0
  85. package/lib/client/client-context.js +1 -0
  86. package/lib/client/conversation.js +88 -0
  87. package/lib/client/default-tab.js +83 -0
  88. package/lib/client/embed.js +50 -0
  89. package/lib/client/generated-view.js +12983 -0
  90. package/lib/client/horizontal-lines.js +19 -0
  91. package/lib/client/index.js +62 -0
  92. package/lib/client/mode-preferences.js +28 -0
  93. package/lib/client/native-sidebar-contract.js +45 -0
  94. package/lib/client/native-sidebar-register.js +133 -0
  95. package/lib/client/native-sidebar-services.js +1 -0
  96. package/lib/client/native-sidebar.js +96 -0
  97. package/lib/client/sidebar-integration.js +93 -0
  98. package/lib/client/ui-onboarding.js +42 -0
  99. package/lib/client/version.js +14 -0
  100. package/lib/client.js +17382 -0
  101. package/lib/client.js.map +1 -0
  102. package/lib/drawing-feedback.js +284 -0
  103. package/lib/fibonacci.js +18 -0
  104. package/lib/ftshare-settings-bridge.js +159 -0
  105. package/lib/index.js +279 -0
  106. package/lib/labeled-polyline.js +17 -0
  107. package/lib/pattern-groups.js +91 -0
  108. package/lib/price-bands.js +55 -0
  109. package/lib/price-series.js +47 -0
  110. package/lib/price-sticks.js +32 -0
  111. package/lib/types/candle-sequence.d.ts +2 -0
  112. package/lib/types/chart-adjustment.d.ts +2 -0
  113. package/lib/types/chart-annotations.d.ts +4 -0
  114. package/lib/types/chart-applications.d.ts +26 -0
  115. package/lib/types/chart-context.d.ts +14 -0
  116. package/lib/types/chart-observation.d.ts +8 -0
  117. package/lib/types/chart-service-status.d.ts +22 -0
  118. package/lib/types/chart-source-status.d.ts +47 -0
  119. package/lib/types/chart-sources.d.ts +25 -0
  120. package/lib/types/client/BetterSidebarTab.d.ts +12 -0
  121. package/lib/types/client/ClassicShell.d.ts +4 -0
  122. package/lib/types/client/KlineContent.d.ts +37 -0
  123. package/lib/types/client/chart-apply.d.ts +13 -0
  124. package/lib/types/client/chart-context.d.ts +23 -0
  125. package/lib/types/client/chart-handoff.d.ts +5 -0
  126. package/lib/types/client/chart-session-resolver.d.ts +2 -0
  127. package/lib/types/client/client-context.d.ts +14 -0
  128. package/lib/types/client/conversation.d.ts +43 -0
  129. package/lib/types/client/default-tab.d.ts +3 -0
  130. package/lib/types/client/embed.d.ts +37 -0
  131. package/lib/types/client/generated-view.d.ts +2 -0
  132. package/lib/types/client/horizontal-lines.d.ts +1 -0
  133. package/lib/types/client/index.d.ts +4 -0
  134. package/lib/types/client/mode-preferences.d.ts +13 -0
  135. package/lib/types/client/native-sidebar-contract.d.ts +52 -0
  136. package/lib/types/client/native-sidebar-register.d.ts +46 -0
  137. package/lib/types/client/native-sidebar-services.d.ts +45 -0
  138. package/lib/types/client/native-sidebar.d.ts +47 -0
  139. package/lib/types/client/sidebar-integration.d.ts +12 -0
  140. package/lib/types/client/ui-onboarding.d.ts +6 -0
  141. package/lib/types/client/version.d.ts +1 -0
  142. package/lib/types/drawing-feedback.d.ts +5 -0
  143. package/lib/types/fibonacci.d.ts +5 -0
  144. package/lib/types/ftshare-settings-bridge.d.ts +50 -0
  145. package/lib/types/index.d.ts +26 -0
  146. package/lib/types/labeled-polyline.d.ts +11 -0
  147. package/lib/types/pattern-groups.d.ts +2 -0
  148. package/lib/types/price-bands.d.ts +3 -0
  149. package/lib/types/price-series.d.ts +5 -0
  150. package/lib/types/price-sticks.d.ts +3 -0
  151. package/package.json +153 -4
  152. package/requirements.txt +6 -0
  153. package/screenshots.json +11 -0
  154. package/scripts/bootstrap.sh +5 -0
  155. package/scripts/dsh-bootstrap.mjs +179 -0
  156. package/scripts/dsh-mcp-plugin.mjs +27 -0
  157. package/scripts/run-dsh-kline.mjs +658 -0
  158. package/scripts/run-dsh-kline.sh +5 -0
  159. package/server.py +1755 -0
  160. package/tools/__init__.py +0 -0
  161. package/tools/annotations.py +119 -0
  162. package/tools/automatic_analysis.py +158 -0
  163. package/tools/baostock_source.py +176 -0
  164. package/tools/calc.py +39 -0
  165. package/tools/channel_candidates.py +260 -0
  166. package/tools/channel_preview.py +82 -0
  167. package/tools/channels.py +104 -0
  168. package/tools/chart_applications.py +204 -0
  169. package/tools/chart_context.py +186 -0
  170. package/tools/chart_edits.py +363 -0
  171. package/tools/chart_functions.py +451 -0
  172. package/tools/chart_indicators.py +65 -0
  173. package/tools/chart_measurements.py +84 -0
  174. package/tools/chart_source_status.py +32 -0
  175. package/tools/chart_sources.py +31 -0
  176. package/tools/closed_daily.py +68 -0
  177. package/tools/draw.py +410 -0
  178. package/tools/drawing_feedback.py +45 -0
  179. package/tools/drawing_interaction.py +117 -0
  180. package/tools/drawing_verification.py +141 -0
  181. package/tools/fetch.py +4680 -0
  182. package/tools/fibonacci.py +83 -0
  183. package/tools/foreign_daily.py +185 -0
  184. package/tools/free_sources.py +483 -0
  185. package/tools/lines.py +91 -0
  186. package/tools/nine_count.py +66 -0
  187. package/tools/pattern_groups.py +103 -0
  188. package/tools/pivots.py +60 -0
  189. package/tools/polylines.py +131 -0
  190. package/tools/price_bands.py +165 -0
  191. package/tools/price_patterns.py +311 -0
  192. package/tools/price_series.py +162 -0
  193. package/tools/price_sticks.py +114 -0
  194. package/tools/range_candidates.py +170 -0
  195. package/tools/recent_drawing_candidates.py +123 -0
  196. package/tools/rectangles.py +76 -0
  197. package/tools/regression_channels.py +87 -0
  198. package/tools/ta_functions.py +228 -0
  199. package/tools/trend_lines.py +106 -0
  200. package/tools/watchlist.py +149 -0
  201. package/view/ft-logo.jpg +0 -0
  202. package/view/kline.html +12436 -0
  203. package/view/vendor/klinecharts.min.js +7 -0
package/README.en.md ADDED
@@ -0,0 +1,116 @@
1
+ # FT K-Line · 非凸 K 线助手
2
+
3
+ Explore markets, analyze price action, and draw directly on charts through **DeepSeek Harness** or **Codex**.
4
+
5
+ [简体中文](README.md) · English
6
+
7
+ [![Cross-platform tests](https://github.com/FTShare-Lab/dsh_kline/actions/workflows/install.yml/badge.svg?branch=main)](https://github.com/FTShare-Lab/dsh_kline/actions/workflows/install.yml) [![Release](https://img.shields.io/github/v/release/FTShare-Lab/dsh_kline?label=Release)](https://github.com/FTShare-Lab/dsh_kline/releases) [![MIT](https://img.shields.io/github/license/FTShare-Lab/dsh_kline)](LICENSE)
8
+
9
+ [Explore](#explore) · [Install](#install) · [Get started](#get-started) · [Data and scope](#data-and-scope) · [Documentation](#documentation)
10
+
11
+ > This page describes **v0.6.10**. Published packages are listed in [Releases](https://github.com/FTShare-Lab/dsh_kline/releases); see the [npm guide](docs/npm-release.md) for publication and installation details.
12
+
13
+ ## Explore
14
+
15
+ ### Compare performance on the main chart
16
+
17
+ Overlay stocks, indices, or ETFs as background lines while retaining the main symbol's candles and indicators. Search for symbols or choose an index shortcut; hide or remove each comparison independently.
18
+
19
+ [![Shanghai Composite candles with CSI 300 and ChiNext overlays](docs/images/main-chart-comparison-v0.6.9.png)](docs/images/main-chart-comparison-v0.6.9.png)
20
+
21
+ *Shanghai Composite daily candles with CSI 300 and ChiNext. Lines are normalized to the shared baseline shown in the legend to compare cumulative returns, rather than raw prices. Comparison lines have no additional indicators. Click an image for the original.*
22
+
23
+ ### Start with the wider market
24
+
25
+ Browse major mainland China, Hong Kong, and US indices alongside sector rankings and unusual-trading lists. Open a symbol to continue with its chart, news, and company information.
26
+
27
+ [![Major indices, sector rankings, and unusual-trading lists](docs/images/market-overview-v0.6.9.png)](docs/images/market-overview-v0.6.9.png)
28
+
29
+ ### Draw automatically or choose your own anchors
30
+
31
+ **Draw** brings together horizontal levels, trend lines, parallel channels, range boxes, Fibonacci retracements, ABC annotations, double tops/bottoms, head-and-shoulders patterns, platform breakout/failure states, and basic nine-counts. Draw the latest eligible result, choose another candidate, or pick anchors manually. Closing the controls preserves drawings; **Clear** removes them.
32
+
33
+ [![MSFT daily platform box with its upward breakout confirmation](docs/images/platform-breakout-msft-v0.6.9.png)](docs/images/platform-breakout-msft-v0.6.9.png)
34
+
35
+ *MSFT daily chart: the platform spans August 28–September 25, with an upward breakout confirmed on October 6. Subsequent candles do not expand the frozen box. This is a rule-based finding, not a return forecast.*
36
+
37
+ These are actual **DSH Web captures from November 11, 2026**, saved as lossless PNGs at native Retina resolution. Prices are snapshots. Codex Desktop shares the calculations and displays charts in an App card; appearance depends on the host.
38
+
39
+ | Capability | What you can do |
40
+ | --- | --- |
41
+ | Indicators | SMA, EMA, VOL, MACD, KDJ, RSI, BOLL, ATR, VWAP |
42
+ | Natural-language drawing | Create, edit, recolor, rename, or delete specific drawings on the same chart as the workbench |
43
+ | Levels and review | Analyze support/resistance, add custom levels, review interval returns and drawdown |
44
+ | Market research | Indices, sectors, news, company information, unusual trading; subject to coverage and permissions |
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 |
47
+
48
+ ## Install
49
+
50
+ Supports macOS, Linux, and native Windows. First launch downloads dependencies and may take several minutes.
51
+
52
+ ### DeepSeek Harness
53
+
54
+ Install a working DSH Web host and **Python 3.11+**, then find `dsh_kline` in the plugin marketplace or run:
55
+
56
+ ```bash
57
+ dsh plugin --profile web add github:FTShare-Lab/dsh_kline
58
+ ```
59
+
60
+ Enable it, then click **K** on the right or request analysis in chat. Better Sidebar is optional; the regular sidebar works without it.
61
+
62
+ ### Codex
63
+
64
+ Install a plugin-capable Codex, Git, **Node.js 22.19+**, and **Python 3.11+**:
65
+
66
+ ```bash
67
+ codex plugin marketplace add FTShare-Lab/dsh_kline --ref main
68
+ codex plugin add ft-kline@ftshare
69
+ ```
70
+
71
+ Reopen Codex and ask “Open China Merchants Bank's daily chart.” FTShare is this project's public GitHub plugin source; it is not listed in the official public plugin directory.
72
+
73
+ | Host | Interactive chart and manual drawing | Chat-driven drawing | Quotes and structured analysis |
74
+ | --- | --- | --- | --- |
75
+ | DSH Web | Yes | Yes | Yes |
76
+ | Codex Desktop | Inside an App card | Yes | Yes |
77
+ | Codex CLI | Unavailable | No chart writes | Yes |
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.
93
+
94
+ **Levels** analyzes support/resistance; **Compare** adds background lines. Controls that do not fit move into the row's overflow menu. Closing a panel does not delete drawings. See [chat-driven drawing examples](docs/drawing-examples.en.md).
95
+
96
+ ## Data and scope
97
+
98
+ - **Sources:** Configure and test an FTShare key under **Settings → Data source**. Without a key, supported A-share, HK/US daily-history and index fallbacks can be tried; public-source coverage varies. Intraday data, news, and company information depend on the corresponding permissions.
99
+ - **Patterns and nine-counts:** Currently use loaded, closed daily bars for mainland China, HK, and US equities. ABC provides annotations and candidate assistance, not professional Elliott-wave recognition. Basic nine-counts do not include the full DeMARK 13 Countdown.
100
+ - **Drawings and state:** Anchors must match actual loaded candles. Unverified sources, expired results, or ambiguous active views stop edits. Drawing restoration across service restarts, mouse dragging, and undo are not supported.
101
+ - **Host differences:** DSH watchlists persist at user level. Codex charts, watchlists, and App-entered keys remain in connection memory and do not inherit DSH configuration.
102
+
103
+ Quotes may be delayed; technical analysis is for research and learning. See [keyless coverage](docs/anonymous-market-support.md) and the [HK/US daily-data contract](docs/free-foreign-daily.md).
104
+
105
+ ## Documentation
106
+
107
+ | Topic | Guide |
108
+ | --- | --- |
109
+ | Installation, updates, credentials, troubleshooting | [Complete guide](docs/guide.en.md) |
110
+ | Automatic drawing and extensions | [Shared drawing architecture](docs/automatic-drawing.md) |
111
+ | Pattern definitions and real samples | [Rules](docs/price-pattern-rules-v1.md) · [Samples](docs/price-pattern-samples-v1.md) |
112
+ | Technical functions | [Read-only and drawable functions](docs/chart-functions.md) |
113
+ | Host and data integration | [Embedding](docs/embedding.md) · [Provider adaptation](docs/provider-adaptation.md) |
114
+ | Releases and verification | [Changelog](CHANGELOG.md) · [v0.6.9 release notes](docs/release-notes-v0.6.9.md) · [Acceptance](docs/release-acceptance-v0.6.9.md) |
115
+
116
+ [MIT License](LICENSE) · [Frontend provenance](PROVENANCE.md) · [GitHub Releases](https://github.com/FTShare-Lab/dsh_kline/releases)
package/README.md CHANGED
@@ -1,3 +1,116 @@
1
- # Temporary Holding Version
1
+ # 非凸 K 线助手 · FT K-Line
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 在 **DeepSeek Harness** 与 **Codex** 中看行情、分析走势,用自然语言或绘图工具直接操作图表。
4
+
5
+ 简体中文 · [English](README.en.md)
6
+
7
+ [![跨平台测试](https://github.com/FTShare-Lab/dsh_kline/actions/workflows/install.yml/badge.svg?branch=main)](https://github.com/FTShare-Lab/dsh_kline/actions/workflows/install.yml) [![最新发布](https://img.shields.io/github/v/release/FTShare-Lab/dsh_kline?label=Release)](https://github.com/FTShare-Lab/dsh_kline/releases) [![MIT](https://img.shields.io/github/license/FTShare-Lab/dsh_kline)](LICENSE)
8
+
9
+ [功能展示](#功能展示) · [安装](#安装) · [开始使用](#开始使用) · [数据与适用范围](#数据与适用范围) · [文档](#文档)
10
+
11
+ > 本页对应 **v0.6.10**。正式安装包以 [Releases](https://github.com/FTShare-Lab/dsh_kline/releases) 为准;npm 发布与安装说明见[发布指南](docs/npm-release.md)。
12
+
13
+ ## 功能展示
14
+
15
+ ### 在主图中比较走势
16
+
17
+ 把个股、指数或 ETF 的折线叠加在 K 线背景中,保留主标的的蜡烛图与指标。搜索添加、快捷选择常用指数,也可单独隐藏或移除对比线。
18
+
19
+ [![上证指数主图与沪深300、创业板指对比](docs/images/main-chart-comparison-v0.6.9.png)](docs/images/main-chart-comparison-v0.6.9.png)
20
+
21
+ *上证指数日 K,叠加沪深300与创业板指。对比线按图例中的共同基准归一化,比较累计涨跌幅,不直接比较价格,也不计算对比标的的指标。点击图片查看原图。*
22
+
23
+ ### 从大盘进入个股
24
+
25
+ 一页浏览 A/港/美主要指数、板块排行与龙虎榜,点击标的进入图表,继续研究行情、资讯和公司资料。
26
+
27
+ [![大盘概览:主要指数、板块排行与龙虎榜](docs/images/market-overview-v0.6.9.png)](docs/images/market-overview-v0.6.9.png)
28
+
29
+ ### 自动绘图,也支持自己选点
30
+
31
+ 「绘图」统一提供水平线、趋势线、平行通道、平台框、斐波那契、ABC 标注、双顶/底、头肩顶/底、平台突破/失效和基础九转。选择工具后绘制最近合格结果,也可切换候选或手动选点。关闭工具栏保留图形,通过「清除」移除。
32
+
33
+ [![微软日 K 平台箱体与上破确认日](docs/images/platform-breakout-msft-v0.6.9.png)](docs/images/platform-breakout-msft-v0.6.9.png)
34
+
35
+ *微软日 K:08/28—09/25 形成平台,10/06 确认上破。平台边界冻结后不被后续行情扩大。截图展示规则识别结果,不代表收益预测。*
36
+
37
+ 以上为 **2026-11-11 的 DSH Web 实页截图**,保留原生 Retina 像素,以无损 PNG 保存;行情为当时快照。Codex 桌面版以应用卡片展示图表,计算规则共用,外观以实际宿主为准。
38
+
39
+ | 能力 | 使用方式 |
40
+ | --- | --- |
41
+ | 常用指标 | SMA、EMA、VOL、MACD、KDJ、RSI、BOLL、ATR、VWAP |
42
+ | 自然语言绘图 | 创建、修改、改色、改名或删除指定图形;与工具栏操作同一张图 |
43
+ | 点位与复盘 | 支撑/压力分析、自定义价位、区间涨跌与回撤统计 |
44
+ | 市场研究 | 大盘、板块、资讯、公司资料、龙虎榜;受来源和权限限制 |
45
+ | 自选管理 | 收藏、分组、排序、导入、批量打开;DSH 支持跨对话保留 |
46
+ | 技术函数 | 201 个 TA-Lib 函数可查询计算;其中 SMA/EMA/BBANDS 支持受控落图 |
47
+
48
+ ## 安装
49
+
50
+ 支持 macOS、Linux 和原生 Windows。首次启动需要联网准备依赖,可能耗时数分钟。
51
+
52
+ ### DeepSeek Harness
53
+
54
+ 先安装可用的 DSH Web 和 **Python 3.11+**,在插件市场搜索 `dsh_kline`,或执行:
55
+
56
+ ```bash
57
+ dsh plugin --profile web add github:FTShare-Lab/dsh_kline
58
+ ```
59
+
60
+ 启用后点击右侧 **K** 打开工作台,或直接在对话中请求分析。Better Sidebar 是可选增强,普通侧栏不依赖它。
61
+
62
+ ### Codex
63
+
64
+ 先安装支持插件的 Codex、Git、**Node.js 22.19+** 和 **Python 3.11+**:
65
+
66
+ ```bash
67
+ codex plugin marketplace add FTShare-Lab/dsh_kline --ref main
68
+ codex plugin add ft-kline@ftshare
69
+ ```
70
+
71
+ 重新打开 Codex,请求「打开招商银行日 K」。FTShare 是本项目维护的公开 GitHub 插件源,尚未上架官方公共插件目录。
72
+
73
+ | 宿主 | 交互图表与手动绘图 | 自然语言绘图 | 行情与结构化分析 |
74
+ | --- | --- | --- | --- |
75
+ | 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
+ **在工作台操作:** 搜索标的 → 选择范围与周期 → 开启指标 → 在「绘图」选择工具并点击「绘图」。需要自行指定锚点时切换「手动选点」;「设置」调整参数。图形直接展示,无需另行保存。
93
+
94
+ 「点位」分析支撑与压力;「对比」添加背景折线。窄画布放不下的工具进入行末菜单,收起面板不会删除图形。更多对话实例见[自然语言绘图演示](docs/drawing-examples.md)。
95
+
96
+ ## 数据与适用范围
97
+
98
+ - **数据来源:** 默认可接入 FTShare,在「设置 → 数据源」配置并测试 Key。不配置 Key 时可尝试部分 A 股、港美股历史日 K 和指数备用行情,覆盖与可用性取决于公开源;分钟线、新闻和公司资料取决于相应权限。
99
+ - **形态与九转:** 当前仅支持已加载的 A/港/美股已收盘日线。ABC 是折线标注与候选辅助,不自动判定专业波浪;基础九转不包含完整 DeMARK 13 Countdown。
100
+ - **图形与状态:** 绘图使用当前图真实 K 线;数据来源不明、结果过期或活动视图有歧义时停止修改。绘图不保证跨服务重启恢复,鼠标拖拽与撤销暂不支持。
101
+ - **宿主差异:** DSH 自选为用户级持久化数据;Codex 图表、自选和应用内临时 Key 仅保存在当前连接内存中,不继承 DSH 配置。
102
+
103
+ 行情可能延迟,技术分析用于研究和学习。数据口径见[无 Key 支持范围](docs/anonymous-market-support.md)和[港美股免费日线](docs/free-foreign-daily.md)。
104
+
105
+ ## 文档
106
+
107
+ | 主题 | 入口 |
108
+ | --- | --- |
109
+ | 安装、更新、Key、故障排查 | [完整指南](docs/guide.md) |
110
+ | 自动绘图流程与扩展 | [共享绘图骨架](docs/automatic-drawing.md) |
111
+ | 形态定义与真实样本 | [规则](docs/price-pattern-rules-v1.md) · [样本](docs/price-pattern-samples-v1.md) |
112
+ | 技术函数 | [查询与绘图范围](docs/chart-functions.md) |
113
+ | 宿主与数据源接入 | [面板嵌入](docs/embedding.md) · [数据适配](docs/provider-adaptation.md) |
114
+ | 版本与验收 | [更新日志](CHANGELOG.md) · [v0.6.9 发布说明](docs/release-notes-v0.6.9.md) · [验收记录](docs/release-acceptance-v0.6.9.md) |
115
+
116
+ [MIT License](LICENSE) · [前端来源](PROVENANCE.md) · [GitHub Releases](https://github.com/FTShare-Lab/dsh_kline/releases)