dsh-hyperliquid 0.5.3 → 0.5.4
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 +5 -0
- package/README.md +2 -2
- package/client.js +28 -1
- package/lib/chart-drawings.d.ts +1 -1
- package/lib/chart-drawings.js +2 -0
- package/lib/tools.js +1 -1
- package/package.json +1 -1
- package/skills/hyperliquid-trading/SKILL.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.4 — 2026-10-17
|
|
4
|
+
|
|
5
|
+
- 新增固定江恩方格(共 77 种),几何按 TradingView Charting Library 的 GannfixedLineToolOverrides 默认值:始终正方形、5×5 单位网格(6 条等分线)、弧线位于 (1,0)(1,1)(1.5,0)(2,0)(2,1)(3,0)(3,1)(4,0)(4,1)(5,0)(5,1) 单位(超出方格的不画)、默认显示 2×1 / 1×1 / 1×2 扇线。
|
|
6
|
+
- 内部叉子线仍未做:帮助页描述与改良 Schiff 相同,开发者文档里只是叉子线的样式之一,没有单独的几何定义。
|
|
7
|
+
|
|
3
8
|
## 0.5.3 — 2026-10-17
|
|
4
9
|
|
|
5
10
|
- 新增锚定文本(按 TradingView 说明固定在屏幕位置,平移图表时不动,可拖动换位置)与表格(| 分隔单元格、; 或换行分隔行;工具条可固定到屏幕或取消固定,取消时贴回所在位置的时间与价格)。共 76 种。固定在屏幕上的画线不参与多选拖动;agent 用 `screenX/screenY` 固定、`unpin: true` 取消固定。
|
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ dsh plugin --profile web add dsh-web3
|
|
|
58
58
|
- **钱包与收益**:点击顶栏钱包查看地址、余额、权益和收益。实盘收益曲线来自 Hyperliquid 官方 portfolio 数据;模拟盘显示本地已实现与未实现收益。
|
|
59
59
|
- **K 线**:支持交易所官方的 14 个周期,以及成交量、SMA20、MA60、EMA20/50、布林带、RSI、MACD、ATR14 与 UTC 日内 VWAP。图表类型可切换蜡烛、美国线、折线、面积和平均 K 线,并随会话保存;平均 K 线仅改变显示,点位引用仍使用原始 OHLC。向左拖动会自动加载更早的 K 线,最多可追溯到交易所提供的最近 5000 根。可以画水平线、趋势线,画线有实时预览和趋势线端点。手动画线与会话中 `hyper_chart` 添加的标注按会话和币种保存,在该币种的所有周期展示;agent 添加或删除后,打开的图表通常在下一次宿主事件轮询(约 1 秒)更新。明确点击 K 线、成交量柱或指标线,会在输入框里插入一个引用标签(如 `BTC 15m 10-15 13:45 · C 81397`);拖动图表不会引用。发送时标签展开为该点的完整 OHLC、量能与指标数据;点击标签可回到图上的那根 K 线。 「指标」菜单还可叠加最多 8 条可配置均线:SMA / EMA / SMMA(平滑均线,即 TradingView 的 RMA)/ WMA,周期 1–500,价格源可选 close / open / high / low / hl2 / hlc3 / ohlc4,并可再套一层平滑(虚线),算法与 TradingView Pine 一致;图例实时显示数值,agent 也能用 `hyper_chart` 把均线画到图上。
|
|
60
60
|
- **导航与导出**:图表下方可查看最近 1/5/30 天、适应已加载全部数据、跳转到本地时间指定的日期,或回到最新行情;历史不足会自动补取,并在到达数据边界时提示。导出菜单可保存含画线和指标的 PNG,或导出已加载原始 OHLCV 的 CSV(UTC 时间)。指标图例与成交量跟随十字光标;VWAP 使用 UTC 每日重置的 HLC3 成交量加权价格,首日历史不全时不展示该日不完整结果。
|
|
61
|
-
- **画线工具**:工具栏「画线」菜单按 TradingView 的分组提供
|
|
61
|
+
- **画线工具**:工具栏「画线」菜单按 TradingView 的分组提供 77 种工具(菜单顶部可搜索)——线条:趋势线、射线、延长线、信息线(涨跌 / 根数 / 时长 / 角度)、趋势角度、水平线、水平射线、十字线、垂直线;通道:平行通道、安德鲁叉子线、Schiff 与改良 Schiff 叉子线、回归趋势(收盘价最小二乘 ±2σ)、固定范围成交量分布(按价格统计区间成交量,标出 POC 与价值区 VAH / VAL,可调行数与价值区比例;斐波那契回撤、扩展和通道可在浮动工具条自定义层级;由 K 线估算,区间早于已加载历史时自动补加载并提示);斐波那契与江恩:斐波那契回撤、趋势斐波那契扩展、斐波那契通道、斐波那契时间周期、江恩箱、江恩方格、江恩扇形;形态:艾略特推动浪(0-5)与调整浪(A-B-C)、XABCD 谐波与 ABCD(自动标注斐波那契比值)、头肩形态(含颈线);形状:矩形、圆形、三角形、画笔;标注:文本、标注气泡、价格标签、箭头、图标;测量与头寸:价格区间、日期区间、日期与价格区间、多头 / 空头头寸(止盈默认 2R,显示 R:R);0.5.0 新增:平顶 / 平底通道、分离通道、斐波那契速度阻力扇 / 圆 / 弧 / 楔形 / 基于趋势的时间、Cypher、三驱、三角形态、艾略特三角浪与双重 / 三重组合、周期线、正弦线、椭圆、旋转矩形、弧线、曲线、便签、价格便签、路标、预测、锚定 VWAP、锚定成交量分布;0.5.1 新增:荧光笔、路径(逐点点击,双击或 Enter 结束)、折线、图钉、斐波那契螺旋、K 线形态(复制一段 K 线的形状到别处);0.5.2 新增:投影(扇形)、幽灵 K 线(沿设想路径生成假想 K 线);0.5.3 新增:锚定文本(固定在屏幕上)、表格(| 分隔单元格,; 分隔行,可固定到屏幕);0.5.4 新增:固定江恩方格。点击过程中实时预览,Esc 取消,按住 Shift 把方向约束为水平或 45°;磁吸可选关 / 弱 / 强,吸附到 K 线开高低收。
|
|
62
62
|
- **编辑与管理画线**:点选后拖动锚点改形状、拖动线身整体移动;浮动工具条可通过齿轮精确编辑锚点时间、价格和名称,改颜色、线宽、线型,复制,设为该工具的默认样式(之后新画的同类线自动套用),锁定或删除。按住 Shift 或 Ctrl/Cmd 点击可多选,多选后整组拖动、改色、隐藏、锁定或删除(一步撤销)。快捷键:Alt+T 趋势线、Alt+H 水平线、Alt+J 水平射线、Alt+V 垂直线、Alt+C 十字线、Alt+F 斐波那契回撤、Alt+Shift+R 矩形;画线时按住 Ctrl/Cmd 临时反转磁吸,吸附点显示提示圈;Esc 逐层退出(取消当前拖动或工具 → 取消选择 → 退出放大图表)。Delete 删除,Ctrl/Cmd+C、V 复制粘贴,Ctrl/Cmd+Z 撤销、Shift+Ctrl/Cmd+Z 重做(新建、修改、删除和批量删除都可撤销)。图表下方的画线列表可逐条定位、显示 / 隐藏、锁定或删除;菜单里还有连续绘制、锁定所有画线和删除所有画线。点击菜单中的星标可收藏最多 12 个工具,图表上方显示常用画线快捷栏;收藏保存在当前浏览器。画线锚定在时间与价格上,平移、缩放、切换刻度和加载历史时始终贴合 K 线,也可延伸到最新 K 线右侧的空白区域;画线按会话和币种保存,切换会话随之切换,重启后保留,agent 用 `hyper_chart` 新增或修改的画线会实时出现在打开的图表上。
|
|
63
63
|
- **同步、提醒与贴图**:浮动工具条可把画线「同步到所有会话」(该币种的每个交易会话都显示同一条线,任一会话可修改,重启后保留),水平线、水平射线、趋势线、射线和延长线可开启「价格提醒」——宿主持续监控中价,穿越画线时交易台弹出提醒,提醒触发一次后自动关闭,可再次开启。图标工具附贴图库:18 个内置图标、交易 / 表情 / 符号三类约 60 个贴纸,也可输入或粘贴任意一个 emoji 作为贴纸。每张图(会话 + 币种,跨周期合计)最多 100 条画线。
|
|
64
64
|
- **成交与决策原因**:每笔成交在图上的成交价位置打点(买绿卖红),有 AI 决策原因的点带圆环;点击查看方向、数量、价格、时间和当时的决策原因,「显示 → 成交原因」可把原因标签直接显示在图上。「回到决策会话分析」会切换到做出这笔决策的交易会话,并把成交与原因作为复盘引用放进输入框。
|
|
@@ -109,7 +109,7 @@ dsh plugin --profile web add dsh-web3
|
|
|
109
109
|
|---|---|
|
|
110
110
|
| `hyper_context` | 一次读取当前会话的币对、盘口、K 线、账户权益、仓位与风险限额 |
|
|
111
111
|
| `hyper_market` | 行情:overview / book / candles / trades / catalog / indicators(SMA、EMA、RSI、MACD、布林带、ATR、Stochastic、ADX/DMI、OBV、支撑阻力,以及图上均线或指定均线的最新值) |
|
|
112
|
-
| `hyper_chart` | 在会话图表上添加、修改(几何 / 颜色 / 线宽 / 线型 / 锁定 / 隐藏)或删除画线(
|
|
112
|
+
| `hyper_chart` | 在会话图表上添加、修改(几何 / 颜色 / 线宽 / 线型 / 锁定 / 隐藏)或删除画线(77 种,含固定范围成交量分布、斐波那契、江恩、叉子线、回归、艾略特与谐波形态、标注与多空头寸;可设置同步到所有会话与价格提醒)和均线(SMA / EMA / SMMA / WMA,可选平滑);`action=view` 切换图表周期并显示 / 隐藏 RSI、MACD 等副图指标 |
|
|
113
113
|
| `hyper_account` | 账户:state / orders / fills / orderStatus(支持 oid、cloid)/ review(窗口证据、成本及订单核对) |
|
|
114
114
|
| `hyper_decide` | 实盘预检:提交交易意图与依据,返回 30 秒内有效的一次性 `decisionId` |
|
|
115
115
|
| `hyper_order` | place / cancel / leverage;实盘下单必须带匹配的 `decisionId`,可附带止盈止损(目前仅测试网) |
|
package/client.js
CHANGED
|
@@ -985,6 +985,9 @@ body:has(.dhl-divider.dragging) * { cursor: col-resize !important; }
|
|
|
985
985
|
.dhl-drawing .dhl-table-rule { stroke: currentColor; stroke-width: 1; opacity: .35; }
|
|
986
986
|
.dhl-drawing .dhl-table-head { font-weight: 650; }
|
|
987
987
|
.dhl-drawing-hit .dhl-table-box { pointer-events: all; }
|
|
988
|
+
|
|
989
|
+
/* 0.5.4: Gann square fixed grid. */
|
|
990
|
+
.dhl-drawing .dhl-gann-grid { stroke: currentColor; stroke-width: 1; opacity: .35; }
|
|
988
991
|
`;
|
|
989
992
|
|
|
990
993
|
// src/client/locale.ts
|
|
@@ -17767,7 +17770,9 @@ var DRAWING_POINTS = {
|
|
|
17767
17770
|
ghostfeed: 0,
|
|
17768
17771
|
// Screen-anchored text (TradingView's anchored text) and a table (cells split by |, rows by ; or a new line).
|
|
17769
17772
|
anchoredtext: 1,
|
|
17770
|
-
table: 1
|
|
17773
|
+
table: 1,
|
|
17774
|
+
// Gann square fixed: always square on screen, 5×5 units (TradingView Charting Library defaults).
|
|
17775
|
+
gannfixed: 2
|
|
17771
17776
|
};
|
|
17772
17777
|
var SCREEN_KINDS = ["anchoredtext", "table"];
|
|
17773
17778
|
var FREEHAND_KINDS = ["brush", "highlighter"];
|
|
@@ -17918,6 +17923,7 @@ var DRAWING_TOOLS = [
|
|
|
17918
17923
|
{ group: "fib", kind: "fibspiral", zh: "\u6590\u6CE2\u90A3\u5951\u87BA\u65CB", en: "Fib spiral", hintZh: "\u70B9\u51FB\u4E2D\u5FC3\uFF0C\u518D\u70B9\u51FB\u786E\u5B9A\u8D77\u59CB\u534A\u5F84\u4E0E\u65B9\u5411\uFF08\u6BCF\u56DB\u5206\u4E4B\u4E00\u5708\u653E\u5927 1.618 \u500D\uFF09", hintEn: "Click the center, then the starting radius (grows 1.618\xD7 per quarter turn)", icon: "M12 12a2 2 0 1 1 2-2c0 3-3 5-6 4s-5-5-3-8 7-5 10-3 5 7 3 11" },
|
|
17919
17924
|
{ group: "fib", kind: "gannbox", zh: "\u6C5F\u6069\u7BB1", en: "Gann box", hintZh: "\u70B9\u51FB\u4E24\u4E2A\u5BF9\u89D2\uFF0C\u6309 0.25/0.382/0.5/0.618/0.75 \u5206\u5272", hintEn: "Click two corners; divided at Gann levels", icon: "M4 4h16v16H4zM4 12h16M12 4v16M4 4l16 16" },
|
|
17920
17925
|
{ group: "fib", kind: "gannsquare", zh: "\u6C5F\u6069\u65B9\u683C", en: "Gann square", hintZh: "\u70B9\u51FB\u4E24\u4E2A\u5BF9\u89D2\uFF0C\u753B\u56DB\u5206\u7F51\u683C\u3001\u5BF9\u89D2\u7EBF\u4E0E\u6247\u7EBF", hintEn: "Click two corners; quarters, diagonals and fans", icon: "M4 4h16v16H4zM4 4l16 16M20 4 4 20M4 12h16M12 4v16" },
|
|
17926
|
+
{ group: "fib", kind: "gannfixed", zh: "\u56FA\u5B9A\u6C5F\u6069\u65B9\u683C", en: "Gann square fixed", hintZh: "\u70B9\u51FB\u539F\u70B9\uFF0C\u518D\u70B9\u51FB\u786E\u5B9A\u5927\u5C0F\uFF1B\u59CB\u7EC8\u4E3A\u6B63\u65B9\u5F62\uFF0C5\xD75 \u7F51\u683C\u3001\u5F27\u7EBF\u4E0E 2\xD71/1\xD71/1\xD72 \u6247\u7EBF", hintEn: "Click the origin, then the size; always square, 5\xD75 grid, arcs and 2\xD71/1\xD71/1\xD72 fans", icon: "M4 4h16v16H4zM4 20a16 16 0 0 1 16-16M4 20 20 4M4 20l16-8M4 20 12 4" },
|
|
17921
17927
|
{ group: "fib", kind: "gannfan", zh: "\u6C5F\u6069\u6247\u5F62", en: "Gann fan", hintZh: "\u70B9\u51FB\u539F\u70B9\uFF0C\u518D\u70B9\u51FB\u786E\u5B9A 1\xD71 \u7EBF", hintEn: "Click the origin, then a point on the 1\xD71 line", icon: "M3 21 21 3M3 21 21 12M3 21 12 3M3 21h18" },
|
|
17922
17928
|
{ group: "patterns", kind: "elliott", zh: "\u827E\u7565\u7279\u63A8\u52A8\u6D6A", en: "Elliott impulse wave", hintZh: "\u4F9D\u6B21\u70B9\u51FB 0\u30011\u30012\u30013\u30014\u30015 \u516D\u4E2A\u70B9", hintEn: "Click points 0 through 5", icon: "M2 18 6 10l3 4 5-10 3 6 5-6" },
|
|
17923
17929
|
{ group: "patterns", kind: "elliottabc", zh: "\u827E\u7565\u7279\u8C03\u6574\u6D6A", en: "Elliott correction wave", hintZh: "\u4F9D\u6B21\u70B9\u51FB 0\u3001A\u3001B\u3001C \u56DB\u4E2A\u70B9", hintEn: "Click 0, A, B, C", icon: "M3 6l6 10 5-6 7 10" },
|
|
@@ -18458,6 +18464,27 @@ var DrawingShape = React7.memo(function DrawingShape2({ kind, points: points2, l
|
|
|
18458
18464
|
body = /* @__PURE__ */ React7.createElement(React7.Fragment, null, p[4] ? /* @__PURE__ */ React7.createElement("polygon", { className: "dhl-drawing-fill", points: `${p[2].x},${p[2].y} ${p[3].x},${p[3].y} ${p[4].x},${p[4].y}` }) : null, wave(p, names, text), neck ? /* @__PURE__ */ React7.createElement("line", { className: "dhl-neckline", x1: neck[0].x, y1: neck[0].y, x2: neck[1].x, y2: neck[1].y }) : null);
|
|
18459
18465
|
break;
|
|
18460
18466
|
}
|
|
18467
|
+
case "gannfixed": {
|
|
18468
|
+
if (!p[1]) break;
|
|
18469
|
+
const side2 = Math.max(Math.abs(p[1].x - p[0].x), Math.abs(p[1].y - p[0].y));
|
|
18470
|
+
if (side2 < 4) break;
|
|
18471
|
+
const sx = p[1].x >= p[0].x ? 1 : -1, sy = p[1].y >= p[0].y ? 1 : -1, unit = side2 / 5;
|
|
18472
|
+
const at = (ux, uy) => ({ x: p[0].x + sx * ux * unit, y: p[0].y + sy * uy * unit });
|
|
18473
|
+
const far = at(5, 5);
|
|
18474
|
+
const arcs = [[1, 0], [1, 1], [1.5, 0], [2, 0], [2, 1], [3, 0], [3, 1], [4, 0], [4, 1], [5, 0], [5, 1]];
|
|
18475
|
+
const sweep = sx * sy > 0 ? 1 : 0;
|
|
18476
|
+
body = /* @__PURE__ */ React7.createElement("g", { className: "dhl-gann-fixed" }, /* @__PURE__ */ React7.createElement("rect", { className: "dhl-drawing-mid", x: Math.min(p[0].x, far.x), y: Math.min(p[0].y, far.y), width: side2, height: side2, fill: "none" }), [0, 1, 2, 3, 4, 5].map((n2) => /* @__PURE__ */ React7.createElement("g", { key: `l${n2}` }, /* @__PURE__ */ React7.createElement("line", { className: "dhl-gann-grid", x1: at(n2, 0).x, y1: at(n2, 0).y, x2: at(n2, 5).x, y2: at(n2, 5).y }), /* @__PURE__ */ React7.createElement("line", { className: "dhl-gann-grid", x1: at(0, n2).x, y1: at(0, n2).y, x2: at(5, n2).x, y2: at(5, n2).y }))), arcs.map(([ux, uy]) => {
|
|
18477
|
+
const r = Math.hypot(ux, uy) * unit;
|
|
18478
|
+
if (r > side2 * 1.0001) return null;
|
|
18479
|
+
const start = at(Math.hypot(ux, uy), 0), end = at(0, Math.hypot(ux, uy));
|
|
18480
|
+
return /* @__PURE__ */ React7.createElement("path", { key: `a${ux}-${uy}`, className: "dhl-fib-ring", d: `M${start.x} ${start.y}A${r} ${r} 0 0 ${sweep} ${end.x} ${end.y}` });
|
|
18481
|
+
}), [[2, 1], [1, 1], [1, 2]].map(([ux, uy]) => {
|
|
18482
|
+
const end = ux >= uy ? at(5, 5 * uy / ux) : at(5 * ux / uy, 5);
|
|
18483
|
+
return /* @__PURE__ */ React7.createElement("g", { key: `f${ux}x${uy}` }, /* @__PURE__ */ React7.createElement("line", { className: ux === uy ? "dhl-fib-key" : void 0, x1: p[0].x, y1: p[0].y, x2: end.x, y2: end.y }), text(end.x + sx * 3, end.y, `${ux}\xD7${uy}`, sx > 0 ? "start" : "end"));
|
|
18484
|
+
}));
|
|
18485
|
+
handles = [p[0], far];
|
|
18486
|
+
break;
|
|
18487
|
+
}
|
|
18461
18488
|
case "gannbox":
|
|
18462
18489
|
case "gannsquare": {
|
|
18463
18490
|
if (!p[1]) break;
|
package/lib/chart-drawings.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type DrawingKind = 'level' | 'hray' | 'vline' | 'text' | 'trend' | 'ray' | 'extended' | 'fib' | 'rect' | 'measure' | 'channel' | 'long' | 'short' | 'fibext' | 'fibchannel' | 'fibtime' | 'gannfan' | 'pitchfork' | 'regression' | 'vprofile' | 'arrow' | 'callout' | 'circle' | 'triangle' | 'brush' | 'crossline' | 'pricelabel' | 'infoline' | 'trendangle' | 'pricerange' | 'daterange' | 'elliott' | 'elliottabc' | 'xabcd' | 'abcd' | 'headshoulders' | 'gannbox' | 'gannsquare' | 'schiff' | 'modschiff' | 'icon' | 'flatchannel' | 'disjoint' | 'fibfan' | 'fibcircles' | 'fibarcs' | 'fibwedge' | 'fibtrendtime' | 'cypher' | 'threedrives' | 'tripattern' | 'elliotttri' | 'elliottwxy' | 'elliottwxyxz' | 'cycles' | 'sine' | 'ellipse' | 'rotrect' | 'arc' | 'curve' | 'note' | 'pricenote' | 'signpost' | 'avwap' | 'avprofile' | 'forecast' | 'highlighter' | 'path' | 'polyline' | 'pin' | 'fibspiral' | 'barspattern' | 'projection' | 'ghostfeed' | 'anchoredtext' | 'table'
|
|
1
|
+
export type DrawingKind = 'level' | 'hray' | 'vline' | 'text' | 'trend' | 'ray' | 'extended' | 'fib' | 'rect' | 'measure' | 'channel' | 'long' | 'short' | 'fibext' | 'fibchannel' | 'fibtime' | 'gannfan' | 'pitchfork' | 'regression' | 'vprofile' | 'arrow' | 'callout' | 'circle' | 'triangle' | 'brush' | 'crossline' | 'pricelabel' | 'infoline' | 'trendangle' | 'pricerange' | 'daterange' | 'elliott' | 'elliottabc' | 'xabcd' | 'abcd' | 'headshoulders' | 'gannbox' | 'gannsquare' | 'schiff' | 'modschiff' | 'icon' | 'flatchannel' | 'disjoint' | 'fibfan' | 'fibcircles' | 'fibarcs' | 'fibwedge' | 'fibtrendtime' | 'cypher' | 'threedrives' | 'tripattern' | 'elliotttri' | 'elliottwxy' | 'elliottwxyxz' | 'cycles' | 'sine' | 'ellipse' | 'rotrect' | 'arc' | 'curve' | 'note' | 'pricenote' | 'signpost' | 'avwap' | 'avprofile' | 'forecast' | 'highlighter' | 'path' | 'polyline' | 'pin' | 'fibspiral' | 'barspattern' | 'projection' | 'ghostfeed' | 'anchoredtext' | 'table' | 'gannfixed'
|
|
2
2
|
export type LineStyleName = 'solid' | 'dashed' | 'dotted'
|
|
3
3
|
export interface DrawingStyle { visibleIntervals?: string[]; fontSize?: number; bold?: boolean; italic?: boolean; extendLeft?: boolean; extendRight?: boolean; screenX?: number; screenY?: number; fillOpacity?: number; levels?: number[]; rows?: number; valueArea?: number; color?: string; lineWidth?: number; lineStyle?: LineStyleName; locked?: boolean; hidden?: boolean; shared?: boolean; alert?: boolean }
|
|
4
4
|
export declare const DRAWING_POINTS: Record<DrawingKind, number>
|
package/lib/chart-drawings.js
CHANGED
|
@@ -36,6 +36,8 @@ export const DRAWING_POINTS = {
|
|
|
36
36
|
projection: 3, ghostfeed: 0,
|
|
37
37
|
// Screen-anchored text (TradingView's anchored text) and a table (cells split by |, rows by ; or a new line).
|
|
38
38
|
anchoredtext: 1, table: 1,
|
|
39
|
+
// Gann square fixed: always square on screen, 5×5 units (TradingView Charting Library defaults).
|
|
40
|
+
gannfixed: 2,
|
|
39
41
|
}
|
|
40
42
|
/** Kinds that can be pinned to a screen position (screenX / screenY, 0-1 of the plot). */
|
|
41
43
|
export const SCREEN_KINDS = ['anchoredtext', 'table']
|
package/lib/tools.js
CHANGED
|
@@ -12,7 +12,7 @@ import { INDICATOR_IDS, computeStudies, normalizeIndicatorSettings, studyDefinit
|
|
|
12
12
|
import { reviewLedger } from './review.js'
|
|
13
13
|
import { DRAWING_KINDS, DRAWING_POINTS, TEXT_KINDS, drawingStyle, volumeProfile } from './chart-drawings.js'
|
|
14
14
|
|
|
15
|
-
const DRAWING_NAMES = { anchoredtext: '锚定文本', table: '表格', projection: '投影', ghostfeed: '幽灵 K 线', highlighter: '荧光笔', path: '路径', polyline: '折线', pin: '图钉', fibspiral: '斐波那契螺旋', barspattern: 'K 线形态', flatchannel: '平顶/平底通道', disjoint: '分离通道', fibfan: '斐波那契速度阻力扇', fibcircles: '斐波那契圆', fibarcs: '斐波那契弧', fibwedge: '斐波那契楔形', fibtrendtime: '基于趋势的斐波那契时间',
|
|
15
|
+
const DRAWING_NAMES = { gannfixed: '固定江恩方格', anchoredtext: '锚定文本', table: '表格', projection: '投影', ghostfeed: '幽灵 K 线', highlighter: '荧光笔', path: '路径', polyline: '折线', pin: '图钉', fibspiral: '斐波那契螺旋', barspattern: 'K 线形态', flatchannel: '平顶/平底通道', disjoint: '分离通道', fibfan: '斐波那契速度阻力扇', fibcircles: '斐波那契圆', fibarcs: '斐波那契弧', fibwedge: '斐波那契楔形', fibtrendtime: '基于趋势的斐波那契时间',
|
|
16
16
|
cypher: 'Cypher 形态', threedrives: '三驱形态', tripattern: '三角形态', elliotttri: '艾略特三角浪', elliottwxy: '艾略特双重组合', elliottwxyxz: '艾略特三重组合', cycles: '周期线', sine: '正弦线',
|
|
17
17
|
ellipse: '椭圆', rotrect: '旋转矩形', arc: '弧线', curve: '曲线', note: '便签', pricenote: '价格便签', signpost: '路标', avwap: '锚定 VWAP', avprofile: '锚定成交量分布', forecast: '预测', vprofile: '固定范围成交量分布', level: '水平线', hray: '水平射线', vline: '垂直线', text: '文本', trend: '趋势线', ray: '射线', extended: '延长线', channel: '平行通道', fib: '斐波那契回撤', rect: '矩形', measure: '价格区间', long: '多头头寸', short: '空头头寸', fibext: '斐波那契扩展', fibchannel: '斐波那契通道', fibtime: '斐波那契时间周期', gannfan: '江恩扇形', pitchfork: '安德鲁叉子线', regression: '回归趋势', arrow: '箭头', callout: '标注气泡', circle: '圆形', triangle: '三角形', brush: '画笔', crossline: '十字线', pricelabel: '价格标签', infoline: '信息线', trendangle: '趋势角度', pricerange: '价格区间', daterange: '日期区间', elliott: '艾略特推动浪', elliottabc: '艾略特调整浪', xabcd: 'XABCD 谐波', abcd: 'ABCD 形态', headshoulders: '头肩形态', gannbox: '江恩箱', gannsquare: '江恩方格', schiff: 'Schiff 叉子线', modschiff: '改良 Schiff 叉子线', icon: '图标' }
|
|
18
18
|
import { canonicalMarketCoin } from './market-symbol.js'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-hyperliquid",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Hyperliquid trading desk for the DeepSeek Harness (dsh) - market workspace, native agent conversation and guarded live / paper trading over the Hyperliquid API.",
|
|
5
5
|
"icon": "./icon.svg",
|
|
6
6
|
"type": "module",
|
|
@@ -58,7 +58,7 @@ description: 作为用户的交易副手,在 DSH 交易会话中用 Hyperliqui
|
|
|
58
58
|
- 提交后一律用 `hyper_account orderStatus / orders / state` 对账。回执超时或未知时,先查状态再决定,绝不直接重下。
|
|
59
59
|
|
|
60
60
|
### 图表与提醒
|
|
61
|
-
-
|
|
61
|
+
- 77 种画线(趋势线、水平线/射线、通道、斐波那契回撤/扩展/通道(可自定义层级 `levels`)、江恩、叉子线、回归趋势、**固定范围成交量分布 vprofile**(返回 POC / VAH / VAL)、艾略特浪与谐波形态、多空头寸、文字和图标、**锚定 VWAP avwap**(单点锚定,算到最新 K 线)、**锚定成交量分布 avprofile**、预测、便签 / 路标等;各类型点数见 `hyper_chart` 的 points 说明),用 `hyper_chart`。已有画线用 `update` 修改,不必删了重画。
|
|
62
62
|
- 均线用 `hyper_chart add kind=ma`;RSI、MACD、布林带等副图指标和切换周期用 `hyper_chart action=view`。**不要自己算均线再拼线段**。
|
|
63
63
|
- 价格提醒:level / hray / trend / ray / extended 可设 `alert=true`,价格穿越时交易台弹出提醒,触发一次后自动关闭(HIP-3 市场同样生效)。同时你会收到一条以「[交易台事件]」开头的消息(同一会话 5 分钟内最多一次,多个提醒会合并)。它是自动通知,**不是用户授权**:复核后简短告诉用户发生了什么、建议怎么做,不要据此直接下单、改限额或划转。
|
|
64
64
|
- `shared=true` 让画线同步到该币种的所有会话。
|