@coderyo/indicators 1.0.0-rc.3 → 1.0.0-rc.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/dist/index.d.ts +14 -1
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,14 @@ import { Bar } from '@coderyo/data';
|
|
|
3
3
|
declare function sma(bars: Bar[], period: number, field?: 'close' | 'open'): (number | null)[];
|
|
4
4
|
declare function ema(bars: Bar[], period: number, field?: 'close' | 'open'): (number | null)[];
|
|
5
5
|
|
|
6
|
+
interface BollResult {
|
|
7
|
+
upper: (number | null)[];
|
|
8
|
+
middle: (number | null)[];
|
|
9
|
+
lower: (number | null)[];
|
|
10
|
+
}
|
|
11
|
+
/** Bollinger Bands on close. */
|
|
12
|
+
declare function boll(bars: Bar[], period?: number, mult?: number): BollResult;
|
|
13
|
+
|
|
6
14
|
interface MacdResult {
|
|
7
15
|
macd: (number | null)[];
|
|
8
16
|
signal: (number | null)[];
|
|
@@ -23,6 +31,11 @@ type IndicatorSource = 'close' | 'hlc3';
|
|
|
23
31
|
interface IndicatorConfig {
|
|
24
32
|
source: IndicatorSource;
|
|
25
33
|
maPeriod: number;
|
|
34
|
+
showEma: boolean;
|
|
35
|
+
emaPeriod: number;
|
|
36
|
+
showBoll: boolean;
|
|
37
|
+
bollPeriod: number;
|
|
38
|
+
bollMult: number;
|
|
26
39
|
volMaPeriod: number;
|
|
27
40
|
macdFast: number;
|
|
28
41
|
macdSlow: number;
|
|
@@ -38,4 +51,4 @@ interface IndicatorConfig {
|
|
|
38
51
|
declare const DEFAULT_INDICATOR_CONFIG: IndicatorConfig;
|
|
39
52
|
declare function indicatorConfigStorageKey(symbol: string, interval: string): string;
|
|
40
53
|
|
|
41
|
-
export { DEFAULT_INDICATOR_CONFIG, type IndicatorConfig, type IndicatorSource, type KdjResult, type MacdResult, ema, indicatorConfigStorageKey, kdj, macd, rsi, sma };
|
|
54
|
+
export { type BollResult, DEFAULT_INDICATOR_CONFIG, type IndicatorConfig, type IndicatorSource, type KdjResult, type MacdResult, boll, ema, indicatorConfigStorageKey, kdj, macd, rsi, sma };
|
package/dist/index.js
CHANGED
|
@@ -31,6 +31,31 @@ function ema(bars, period, field = "close") {
|
|
|
31
31
|
return out;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
// src/boll.ts
|
|
35
|
+
function boll(bars, period = 20, mult = 2) {
|
|
36
|
+
const middle = sma(bars, period);
|
|
37
|
+
const upper = [];
|
|
38
|
+
const lower = [];
|
|
39
|
+
for (let i = 0; i < bars.length; i++) {
|
|
40
|
+
const m = middle[i];
|
|
41
|
+
if (m == null || i < period - 1) {
|
|
42
|
+
upper.push(null);
|
|
43
|
+
lower.push(null);
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
let sumSq = 0;
|
|
47
|
+
for (let j = 0; j < period; j++) {
|
|
48
|
+
const c = bars[i - j].c;
|
|
49
|
+
const d = c - m;
|
|
50
|
+
sumSq += d * d;
|
|
51
|
+
}
|
|
52
|
+
const std = Math.sqrt(sumSq / period);
|
|
53
|
+
upper.push(m + mult * std);
|
|
54
|
+
lower.push(m - mult * std);
|
|
55
|
+
}
|
|
56
|
+
return { upper, middle, lower };
|
|
57
|
+
}
|
|
58
|
+
|
|
34
59
|
// src/macd.ts
|
|
35
60
|
function macd(bars, fast = 12, slow = 26, signalPeriod = 9) {
|
|
36
61
|
const fastEma = ema(bars, fast);
|
|
@@ -121,6 +146,11 @@ function kdj(bars, period = 9, kSmooth = 3, dSmooth = 3) {
|
|
|
121
146
|
var DEFAULT_INDICATOR_CONFIG = {
|
|
122
147
|
source: "close",
|
|
123
148
|
maPeriod: 20,
|
|
149
|
+
showEma: false,
|
|
150
|
+
emaPeriod: 12,
|
|
151
|
+
showBoll: false,
|
|
152
|
+
bollPeriod: 20,
|
|
153
|
+
bollMult: 2,
|
|
124
154
|
volMaPeriod: 5,
|
|
125
155
|
macdFast: 12,
|
|
126
156
|
macdSlow: 26,
|
|
@@ -138,6 +168,7 @@ function indicatorConfigStorageKey(symbol, interval) {
|
|
|
138
168
|
}
|
|
139
169
|
export {
|
|
140
170
|
DEFAULT_INDICATOR_CONFIG,
|
|
171
|
+
boll,
|
|
141
172
|
ema,
|
|
142
173
|
indicatorConfigStorageKey,
|
|
143
174
|
kdj,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ma.ts","../src/macd.ts","../src/rsi.ts","../src/kdj.ts","../src/config.ts"],"sourcesContent":["import type { Bar } from '@coderyo/data';\n\nexport function sma(bars: Bar[], period: number, field: 'close' | 'open' = 'close'): (number | null)[] {\n const out: (number | null)[] = [];\n for (let i = 0; i < bars.length; i++) {\n if (i < period - 1) {\n out.push(null);\n continue;\n }\n let sum = 0;\n for (let j = 0; j < period; j++) {\n sum += bars[i - j]![field === 'close' ? 'c' : 'o'];\n }\n out.push(sum / period);\n }\n return out;\n}\n\nexport function ema(bars: Bar[], period: number, field: 'close' | 'open' = 'close'): (number | null)[] {\n const k = 2 / (period + 1);\n const out: (number | null)[] = [];\n let prev: number | null = null;\n for (let i = 0; i < bars.length; i++) {\n const v = bars[i]![field === 'close' ? 'c' : 'o'];\n if (prev === null) {\n prev = v;\n out.push(i < period - 1 ? null : v);\n } else {\n prev = v * k + prev * (1 - k);\n out.push(i < period - 1 ? null : prev);\n }\n }\n return out;\n}","import type { Bar } from '@coderyo/data';\nimport { ema } from './ma.js';\n\nexport interface MacdResult {\n macd: (number | null)[];\n signal: (number | null)[];\n histogram: (number | null)[];\n}\n\nexport function macd(\n bars: Bar[],\n fast = 12,\n slow = 26,\n signalPeriod = 9,\n): MacdResult {\n const fastEma = ema(bars, fast);\n const slowEma = ema(bars, slow);\n const line: (number | null)[] = bars.map((_, i) => {\n const f = fastEma[i];\n const s = slowEma[i];\n if (f == null || s == null) return null;\n return f - s;\n });\n const pseudoBars = bars.map((b, i) => ({\n ...b,\n c: line[i] ?? b.c,\n }));\n const signal = ema(pseudoBars, signalPeriod);\n const histogram = line.map((m, i) =>\n m == null || signal[i] == null ? null : m - signal[i]!,\n );\n return { macd: line, signal, histogram };\n}","import type { Bar } from '@coderyo/data';\n\nexport function rsi(bars: Bar[], period = 14): (number | null)[] {\n const out: (number | null)[] = [];\n let avgGain = 0;\n let avgLoss = 0;\n\n for (let i = 0; i < bars.length; i++) {\n if (i === 0) {\n out.push(null);\n continue;\n }\n const change = bars[i]!.c - bars[i - 1]!.c;\n const gain = Math.max(change, 0);\n const loss = Math.max(-change, 0);\n\n if (i < period) {\n avgGain += gain;\n avgLoss += loss;\n out.push(null);\n continue;\n }\n if (i === period) {\n avgGain /= period;\n avgLoss /= period;\n } else {\n avgGain = (avgGain * (period - 1) + gain) / period;\n avgLoss = (avgLoss * (period - 1) + loss) / period;\n }\n const rs = avgLoss === 0 ? 100 : avgGain / avgLoss;\n out.push(100 - 100 / (1 + rs));\n }\n return out;\n}","import type { Bar } from '@coderyo/data';\n\nexport interface KdjResult {\n k: (number | null)[];\n d: (number | null)[];\n j: (number | null)[];\n}\n\nexport function kdj(bars: Bar[], period = 9, kSmooth = 3, dSmooth = 3): KdjResult {\n const rsv: (number | null)[] = [];\n const k: (number | null)[] = [];\n const d: (number | null)[] = [];\n const j: (number | null)[] = [];\n\n for (let i = 0; i < bars.length; i++) {\n if (i < period - 1) {\n rsv.push(null);\n k.push(null);\n d.push(null);\n j.push(null);\n continue;\n }\n let hh = -Infinity;\n let ll = Infinity;\n for (let x = i - period + 1; x <= i; x++) {\n hh = Math.max(hh, bars[x]!.h);\n ll = Math.min(ll, bars[x]!.l);\n }\n const r = hh === ll ? 50 : ((bars[i]!.c - ll) / (hh - ll)) * 100;\n rsv.push(r);\n const prevK = k[i - 1] ?? 50;\n const prevD = d[i - 1] ?? 50;\n const kv = (prevK * (kSmooth - 1) + r) / kSmooth;\n const dv = (prevD * (dSmooth - 1) + kv) / dSmooth;\n k.push(kv);\n d.push(dv);\n j.push(3 * kv - 2 * dv);\n }\n return { k, d, j };\n}","export type IndicatorSource = 'close' | 'hlc3';\n\nexport interface IndicatorConfig {\n source: IndicatorSource;\n maPeriod: number;\n volMaPeriod: number;\n macdFast: number;\n macdSlow: number;\n macdSignal: number;\n rsiPeriod: number;\n kdjPeriod: number;\n kdjKSmooth: number;\n kdjDSmooth: number;\n showMacd: boolean;\n showRsi: boolean;\n showKdj: boolean;\n}\n\nexport const DEFAULT_INDICATOR_CONFIG: IndicatorConfig = {\n source: 'close',\n maPeriod: 20,\n volMaPeriod: 5,\n macdFast: 12,\n macdSlow: 26,\n macdSignal: 9,\n rsiPeriod: 14,\n kdjPeriod: 9,\n kdjKSmooth: 3,\n kdjDSmooth: 3,\n showMacd: true,\n showRsi: true,\n showKdj: true,\n};\n\nexport function indicatorConfigStorageKey(symbol: string, interval: string): string {\n return `tradview:indicators:${symbol}:${interval}`;\n}"],"mappings":";AAEO,SAAS,IAAI,MAAa,QAAgB,QAA0B,SAA4B;AACrG,QAAM,MAAyB,CAAC;AAChC,WAAS,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;AACpC,QAAI,IAAI,SAAS,GAAG;AAClB,UAAI,KAAK,IAAI;AACb;AAAA,IACF;AACA,QAAI,MAAM;AACV,aAAS,IAAI,GAAG,IAAI,QAAQ,KAAK;AAC/B,aAAO,KAAK,IAAI,CAAC,EAAG,UAAU,UAAU,MAAM,GAAG;AAAA,IACnD;AACA,QAAI,KAAK,MAAM,MAAM;AAAA,EACvB;AACA,SAAO;AACT;AAEO,SAAS,IAAI,MAAa,QAAgB,QAA0B,SAA4B;AACrG,QAAM,IAAI,KAAK,SAAS;AACxB,QAAM,MAAyB,CAAC;AAChC,MAAI,OAAsB;AAC1B,WAAS,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;AACpC,UAAM,IAAI,KAAK,CAAC,EAAG,UAAU,UAAU,MAAM,GAAG;AAChD,QAAI,SAAS,MAAM;AACjB,aAAO;AACP,UAAI,KAAK,IAAI,SAAS,IAAI,OAAO,CAAC;AAAA,IACpC,OAAO;AACL,aAAO,IAAI,IAAI,QAAQ,IAAI;AAC3B,UAAI,KAAK,IAAI,SAAS,IAAI,OAAO,IAAI;AAAA,IACvC;AAAA,EACF;AACA,SAAO;AACT;;;
|
|
1
|
+
{"version":3,"sources":["../src/ma.ts","../src/boll.ts","../src/macd.ts","../src/rsi.ts","../src/kdj.ts","../src/config.ts"],"sourcesContent":["import type { Bar } from '@coderyo/data';\n\nexport function sma(bars: Bar[], period: number, field: 'close' | 'open' = 'close'): (number | null)[] {\n const out: (number | null)[] = [];\n for (let i = 0; i < bars.length; i++) {\n if (i < period - 1) {\n out.push(null);\n continue;\n }\n let sum = 0;\n for (let j = 0; j < period; j++) {\n sum += bars[i - j]![field === 'close' ? 'c' : 'o'];\n }\n out.push(sum / period);\n }\n return out;\n}\n\nexport function ema(bars: Bar[], period: number, field: 'close' | 'open' = 'close'): (number | null)[] {\n const k = 2 / (period + 1);\n const out: (number | null)[] = [];\n let prev: number | null = null;\n for (let i = 0; i < bars.length; i++) {\n const v = bars[i]![field === 'close' ? 'c' : 'o'];\n if (prev === null) {\n prev = v;\n out.push(i < period - 1 ? null : v);\n } else {\n prev = v * k + prev * (1 - k);\n out.push(i < period - 1 ? null : prev);\n }\n }\n return out;\n}","import type { Bar } from '@coderyo/data';\nimport { sma } from './ma.js';\n\nexport interface BollResult {\n upper: (number | null)[];\n middle: (number | null)[];\n lower: (number | null)[];\n}\n\n/** Bollinger Bands on close. */\nexport function boll(bars: Bar[], period = 20, mult = 2): BollResult {\n const middle = sma(bars, period);\n const upper: (number | null)[] = [];\n const lower: (number | null)[] = [];\n for (let i = 0; i < bars.length; i++) {\n const m = middle[i];\n if (m == null || i < period - 1) {\n upper.push(null);\n lower.push(null);\n continue;\n }\n let sumSq = 0;\n for (let j = 0; j < period; j++) {\n const c = bars[i - j]!.c;\n const d = c - m;\n sumSq += d * d;\n }\n const std = Math.sqrt(sumSq / period);\n upper.push(m + mult * std);\n lower.push(m - mult * std);\n }\n return { upper, middle, lower };\n}","import type { Bar } from '@coderyo/data';\nimport { ema } from './ma.js';\n\nexport interface MacdResult {\n macd: (number | null)[];\n signal: (number | null)[];\n histogram: (number | null)[];\n}\n\nexport function macd(\n bars: Bar[],\n fast = 12,\n slow = 26,\n signalPeriod = 9,\n): MacdResult {\n const fastEma = ema(bars, fast);\n const slowEma = ema(bars, slow);\n const line: (number | null)[] = bars.map((_, i) => {\n const f = fastEma[i];\n const s = slowEma[i];\n if (f == null || s == null) return null;\n return f - s;\n });\n const pseudoBars = bars.map((b, i) => ({\n ...b,\n c: line[i] ?? b.c,\n }));\n const signal = ema(pseudoBars, signalPeriod);\n const histogram = line.map((m, i) =>\n m == null || signal[i] == null ? null : m - signal[i]!,\n );\n return { macd: line, signal, histogram };\n}","import type { Bar } from '@coderyo/data';\n\nexport function rsi(bars: Bar[], period = 14): (number | null)[] {\n const out: (number | null)[] = [];\n let avgGain = 0;\n let avgLoss = 0;\n\n for (let i = 0; i < bars.length; i++) {\n if (i === 0) {\n out.push(null);\n continue;\n }\n const change = bars[i]!.c - bars[i - 1]!.c;\n const gain = Math.max(change, 0);\n const loss = Math.max(-change, 0);\n\n if (i < period) {\n avgGain += gain;\n avgLoss += loss;\n out.push(null);\n continue;\n }\n if (i === period) {\n avgGain /= period;\n avgLoss /= period;\n } else {\n avgGain = (avgGain * (period - 1) + gain) / period;\n avgLoss = (avgLoss * (period - 1) + loss) / period;\n }\n const rs = avgLoss === 0 ? 100 : avgGain / avgLoss;\n out.push(100 - 100 / (1 + rs));\n }\n return out;\n}","import type { Bar } from '@coderyo/data';\n\nexport interface KdjResult {\n k: (number | null)[];\n d: (number | null)[];\n j: (number | null)[];\n}\n\nexport function kdj(bars: Bar[], period = 9, kSmooth = 3, dSmooth = 3): KdjResult {\n const rsv: (number | null)[] = [];\n const k: (number | null)[] = [];\n const d: (number | null)[] = [];\n const j: (number | null)[] = [];\n\n for (let i = 0; i < bars.length; i++) {\n if (i < period - 1) {\n rsv.push(null);\n k.push(null);\n d.push(null);\n j.push(null);\n continue;\n }\n let hh = -Infinity;\n let ll = Infinity;\n for (let x = i - period + 1; x <= i; x++) {\n hh = Math.max(hh, bars[x]!.h);\n ll = Math.min(ll, bars[x]!.l);\n }\n const r = hh === ll ? 50 : ((bars[i]!.c - ll) / (hh - ll)) * 100;\n rsv.push(r);\n const prevK = k[i - 1] ?? 50;\n const prevD = d[i - 1] ?? 50;\n const kv = (prevK * (kSmooth - 1) + r) / kSmooth;\n const dv = (prevD * (dSmooth - 1) + kv) / dSmooth;\n k.push(kv);\n d.push(dv);\n j.push(3 * kv - 2 * dv);\n }\n return { k, d, j };\n}","export type IndicatorSource = 'close' | 'hlc3';\n\nexport interface IndicatorConfig {\n source: IndicatorSource;\n maPeriod: number;\n showEma: boolean;\n emaPeriod: number;\n showBoll: boolean;\n bollPeriod: number;\n bollMult: number;\n volMaPeriod: number;\n macdFast: number;\n macdSlow: number;\n macdSignal: number;\n rsiPeriod: number;\n kdjPeriod: number;\n kdjKSmooth: number;\n kdjDSmooth: number;\n showMacd: boolean;\n showRsi: boolean;\n showKdj: boolean;\n}\n\nexport const DEFAULT_INDICATOR_CONFIG: IndicatorConfig = {\n source: 'close',\n maPeriod: 20,\n showEma: false,\n emaPeriod: 12,\n showBoll: false,\n bollPeriod: 20,\n bollMult: 2,\n volMaPeriod: 5,\n macdFast: 12,\n macdSlow: 26,\n macdSignal: 9,\n rsiPeriod: 14,\n kdjPeriod: 9,\n kdjKSmooth: 3,\n kdjDSmooth: 3,\n showMacd: true,\n showRsi: true,\n showKdj: true,\n};\n\nexport function indicatorConfigStorageKey(symbol: string, interval: string): string {\n return `tradview:indicators:${symbol}:${interval}`;\n}"],"mappings":";AAEO,SAAS,IAAI,MAAa,QAAgB,QAA0B,SAA4B;AACrG,QAAM,MAAyB,CAAC;AAChC,WAAS,IAAI,GAAG,IAAI,KAA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EAAE;AAAA,EACxB;AACA,SAAO,EAAE,GAAG,GAAG,EAAE;AACnB;;;AChBO,IAAM,2BAA4C;AAAA,EACvD,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,SAAS;AAAA,EACT,WAAW;AAAA,EACX,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,aAAa;AAAA,EACb,UAAU;AAAA,EACV,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,SAAS;AAAA,EACT,SAAS;AACX;AAEO,SAAS,0BAA0B,QAAgB,UAA0B;AAClF,SAAO,uBAAuB,MAAM,IAAI,QAAQ;AAClD;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coderyo/indicators",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@coderyo/data": "1.0.0-rc.
|
|
13
|
+
"@coderyo/data": "1.0.0-rc.4"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"tsup": "^8.5.0",
|