@dshtrading/indicator-supertrend 0.1.0
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/LICENSE +75 -0
- package/lib/client.js +112 -0
- package/lib/client.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js +10 -0
- package/package.json +42 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
Copyright (c) 2026 zhu1090093659 (dsh-trading)
|
|
2
|
+
|
|
3
|
+
# PolyForm Noncommercial License 1.0.0
|
|
4
|
+
|
|
5
|
+
<https://polyformproject.org/licenses/noncommercial/1.0.0>
|
|
6
|
+
|
|
7
|
+
## Acceptance
|
|
8
|
+
|
|
9
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
10
|
+
|
|
11
|
+
## Copyright License
|
|
12
|
+
|
|
13
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
|
|
14
|
+
|
|
15
|
+
## Distribution License
|
|
16
|
+
|
|
17
|
+
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
|
|
18
|
+
|
|
19
|
+
## Notices
|
|
20
|
+
|
|
21
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
|
|
22
|
+
|
|
23
|
+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
24
|
+
|
|
25
|
+
## Changes and New Works License
|
|
26
|
+
|
|
27
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
28
|
+
|
|
29
|
+
## Patent License
|
|
30
|
+
|
|
31
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
32
|
+
|
|
33
|
+
## Noncommercial Purposes
|
|
34
|
+
|
|
35
|
+
Any noncommercial purpose is a permitted purpose.
|
|
36
|
+
|
|
37
|
+
## Personal Uses
|
|
38
|
+
|
|
39
|
+
Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
|
|
40
|
+
|
|
41
|
+
## Noncommercial Organizations
|
|
42
|
+
|
|
43
|
+
Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
|
|
44
|
+
|
|
45
|
+
## Fair Use
|
|
46
|
+
|
|
47
|
+
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
48
|
+
|
|
49
|
+
## No Other Rights
|
|
50
|
+
|
|
51
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
52
|
+
|
|
53
|
+
## Patent Defense
|
|
54
|
+
|
|
55
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
56
|
+
|
|
57
|
+
## Violations
|
|
58
|
+
|
|
59
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
60
|
+
|
|
61
|
+
## No Liability
|
|
62
|
+
|
|
63
|
+
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
|
|
64
|
+
|
|
65
|
+
## Definitions
|
|
66
|
+
|
|
67
|
+
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
|
|
68
|
+
|
|
69
|
+
**You** refers to the individual or entity agreeing to these terms.
|
|
70
|
+
|
|
71
|
+
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
72
|
+
|
|
73
|
+
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
74
|
+
|
|
75
|
+
**Use** means anything you do with the software requiring one of your licenses.
|
package/lib/client.js
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
window.__ModuleLoader__.load({
|
|
2
|
+
id: "@dshtrading/indicator-supertrend",
|
|
3
|
+
factory: (require) => {
|
|
4
|
+
var module = { exports: {} };
|
|
5
|
+
var exports = module.exports;
|
|
6
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
7
|
+
//#region src/client/index.ts
|
|
8
|
+
/** Wilder 平滑 ATR(本地实现:社区指标自带数学内核的形态)。 */
|
|
9
|
+
function atr(highs, lows, closes, period) {
|
|
10
|
+
const n = closes.length;
|
|
11
|
+
const out = new Array(n).fill(void 0);
|
|
12
|
+
if (!Number.isFinite(period) || period < 1 || n <= period) return out;
|
|
13
|
+
const tr = [highs[0] - lows[0]];
|
|
14
|
+
for (let index = 1; index < n; index++) tr.push(Math.max(highs[index] - lows[index], Math.abs(highs[index] - closes[index - 1]), Math.abs(lows[index] - closes[index - 1])));
|
|
15
|
+
let prev = 0;
|
|
16
|
+
for (let index = 0; index < period; index++) prev += tr[index];
|
|
17
|
+
prev /= period;
|
|
18
|
+
out[period] = prev;
|
|
19
|
+
for (let index = period + 1; index < n; index++) {
|
|
20
|
+
prev = (prev * (period - 1) + tr[index]) / period;
|
|
21
|
+
out[index] = prev;
|
|
22
|
+
}
|
|
23
|
+
return out;
|
|
24
|
+
}
|
|
25
|
+
/** 超级趋势 definition:多空分段双色 Area 趋势带(上升趋势多头绿带 + 向上淡绿阴影,下降趋势空头红带 + 向下淡红阴影)。 */
|
|
26
|
+
function supertrendDefinition() {
|
|
27
|
+
return {
|
|
28
|
+
id: "supertrend",
|
|
29
|
+
pane: "main",
|
|
30
|
+
title: "超级趋势",
|
|
31
|
+
params: [{
|
|
32
|
+
key: "period",
|
|
33
|
+
label: "周期",
|
|
34
|
+
default: 10,
|
|
35
|
+
min: 2,
|
|
36
|
+
max: 100
|
|
37
|
+
}, {
|
|
38
|
+
key: "mult",
|
|
39
|
+
label: "倍数",
|
|
40
|
+
default: 3,
|
|
41
|
+
min: 1,
|
|
42
|
+
max: 10
|
|
43
|
+
}],
|
|
44
|
+
compute(bars, params) {
|
|
45
|
+
const n = bars.length;
|
|
46
|
+
const highs = bars.map((bar) => bar.high);
|
|
47
|
+
const lows = bars.map((bar) => bar.low);
|
|
48
|
+
const closes = bars.map((bar) => bar.close);
|
|
49
|
+
const atrSeries = atr(highs, lows, closes, params.period);
|
|
50
|
+
const upValues = new Array(n).fill(void 0);
|
|
51
|
+
const downValues = new Array(n).fill(void 0);
|
|
52
|
+
let trend = 1;
|
|
53
|
+
let finalUpper = 0;
|
|
54
|
+
let finalLower = 0;
|
|
55
|
+
let started = false;
|
|
56
|
+
for (let index = 0; index < n; index++) {
|
|
57
|
+
const av = atrSeries[index];
|
|
58
|
+
if (av === void 0) continue;
|
|
59
|
+
const mid = (highs[index] + lows[index]) / 2;
|
|
60
|
+
const upper = mid + params.mult * av;
|
|
61
|
+
const lower = mid - params.mult * av;
|
|
62
|
+
if (!started) {
|
|
63
|
+
finalUpper = upper;
|
|
64
|
+
finalLower = lower;
|
|
65
|
+
started = true;
|
|
66
|
+
trend = 1;
|
|
67
|
+
upValues[index] = finalLower;
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
finalUpper = upper < finalUpper || closes[index - 1] > finalUpper ? upper : finalUpper;
|
|
71
|
+
finalLower = lower > finalLower || closes[index - 1] < finalLower ? lower : finalLower;
|
|
72
|
+
if (trend === 1 && closes[index] < finalLower) trend = -1;
|
|
73
|
+
else if (trend === -1 && closes[index] > finalUpper) trend = 1;
|
|
74
|
+
if (trend === 1) upValues[index] = finalLower;
|
|
75
|
+
else downValues[index] = finalUpper;
|
|
76
|
+
}
|
|
77
|
+
return [{
|
|
78
|
+
key: "UP",
|
|
79
|
+
kind: "area",
|
|
80
|
+
color: "#2ba471",
|
|
81
|
+
topColor: "rgba(43, 164, 113, 0.00)",
|
|
82
|
+
bottomColor: "rgba(43, 164, 113, 0.18)",
|
|
83
|
+
invertFilledArea: true,
|
|
84
|
+
lineWidth: 1.5,
|
|
85
|
+
values: upValues
|
|
86
|
+
}, {
|
|
87
|
+
key: "DN",
|
|
88
|
+
kind: "area",
|
|
89
|
+
color: "#e64545",
|
|
90
|
+
topColor: "rgba(230, 69, 69, 0.18)",
|
|
91
|
+
bottomColor: "rgba(230, 69, 69, 0.00)",
|
|
92
|
+
invertFilledArea: false,
|
|
93
|
+
lineWidth: 1.5,
|
|
94
|
+
values: downValues
|
|
95
|
+
}];
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function apply(ctx) {
|
|
100
|
+
ctx.inject(["tradingIndicators"], (scope) => {
|
|
101
|
+
scope.tradingIndicators.register(supertrendDefinition());
|
|
102
|
+
console.info("[indicator-supertrend] registered via tradingIndicators service");
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
//#endregion
|
|
106
|
+
exports.apply = apply;
|
|
107
|
+
exports.supertrendDefinition = supertrendDefinition;
|
|
108
|
+
return module.exports;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","names":[],"sources":["../src/client/index.ts"],"sourcesContent":["/**\n * 超级趋势(社区指标示例/spike,client 半):证明第三方指标插件可以只经\n * tradingIndicators 服务接入——本包不依赖 @dshtrading/indicators 的运行时\n * (ATR 本地实现,类型 type-only import),不注册任何 slot,与行情壳零耦合。\n *\n * 接入方式 = ctx.inject(['tradingIndicators'], …)(服务可用时回调才触发;\n * cordis 依赖解析保证晚于提供方 provide)→ register(definition) 上榜。\n *\n * i18n-allow: 独立示例插件,指标标题/参数文案本期不进词典(与预置指标中文 title 同口径)。\n */\nimport type { Context } from '@deepseek-ai/cordis'\nimport type { IndicatorDefinition, Kline, Series } from '@dshtrading/indicators'\n\n/** Wilder 平滑 ATR(本地实现:社区指标自带数学内核的形态)。 */\nfunction atr(highs: readonly number[], lows: readonly number[], closes: readonly number[], period: number): Series {\n const n = closes.length\n const out: Array<number | undefined> = new Array(n).fill(undefined)\n if (!Number.isFinite(period) || period < 1 || n <= period) return out\n const tr: number[] = [highs[0]! - lows[0]!]\n for (let index = 1; index < n; index++) {\n tr.push(Math.max(\n highs[index]! - lows[index]!,\n Math.abs(highs[index]! - closes[index - 1]!),\n Math.abs(lows[index]! - closes[index - 1]!),\n ))\n }\n let prev = 0\n for (let index = 0; index < period; index++) prev += tr[index]!\n prev /= period\n out[period] = prev\n for (let index = period + 1; index < n; index++) {\n prev = (prev * (period - 1) + tr[index]!) / period\n out[index] = prev\n }\n return out\n}\n\n/** 超级趋势 definition:多空分段双色 Area 趋势带(上升趋势多头绿带 + 向上淡绿阴影,下降趋势空头红带 + 向下淡红阴影)。 */\nexport function supertrendDefinition(): IndicatorDefinition {\n return {\n id: 'supertrend',\n pane: 'main',\n title: '超级趋势',\n params: [\n { key: 'period', label: '周期', default: 10, min: 2, max: 100 },\n { key: 'mult', label: '倍数', default: 3, min: 1, max: 10 },\n ],\n compute(bars: readonly Kline[], params: Readonly<Record<string, number>>) {\n const n = bars.length\n const highs = bars.map(bar => bar.high)\n const lows = bars.map(bar => bar.low)\n const closes = bars.map(bar => bar.close)\n const atrSeries = atr(highs, lows, closes, params.period)\n const upValues: Array<number | undefined> = new Array(n).fill(undefined)\n const downValues: Array<number | undefined> = new Array(n).fill(undefined)\n let trend = 1\n let finalUpper = 0\n let finalLower = 0\n let started = false\n for (let index = 0; index < n; index++) {\n const av = atrSeries[index]\n if (av === undefined) continue\n const mid = (highs[index]! + lows[index]!) / 2\n const upper = mid + params.mult * av\n const lower = mid - params.mult * av\n if (!started) {\n finalUpper = upper\n finalLower = lower\n started = true\n trend = 1\n upValues[index] = finalLower\n continue\n }\n // band 收敛规则:新带更紧或趋势未破旧带时沿用新/旧带(标准 SuperTrend)。\n finalUpper = (upper < finalUpper || closes[index - 1]! > finalUpper) ? upper : finalUpper\n finalLower = (lower > finalLower || closes[index - 1]! < finalLower) ? lower : finalLower\n if (trend === 1 && closes[index]! < finalLower) trend = -1\n else if (trend === -1 && closes[index]! > finalUpper) trend = 1\n\n if (trend === 1) {\n upValues[index] = finalLower\n } else {\n downValues[index] = finalUpper\n }\n }\n return [\n {\n key: 'UP',\n kind: 'area' as const,\n color: '#2ba471',\n topColor: 'rgba(43, 164, 113, 0.00)',\n bottomColor: 'rgba(43, 164, 113, 0.18)',\n invertFilledArea: true,\n lineWidth: 1.5,\n values: upValues,\n },\n {\n key: 'DN',\n kind: 'area' as const,\n color: '#e64545',\n topColor: 'rgba(230, 69, 69, 0.18)',\n bottomColor: 'rgba(230, 69, 69, 0.00)',\n invertFilledArea: false,\n lineWidth: 1.5,\n values: downValues,\n },\n ]\n },\n }\n}\n\nexport function apply(ctx: Context): void {\n ctx.inject(['tradingIndicators'] as never, (scope) => {\n const service = (scope as unknown as {\n tradingIndicators: { register(definition: IndicatorDefinition): void }\n }).tradingIndicators\n service.register(supertrendDefinition())\n console.info('[indicator-supertrend] registered via tradingIndicators service')\n })\n}\n"],"mappings":"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"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/index.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* indicator-supertrend node half. Empty apply so the row appears in the
|
|
4
|
+
* host cordis.yml / Loader (mounted via a profile-level patch row — the
|
|
5
|
+
* community-plugin path); the browser half owns the indicator registration.
|
|
6
|
+
*/
|
|
7
|
+
/** Host plugin body — no host-side behavior. */
|
|
8
|
+
declare function apply(): void;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { apply };
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* indicator-supertrend node half. Empty apply so the row appears in the
|
|
4
|
+
* host cordis.yml / Loader (mounted via a profile-level patch row — the
|
|
5
|
+
* community-plugin path); the browser half owns the indicator registration.
|
|
6
|
+
*/
|
|
7
|
+
/** Host plugin body — no host-side behavior. */
|
|
8
|
+
function apply() {}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { apply };
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dshtrading/indicator-supertrend",
|
|
3
|
+
"description": "SPIKE (community-indicator example, 2026-08-30): third-party technical indicator plugin proving the tradingIndicators service channel — injects the service and registers a Supertrend (超级趋势) definition. ATR is implemented locally (zero runtime dependency on @dshtrading/indicators); types are type-only imports. Not wired into any bundle: mounted by a profile-level cordis.patch.yml row, emulating how a real community plugin joins.",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"types": "./lib/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./lib/index.d.ts",
|
|
11
|
+
"default": "./lib/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./client": {
|
|
14
|
+
"types": "./lib/types/client/index.d.ts",
|
|
15
|
+
"default": "./lib/client.js"
|
|
16
|
+
},
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"lib"
|
|
21
|
+
],
|
|
22
|
+
"license": "PolyForm-Noncommercial-1.0.0",
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"@deepseek-ai/cordis": ">=4.0.0"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"tsdown": "^0.22.0",
|
|
28
|
+
"vitest": "^3.0.0",
|
|
29
|
+
"typescript": "^5.5.0",
|
|
30
|
+
"@dshtrading/indicators": "^0.1.0"
|
|
31
|
+
},
|
|
32
|
+
"dsh": {
|
|
33
|
+
"client": {
|
|
34
|
+
"inject": [],
|
|
35
|
+
"platform": "web"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "tsdown && tsdown --config tsdown.client.config.mjs",
|
|
40
|
+
"test": "vitest run"
|
|
41
|
+
}
|
|
42
|
+
}
|