@dsh-ft/dsh-fft-paper-trading 0.7.1 → 0.7.3

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 (132) hide show
  1. package/README.md +1 -1
  2. package/README.zh.md +1 -1
  3. package/lib/client.js +1 -1
  4. package/package.json +1 -4
  5. package/node_modules/@ftshare-lab/dsh-kline/CHANGELOG.md +0 -611
  6. package/node_modules/@ftshare-lab/dsh-kline/LICENSE +0 -21
  7. package/node_modules/@ftshare-lab/dsh-kline/PROVENANCE.md +0 -13
  8. package/node_modules/@ftshare-lab/dsh-kline/README.en.md +0 -171
  9. package/node_modules/@ftshare-lab/dsh-kline/README.md +0 -171
  10. package/node_modules/@ftshare-lab/dsh-kline/chart_service.py +0 -687
  11. package/node_modules/@ftshare-lab/dsh-kline/config/basic-symbols.json +0 -570
  12. package/node_modules/@ftshare-lab/dsh-kline/config/dsh-kline.patch.yml +0 -4
  13. package/node_modules/@ftshare-lab/dsh-kline/config/dsh-tool-catalog.json +0 -3875
  14. package/node_modules/@ftshare-lab/dsh-kline/cordis.patch.yml +0 -33
  15. package/node_modules/@ftshare-lab/dsh-kline/core/__init__.py +0 -0
  16. package/node_modules/@ftshare-lab/dsh-kline/core/adjustment.py +0 -16
  17. package/node_modules/@ftshare-lab/dsh-kline/core/calc.py +0 -691
  18. package/node_modules/@ftshare-lab/dsh-kline/core/rows.py +0 -228
  19. package/node_modules/@ftshare-lab/dsh-kline/core/ta_engine.py +0 -99
  20. package/node_modules/@ftshare-lab/dsh-kline/lib/candle-sequence.js +0 -15
  21. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-adjustment.js +0 -7
  22. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-annotations.js +0 -33
  23. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-applications.js +0 -171
  24. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-context.js +0 -164
  25. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-observation.js +0 -251
  26. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-service-status.js +0 -82
  27. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-source-status.js +0 -39
  28. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-sources.js +0 -354
  29. package/node_modules/@ftshare-lab/dsh-kline/lib/client.js +0 -17581
  30. package/node_modules/@ftshare-lab/dsh-kline/lib/drawing-feedback.js +0 -284
  31. package/node_modules/@ftshare-lab/dsh-kline/lib/fibonacci.js +0 -18
  32. package/node_modules/@ftshare-lab/dsh-kline/lib/ftshare-settings-bridge.js +0 -159
  33. package/node_modules/@ftshare-lab/dsh-kline/lib/index.js +0 -279
  34. package/node_modules/@ftshare-lab/dsh-kline/lib/labeled-polyline.js +0 -17
  35. package/node_modules/@ftshare-lab/dsh-kline/lib/pattern-groups.js +0 -91
  36. package/node_modules/@ftshare-lab/dsh-kline/lib/price-bands.js +0 -55
  37. package/node_modules/@ftshare-lab/dsh-kline/lib/price-series.js +0 -47
  38. package/node_modules/@ftshare-lab/dsh-kline/lib/price-sticks.js +0 -32
  39. package/node_modules/@ftshare-lab/dsh-kline/lib/types/candle-sequence.d.ts +0 -2
  40. package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-adjustment.d.ts +0 -2
  41. package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-annotations.d.ts +0 -4
  42. package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-applications.d.ts +0 -26
  43. package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-context.d.ts +0 -14
  44. package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-observation.d.ts +0 -8
  45. package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-service-status.d.ts +0 -22
  46. package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-source-status.d.ts +0 -47
  47. package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-sources.d.ts +0 -25
  48. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/BetterSidebarTab.d.ts +0 -12
  49. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/ClassicShell.d.ts +0 -4
  50. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/KlineContent.d.ts +0 -37
  51. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/PanelHost.d.ts +0 -25
  52. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/chart-apply.d.ts +0 -13
  53. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/chart-context.d.ts +0 -23
  54. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/chart-handoff.d.ts +0 -5
  55. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/chart-session-resolver.d.ts +0 -2
  56. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/client-context.d.ts +0 -16
  57. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/conversation.d.ts +0 -43
  58. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/default-tab.d.ts +0 -3
  59. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/embed.d.ts +0 -37
  60. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/generated-view.d.ts +0 -2
  61. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/horizontal-lines.d.ts +0 -1
  62. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/host-options.d.ts +0 -38
  63. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/host-panels.d.ts +0 -55
  64. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/index.d.ts +0 -4
  65. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/mode-preferences.d.ts +0 -25
  66. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/native-sidebar-contract.d.ts +0 -52
  67. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/native-sidebar-register.d.ts +0 -46
  68. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/native-sidebar-services.d.ts +0 -45
  69. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/native-sidebar.d.ts +0 -47
  70. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/sidebar-integration.d.ts +0 -12
  71. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/ui-onboarding.d.ts +0 -7
  72. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/version.d.ts +0 -1
  73. package/node_modules/@ftshare-lab/dsh-kline/lib/types/drawing-feedback.d.ts +0 -5
  74. package/node_modules/@ftshare-lab/dsh-kline/lib/types/fibonacci.d.ts +0 -5
  75. package/node_modules/@ftshare-lab/dsh-kline/lib/types/ftshare-settings-bridge.d.ts +0 -50
  76. package/node_modules/@ftshare-lab/dsh-kline/lib/types/index.d.ts +0 -26
  77. package/node_modules/@ftshare-lab/dsh-kline/lib/types/labeled-polyline.d.ts +0 -11
  78. package/node_modules/@ftshare-lab/dsh-kline/lib/types/pattern-groups.d.ts +0 -2
  79. package/node_modules/@ftshare-lab/dsh-kline/lib/types/price-bands.d.ts +0 -3
  80. package/node_modules/@ftshare-lab/dsh-kline/lib/types/price-series.d.ts +0 -5
  81. package/node_modules/@ftshare-lab/dsh-kline/lib/types/price-sticks.d.ts +0 -3
  82. package/node_modules/@ftshare-lab/dsh-kline/package.json +0 -157
  83. package/node_modules/@ftshare-lab/dsh-kline/requirements.txt +0 -6
  84. package/node_modules/@ftshare-lab/dsh-kline/scripts/bootstrap.sh +0 -5
  85. package/node_modules/@ftshare-lab/dsh-kline/scripts/dsh-bootstrap.mjs +0 -179
  86. package/node_modules/@ftshare-lab/dsh-kline/scripts/dsh-mcp-plugin.mjs +0 -27
  87. package/node_modules/@ftshare-lab/dsh-kline/scripts/run-dsh-kline.mjs +0 -658
  88. package/node_modules/@ftshare-lab/dsh-kline/scripts/run-dsh-kline.sh +0 -5
  89. package/node_modules/@ftshare-lab/dsh-kline/server.py +0 -1755
  90. package/node_modules/@ftshare-lab/dsh-kline/tools/__init__.py +0 -0
  91. package/node_modules/@ftshare-lab/dsh-kline/tools/annotations.py +0 -119
  92. package/node_modules/@ftshare-lab/dsh-kline/tools/automatic_analysis.py +0 -158
  93. package/node_modules/@ftshare-lab/dsh-kline/tools/baostock_source.py +0 -176
  94. package/node_modules/@ftshare-lab/dsh-kline/tools/calc.py +0 -39
  95. package/node_modules/@ftshare-lab/dsh-kline/tools/channel_candidates.py +0 -260
  96. package/node_modules/@ftshare-lab/dsh-kline/tools/channel_preview.py +0 -82
  97. package/node_modules/@ftshare-lab/dsh-kline/tools/channels.py +0 -104
  98. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_applications.py +0 -204
  99. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_context.py +0 -186
  100. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_edits.py +0 -363
  101. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_functions.py +0 -451
  102. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_indicators.py +0 -65
  103. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_measurements.py +0 -84
  104. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_source_status.py +0 -32
  105. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_sources.py +0 -31
  106. package/node_modules/@ftshare-lab/dsh-kline/tools/closed_daily.py +0 -68
  107. package/node_modules/@ftshare-lab/dsh-kline/tools/draw.py +0 -410
  108. package/node_modules/@ftshare-lab/dsh-kline/tools/drawing_feedback.py +0 -45
  109. package/node_modules/@ftshare-lab/dsh-kline/tools/drawing_interaction.py +0 -117
  110. package/node_modules/@ftshare-lab/dsh-kline/tools/drawing_verification.py +0 -141
  111. package/node_modules/@ftshare-lab/dsh-kline/tools/fetch.py +0 -4680
  112. package/node_modules/@ftshare-lab/dsh-kline/tools/fibonacci.py +0 -83
  113. package/node_modules/@ftshare-lab/dsh-kline/tools/foreign_daily.py +0 -185
  114. package/node_modules/@ftshare-lab/dsh-kline/tools/free_sources.py +0 -483
  115. package/node_modules/@ftshare-lab/dsh-kline/tools/lines.py +0 -91
  116. package/node_modules/@ftshare-lab/dsh-kline/tools/nine_count.py +0 -66
  117. package/node_modules/@ftshare-lab/dsh-kline/tools/pattern_groups.py +0 -103
  118. package/node_modules/@ftshare-lab/dsh-kline/tools/pivots.py +0 -60
  119. package/node_modules/@ftshare-lab/dsh-kline/tools/polylines.py +0 -131
  120. package/node_modules/@ftshare-lab/dsh-kline/tools/price_bands.py +0 -165
  121. package/node_modules/@ftshare-lab/dsh-kline/tools/price_patterns.py +0 -311
  122. package/node_modules/@ftshare-lab/dsh-kline/tools/price_series.py +0 -162
  123. package/node_modules/@ftshare-lab/dsh-kline/tools/price_sticks.py +0 -114
  124. package/node_modules/@ftshare-lab/dsh-kline/tools/range_candidates.py +0 -170
  125. package/node_modules/@ftshare-lab/dsh-kline/tools/recent_drawing_candidates.py +0 -123
  126. package/node_modules/@ftshare-lab/dsh-kline/tools/rectangles.py +0 -76
  127. package/node_modules/@ftshare-lab/dsh-kline/tools/regression_channels.py +0 -87
  128. package/node_modules/@ftshare-lab/dsh-kline/tools/ta_functions.py +0 -228
  129. package/node_modules/@ftshare-lab/dsh-kline/tools/trend_lines.py +0 -106
  130. package/node_modules/@ftshare-lab/dsh-kline/tools/watchlist.py +0 -149
  131. package/node_modules/@ftshare-lab/dsh-kline/view/ft-logo.jpg +0 -0
  132. package/node_modules/@ftshare-lab/dsh-kline/view/vendor/klinecharts.min.js +0 -7
@@ -1,13 +0,0 @@
1
- # Provenance
2
-
3
- The standalone MCP server includes adapted OHLCV normalization, FTShare provider,
4
- and deterministic indicator code originally developed in the MIT-licensed
5
- `ft-kline-view` project. The code is maintained in this repository so users do
6
- not need another MCP server or checkout at runtime.
7
-
8
- The copied modules were imported from the local `ft-kline-view` release line at
9
- version `0.1.55` and then adapted for the smaller dsh-specific tool surface.
10
- The interactive frontend, vendored `klinecharts` bundle, and logo are copied
11
- under `view/` and compiled into the native DSH sidebar. The browser code was
12
- adapted to same-origin session APIs; its MCP Apps handshake and original host
13
- runtime dependency were removed.
@@ -1,171 +0,0 @@
1
- # FT K-Line · 非凸 K 线助手
2
-
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
-
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) [![npm](https://img.shields.io/npm/v/%40ftshare-lab%2Fdsh-kline?label=npm)](https://www.npmjs.com/package/@ftshare-lab/dsh-kline) [![npm monthly downloads](https://img.shields.io/npm/dm/%40ftshare-lab%2Fdsh-kline?label=downloads%2Fmonth)](https://www.npmjs.com/package/@ftshare-lab/dsh-kline) [![Latest 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
- [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
-
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
-
13
- ## Supported drawing tools
14
-
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
-
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 |
31
-
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.
33
-
34
- ### Indicators and additional annotations
35
-
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.
40
-
41
- ## Natural-language drawing in action
42
-
43
- ### Verify an ABC candidate, then draw its anchors
44
-
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.
46
-
47
- [![Natural-language ABC drawing: the conversation verifies four anchors while the daily chart displays the 0/A/B/C polyline and labels](docs/images/natural-language-abc-wolong-2026-10-27.png)](docs/images/natural-language-abc-wolong-2026-10-27.png)
48
-
49
- ### Continue by adding a descending channel
50
-
51
- A follow-up request adds parallel channel boundaries after the host checks their anchors. The existing ABC labels remain on the same chart.
52
-
53
- [![Natural-language descending channel: the daily chart retains its ABC labels and adds the channel boundaries](docs/images/natural-language-descending-channel-wolong-2026-10-27.png)](docs/images/natural-language-descending-channel-wolong-2026-10-27.png)
54
-
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
- [![MSFT daily platform range with its upward breakout confirmation date](docs/images/platform-breakout-msft-v0.6.9.png)](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
- [![Shanghai Composite candles with CSI 300 and ChiNext comparison lines](docs/images/main-chart-comparison-v0.6.9.png)](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
- [![Market overview with major indices, sector rankings, and unusual trading](docs/images/market-overview-v0.6.9.png)](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 |
102
- | --- | --- |
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 |
107
-
108
- ## Install
109
-
110
- Supports macOS, Linux, and native Windows. First launch downloads dependencies and may take several minutes.
111
-
112
- ### DeepSeek Harness
113
-
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:
121
-
122
- ```bash
123
- dsh plugin --profile web add github:FTShare-Lab/dsh_kline
124
- ```
125
-
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
- [![dsh_kline installation and update entry in the plugin marketplace](docs/images/dsh-market.png)](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.
131
-
132
- ### Codex
133
-
134
- Install a plugin-capable Codex, Git, **Node.js 22.19+**, and **Python 3.11+**:
135
-
136
- ```bash
137
- codex plugin marketplace add FTShare-Lab/dsh_kline --ref main
138
- codex plugin add ft-kline@ftshare
139
- ```
140
-
141
- Reopen Codex and ask “Open China Merchants Bank's daily chart.” FTShare is this project's public GitHub plugin source.
142
-
143
- | Host | Interactive chart and manual drawing | Chat-driven drawing | Quotes and structured analysis |
144
- | --- | --- | --- | --- |
145
- | DSH Web | Yes | Yes | Yes |
146
- | Codex Desktop | Inside an App card | Yes | Yes |
147
- | Codex CLI | No canvas | No chart writes | Yes |
148
-
149
- See the [complete guide](docs/guide.en.md) for pinned archives, updates, migration, and startup troubleshooting.
150
-
151
- ## Data and scope
152
-
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.
157
-
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).
159
-
160
- ## Documentation
161
-
162
- | Topic | Link |
163
- | --- | --- |
164
- | Install, updates, keys, troubleshooting | [Complete guide](docs/guide.en.md) |
165
- | Automatic drawing and extension | [Shared drawing architecture](docs/automatic-drawing.md) |
166
- | Pattern definitions and real samples | [Rules](docs/price-pattern-rules-v1.md) · [Samples](docs/price-pattern-samples-v1.md) |
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) |
170
-
171
- [MIT License](LICENSE) · [Frontend provenance](PROVENANCE.md) · [GitHub Releases](https://github.com/FTShare-Lab/dsh_kline/releases)
@@ -1,171 +0,0 @@
1
- # 非凸 K 线助手 · FT K-Line
2
-
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) [![npm](https://img.shields.io/npm/v/%40ftshare-lab%2Fdsh-kline?label=npm)](https://www.npmjs.com/package/@ftshare-lab/dsh-kline) [![npm 月下载量](https://img.shields.io/npm/dm/%40ftshare-lab%2Fdsh-kline?label=downloads%2Fmonth)](https://www.npmjs.com/package/@ftshare-lab/dsh-kline) [![最新发布](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
- [绘图清单](#支持哪些绘图) · [ABC 与通道实测](#自然语言绘图实测) · [绘图工作台](#绘图工作台与价格形态) · [大盘与对比](#大盘与主图对比) · [安装](#安装) · [文档](#文档)
10
-
11
- 当前发布版本 **v0.6.11**,npm 包名 **`@ftshare-lab/dsh-kline`**。图形直接显示,关闭工具面板后保留;用户可切换候选、继续修改或清除。
12
-
13
- ## 支持哪些绘图
14
-
15
- 对话和图表面板使用同一套绘图能力。自动绘图以**当前已加载的最近已收盘日线**为准,默认显示最新合格候选;也可以指定候选、日期和点位。
16
-
17
- | 绘图工具 | 自动绘图 | 手动选点与自然语言操作 |
18
- | --- | --- | --- |
19
- | **水平线** | 查找近期高点/低点作为价位候选 | 指定价格,或点选 K 线;可作为支撑、压力或自定义价位 |
20
- | **趋势线** | 查找近期符合条件的两点走势 | 指定两个时间与价位,创建或调整线段 |
21
- | **平行通道** | 查找近期通道候选 | 选择三个锚点,调整边界及中线样式 |
22
- | **平台框/箱体** | 查找符合边界接触与漂移条件的近期区间 | 框定时间和上下边界,调整名称、颜色及填充 |
23
- | **斐波那契回撤** | 从近期波段寻找锚点 | 指定波段起终点及回撤比例,整组修改或删除 |
24
- | **ABC 波段/ABC 浪标注** | 查找符合几何条件的 0/A/B/C 波段候选 | 自选锚点,或让宿主核对后落图;可单独修改指定点 |
25
- | **双顶** | 识别顶部结构及后续状态 | 手动指定结构锚点,仍需满足识别规则 |
26
- | **双底** | 识别底部结构及后续状态 | 手动指定结构锚点,仍需满足识别规则 |
27
- | **头肩顶** | 识别双肩、头部与颈线 | 手动指定五个结构锚点,并校验形态 |
28
- | **头肩底** | 识别反向头肩结构与颈线 | 手动指定五个结构锚点,并校验形态 |
29
- | **平台突破/失效** | 冻结平台边界,标示待确认、突破确认及失效状态 | 自选区间使用普通平台框;状态由行情分析得出 |
30
- | **九转计数** | 逐根显示上涨/下跌 1–9;行情变化后更新 | 由行情自动计数,可调整显示范围与样式 |
31
-
32
- **ABC 是波段几何候选与折线标注,不等于完整艾略特波浪识别。** 价格形态与九转当前支持 A/港/美股已收盘日线;找不到合格候选时会说明原因,不强行绘制。
33
-
34
- ### 指标与更多标注
35
-
36
- - **指标面板:** SMA、EMA、VOL、MACD、KDJ、RSI、BOLL、ATR、VWAP。SMA/EMA/BOLL 也支持由宿主计算并添加为独立指标对象。
37
- - **自然语言标注:** 文字、数值、箭头与菱形图标、带标签折线;支持按名称或指定点继续修改。
38
- - **进阶工具接口:** 条件价格序列、价带与条件柱线。具体输入、显示范围及限制见[函数与绘图说明](docs/chart-functions.md)。
39
- - **图形管理:** 创建、改名、改色、更新锚点、删除;同一张图可叠加多个对象。201 个 TA-Lib 函数可查询计算,只有已接入的图形与指标支持落图。
40
-
41
- ## 自然语言绘图实测
42
-
43
- ### ABC 候选:核对锚点后画到图上
44
-
45
- DeepSeek 核对卧龙电驱日 K 的 0/A/B/C 四个锚点,再通过插件绘制。完整截图同时保留了左侧对话与右侧实际图形。
46
-
47
- [![自然语言绘制卧龙电驱 ABC:对话核对四个锚点,日 K 图显示 0、A、B、C 折线和标签](docs/images/natural-language-abc-wolong-2026-10-27.png)](docs/images/natural-language-abc-wolong-2026-10-27.png)
48
-
49
- ### 在同一张图上继续添加下降通道
50
-
51
- 继续提出绘图请求,宿主核对通道锚点后添加平行边界,原有 ABC 标注保留。
52
-
53
- [![自然语言追加下降通道:日 K 主图同时保留 ABC 标注与通道边界](docs/images/natural-language-descending-channel-wolong-2026-10-27.png)](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
- [![微软日 K 的平台箱体与上破确认日](docs/images/platform-breakout-msft-v0.6.9.png)](docs/images/platform-breakout-msft-v0.6.9.png)
78
-
79
- 双顶/底、头肩顶/底同样显示颈线及候选、确认、失效等状态。九转显示逐根计数,基础九转不包含完整 DeMARK 13 Countdown。定义与适用范围见[形态规则](docs/price-pattern-rules-v1.md)。
80
-
81
- ## 大盘与主图对比
82
-
83
- ### 把对比折线放进 K 线主图
84
-
85
- 搜索添加个股、指数或 ETF,将其走势作为背景折线叠加在主图中。主标的继续显示蜡烛图与指标,对比线可以分别隐藏或移除。
86
-
87
- [![上证指数主图叠加沪深300、创业板指对比折线](docs/images/main-chart-comparison-v0.6.9.png)](docs/images/main-chart-comparison-v0.6.9.png)
88
-
89
- *对比线按共同基准归一化,比较累计涨跌幅;不直接比较不同标的的绝对价格,也不为对比线计算技术指标。*
90
-
91
- ### 大盘概览
92
-
93
- 浏览 A/港/美主要指数、板块排行和龙虎榜,点击标的进入图表,继续查看行情与资料。
94
-
95
- [![大盘概览:主要指数、板块排行与龙虎榜](docs/images/market-overview-v0.6.9.png)](docs/images/market-overview-v0.6.9.png)
96
-
97
- 大盘、主图对比与微软平台三张新图保留原生 Retina 像素,以无损 PNG 展示。行情是截图时的快照。
98
-
99
- ## 点位、复盘与资讯
100
-
101
- | 功能 | 可以做什么 |
102
- | --- | --- |
103
- | **支撑与压力** | 在「点位」中分析参考价位、手动添加价位,并画在当前图上 |
104
- | **区间复盘** | 查看指定区间的涨跌、回撤等统计,结合图表检查走势 |
105
- | **资讯与公司资料** | 在行情旁查看新闻、公司资料与研究入口,覆盖取决于来源与权限 |
106
- | **自选与分组** | 收藏、分组、排序、导入和批量打开标的;DSH 支持跨对话保留 |
107
-
108
- ## 安装
109
-
110
- 支持 macOS、Linux 和原生 Windows。首次启动需要联网准备依赖,可能耗时数分钟。
111
-
112
- ### DeepSeek Harness
113
-
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 安装:
121
-
122
- ```bash
123
- dsh plugin --profile web add github:FTShare-Lab/dsh_kline
124
- ```
125
-
126
- 插件市场中搜索 `dsh_kline` 也可安装;市场的版本与下载数据随其目录同步。npm 当前版本见[包页面](https://www.npmjs.com/package/@ftshare-lab/dsh-kline),下载量不代表独立安装人数。
127
-
128
- [![插件市场中的 dsh_kline 安装与更新入口](docs/images/dsh-market.png)](docs/images/dsh-market.png)
129
-
130
- 启用后点击右侧 **K**,或直接在对话中请求分析。新版 DSH 自带原生右侧标签,无需安装 Better Sidebar;在 **UI → 工作台标签** 中切换,经典 K 侧栏仍可使用。v0.6.10 已验证 DSH 0.2.1-rc.5 的原生自动开图;该宿主属于预发布版本。
131
-
132
- ### Codex
133
-
134
- 先安装支持插件的 Codex、Git、**Node.js 22.19+** 和 **Python 3.11+**:
135
-
136
- ```bash
137
- codex plugin marketplace add FTShare-Lab/dsh_kline --ref main
138
- codex plugin add ft-kline@ftshare
139
- ```
140
-
141
- 重新打开 Codex,请求「打开招商银行日 K」。FTShare 是本项目维护的公开 GitHub 插件源。
142
-
143
- | 宿主 | 交互图表与手动绘图 | 自然语言绘图 | 行情与结构化分析 |
144
- | --- | --- | --- | --- |
145
- | DSH Web | 支持 | 支持 | 支持 |
146
- | Codex 桌面版 | 在应用卡片内使用 | 支持 | 支持 |
147
- | Codex CLI | 不提供画布 | 不落图 | 支持 |
148
-
149
- 固定版本归档、更新、旧安装迁移与启动排障见[完整指南](docs/guide.md)。
150
-
151
- ## 数据与适用范围
152
-
153
- - **行情来源:** 可接入 FTShare;在「设置 → 数据源」配置并测试 Key。无 Key 时可尝试部分 A 股、港美股历史日 K 和指数备用行情,覆盖与可用性取决于公开源。
154
- - **权限与周期:** 分钟线、新闻和公司资料取决于来源与权限。自动绘图、价格形态与九转当前使用已加载的 A/港/美股已收盘日线。
155
- - **修改边界:** 绘图使用当前图真实 K 线。数据来源不明、结果过期或活动视图存在歧义时,会停止修改并说明原因;鼠标拖拽改点与撤销暂不支持。
156
- - **保存范围:** DSH 自选与分组跨对话保留。Codex 图表、自选及应用内临时 Key 保存在当前连接内存中,不继承 DSH 配置;绘图不保证跨服务重启恢复。
157
-
158
- 行情可能延迟。形态与计数用于研究和复盘,不保证交易收益。数据覆盖见[无 Key 支持范围](docs/anonymous-market-support.md)与[港美股免费日线](docs/free-foreign-daily.md)。
159
-
160
- ## 文档
161
-
162
- | 主题 | 入口 |
163
- | --- | --- |
164
- | 安装、更新、Key、故障排查 | [完整指南](docs/guide.md) |
165
- | 自动绘图流程与扩展 | [共享绘图骨架](docs/automatic-drawing.md) |
166
- | 形态定义与真实样本 | [规则](docs/price-pattern-rules-v1.md) · [样本](docs/price-pattern-samples-v1.md) |
167
- | 技术函数与进阶标注 | [函数与绘图范围](docs/chart-functions.md) |
168
- | 宿主与数据源接入 | [面板嵌入](docs/embedding.md) · [数据适配](docs/provider-adaptation.md) |
169
- | 版本与验收 | [更新日志](CHANGELOG.md) · [v0.6.11 发布说明](docs/release-notes-v0.6.11.md) · [验收记录](docs/release-acceptance-v0.6.11.md) |
170
-
171
- [MIT License](LICENSE) · [前端来源](PROVENANCE.md) · [GitHub Releases](https://github.com/FTShare-Lab/dsh_kline/releases)