@tradecanvas/commons 1.47.0 → 1.49.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/dist/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/market/types.d.ts +10 -0
- package/dist/market/types.d.ts.map +1 -1
- package/dist/types/builtInIndicators.d.ts +1326 -0
- package/dist/types/builtInIndicators.d.ts.map +1 -0
- package/dist/types/chart.d.ts +3 -1
- package/dist/types/chart.d.ts.map +1 -1
- package/dist/types/execution.d.ts +11 -1
- package/dist/types/execution.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/indicator.d.ts +15 -0
- package/dist/types/indicator.d.ts.map +1 -1
- package/dist/types/realtime.d.ts +29 -1
- package/dist/types/realtime.d.ts.map +1 -1
- package/dist/types/style.d.ts +3 -1
- package/dist/types/style.d.ts.map +1 -1
- package/dist/utils/time.d.ts +1 -0
- package/dist/utils/time.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,1326 @@
|
|
|
1
|
+
import { NumberParam } from './indicator.js';
|
|
2
|
+
/**
|
|
3
|
+
* The 134 built-in indicators, by id: the inputs
|
|
4
|
+
* `chart.addIndicator(id, params)` takes, each optional (its default in its
|
|
5
|
+
* note), and the keys of the lines it draws, as
|
|
6
|
+
* `chart.getIndicatorOutput(instanceId)` and `indicatorSource(instanceId, key)`
|
|
7
|
+
* name them (an output may hold a few more, such as Ichimoku's `chikou`).
|
|
8
|
+
* The chart adds four that read other symbols, `compareSymbol`, `spread`,
|
|
9
|
+
* `correlation` and `correlationlog`; they take any inputs.
|
|
10
|
+
*/
|
|
11
|
+
export interface BuiltInIndicators {
|
|
12
|
+
/** Simple Moving Average, on the price pane. Lines: `value` (SMA). */
|
|
13
|
+
sma: {
|
|
14
|
+
params: {
|
|
15
|
+
/** Default 20. */
|
|
16
|
+
period?: NumberParam;
|
|
17
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
18
|
+
source?: string;
|
|
19
|
+
};
|
|
20
|
+
lines: 'value';
|
|
21
|
+
};
|
|
22
|
+
/** Exponential Moving Average, on the price pane. Lines: `value` (EMA). */
|
|
23
|
+
ema: {
|
|
24
|
+
params: {
|
|
25
|
+
/** Default 20. */
|
|
26
|
+
period?: NumberParam;
|
|
27
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
28
|
+
source?: string;
|
|
29
|
+
};
|
|
30
|
+
lines: 'value';
|
|
31
|
+
};
|
|
32
|
+
/** Bollinger Bands, on the price pane. Lines: `upper` (Upper), `middle` (Basis), `lower` (Lower). */
|
|
33
|
+
bb: {
|
|
34
|
+
params: {
|
|
35
|
+
/** Default 20. */
|
|
36
|
+
period?: NumberParam;
|
|
37
|
+
/** Default 2. */
|
|
38
|
+
stdDev?: NumberParam;
|
|
39
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
40
|
+
source?: string;
|
|
41
|
+
};
|
|
42
|
+
lines: 'upper' | 'middle' | 'lower';
|
|
43
|
+
};
|
|
44
|
+
/** Volume Weighted Average Price, on the price pane. Lines: `value` (VWAP). */
|
|
45
|
+
vwap: {
|
|
46
|
+
params: {};
|
|
47
|
+
lines: 'value';
|
|
48
|
+
};
|
|
49
|
+
/** Ichimoku Cloud, on the price pane. Lines: `tenkan` (Conversion), `kijun` (Base), `senkouA` (Lead A), `senkouB` (Lead B). */
|
|
50
|
+
ichimoku: {
|
|
51
|
+
params: {
|
|
52
|
+
/** Default 9. */
|
|
53
|
+
tenkan?: NumberParam;
|
|
54
|
+
/** Default 26. */
|
|
55
|
+
kijun?: NumberParam;
|
|
56
|
+
/** Default 52. */
|
|
57
|
+
senkou?: NumberParam;
|
|
58
|
+
/** Default 26. */
|
|
59
|
+
displacement?: NumberParam;
|
|
60
|
+
};
|
|
61
|
+
lines: 'tenkan' | 'kijun' | 'senkouA' | 'senkouB';
|
|
62
|
+
};
|
|
63
|
+
/** Parabolic SAR, on the price pane. Lines: `value` (SAR). */
|
|
64
|
+
psar: {
|
|
65
|
+
params: {
|
|
66
|
+
/** Default 0.02. */
|
|
67
|
+
step?: NumberParam;
|
|
68
|
+
/** Default 0.2. */
|
|
69
|
+
max?: NumberParam;
|
|
70
|
+
};
|
|
71
|
+
lines: 'value';
|
|
72
|
+
};
|
|
73
|
+
/** Supertrend, on the price pane. Lines: `value` (Supertrend). */
|
|
74
|
+
supertrend: {
|
|
75
|
+
params: {
|
|
76
|
+
/** Default 10. */
|
|
77
|
+
period?: NumberParam;
|
|
78
|
+
/** Default 3. */
|
|
79
|
+
multiplier?: NumberParam;
|
|
80
|
+
};
|
|
81
|
+
lines: 'value';
|
|
82
|
+
};
|
|
83
|
+
/** Keltner Channel, on the price pane. Lines: `upper` (Upper), `middle` (Basis), `lower` (Lower). */
|
|
84
|
+
keltner: {
|
|
85
|
+
params: {
|
|
86
|
+
/** Default 20. */
|
|
87
|
+
emaPeriod?: NumberParam;
|
|
88
|
+
/** Default 10. */
|
|
89
|
+
atrPeriod?: NumberParam;
|
|
90
|
+
/** Default 1.5. */
|
|
91
|
+
multiplier?: NumberParam;
|
|
92
|
+
};
|
|
93
|
+
lines: 'upper' | 'middle' | 'lower';
|
|
94
|
+
};
|
|
95
|
+
/** Donchian Channel, on the price pane. Lines: `upper` (Upper), `middle` (Basis), `lower` (Lower). */
|
|
96
|
+
donchian: {
|
|
97
|
+
params: {
|
|
98
|
+
/** Default 20. */
|
|
99
|
+
period?: NumberParam;
|
|
100
|
+
};
|
|
101
|
+
lines: 'upper' | 'middle' | 'lower';
|
|
102
|
+
};
|
|
103
|
+
/** Pivot Points, on the price pane. Lines: `r3` (R3), `r2` (R2), `r1` (R1), `pp` (P), `s1` (S1), `s2` (S2), `s3` (S3). */
|
|
104
|
+
pivots: {
|
|
105
|
+
params: {
|
|
106
|
+
/** At least 1. Default 24. */
|
|
107
|
+
lookback?: NumberParam;
|
|
108
|
+
/** Default `'traditional'`. */
|
|
109
|
+
type?: 'traditional' | 'fibonacci' | 'woodie' | 'classic' | 'camarilla' | 'dm' | (string & {});
|
|
110
|
+
};
|
|
111
|
+
lines: 'r3' | 'r2' | 'r1' | 'pp' | 's1' | 's2' | 's3';
|
|
112
|
+
};
|
|
113
|
+
/** Anchored VWAP, on the price pane. Lines: `value` (AVWAP). */
|
|
114
|
+
avwap: {
|
|
115
|
+
params: {
|
|
116
|
+
/** Default 0. */
|
|
117
|
+
anchorTime?: NumberParam;
|
|
118
|
+
};
|
|
119
|
+
lines: 'value';
|
|
120
|
+
};
|
|
121
|
+
/** ZigZag, on the price pane. Lines: `pivot` (Pivot). */
|
|
122
|
+
zigzag: {
|
|
123
|
+
params: {
|
|
124
|
+
/** Default 5. */
|
|
125
|
+
deviation?: NumberParam;
|
|
126
|
+
};
|
|
127
|
+
lines: 'pivot';
|
|
128
|
+
};
|
|
129
|
+
/** Linear Regression Channel, on the price pane. Lines: `upper` (Upper), `middle` (Basis), `lower` (Lower). */
|
|
130
|
+
lrc: {
|
|
131
|
+
params: {
|
|
132
|
+
/** Default 100. */
|
|
133
|
+
period?: NumberParam;
|
|
134
|
+
/** Default 2. */
|
|
135
|
+
stdDev?: NumberParam;
|
|
136
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
137
|
+
source?: string;
|
|
138
|
+
};
|
|
139
|
+
lines: 'upper' | 'middle' | 'lower';
|
|
140
|
+
};
|
|
141
|
+
/** Hull Moving Average, on the price pane. Lines: `value` (HMA). */
|
|
142
|
+
hma: {
|
|
143
|
+
params: {
|
|
144
|
+
/** Default 21. */
|
|
145
|
+
period?: NumberParam;
|
|
146
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
147
|
+
source?: string;
|
|
148
|
+
};
|
|
149
|
+
lines: 'value';
|
|
150
|
+
};
|
|
151
|
+
/** MTF Moving Average, on the price pane. Lines: `value` (MA). */
|
|
152
|
+
mtfma: {
|
|
153
|
+
params: {
|
|
154
|
+
/** Default 50. */
|
|
155
|
+
period?: NumberParam;
|
|
156
|
+
/** Default `'1d'`. */
|
|
157
|
+
timeframe?: string;
|
|
158
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
159
|
+
source?: string;
|
|
160
|
+
};
|
|
161
|
+
lines: 'value';
|
|
162
|
+
};
|
|
163
|
+
/** Session VWAP, on the price pane. Lines: `value` (VWAP), `u1` (+1σ), `l1` (−1σ), `u2` (+2σ), `l2` (−2σ), `u3` (+3σ), `l3` (−3σ). */
|
|
164
|
+
svwap: {
|
|
165
|
+
params: {
|
|
166
|
+
/** Default 1. */
|
|
167
|
+
bands?: NumberParam;
|
|
168
|
+
};
|
|
169
|
+
lines: 'value' | 'u1' | 'l1' | 'u2' | 'l2' | 'u3' | 'l3';
|
|
170
|
+
};
|
|
171
|
+
/** Chandelier Exit, on the price pane. Lines: `long` (Long), `short` (Short). */
|
|
172
|
+
chandelier: {
|
|
173
|
+
params: {
|
|
174
|
+
/** Default 22. */
|
|
175
|
+
period?: NumberParam;
|
|
176
|
+
/** Default 3. */
|
|
177
|
+
multiplier?: NumberParam;
|
|
178
|
+
};
|
|
179
|
+
lines: 'long' | 'short';
|
|
180
|
+
};
|
|
181
|
+
/** Alligator, on the price pane. Lines: `jaw` (Jaw), `teeth` (Teeth), `lips` (Lips). */
|
|
182
|
+
alligator: {
|
|
183
|
+
params: {
|
|
184
|
+
/** Default 13. */
|
|
185
|
+
jaw?: NumberParam;
|
|
186
|
+
/** Default 8. */
|
|
187
|
+
teeth?: NumberParam;
|
|
188
|
+
/** Default 5. */
|
|
189
|
+
lips?: NumberParam;
|
|
190
|
+
/** Default 8. */
|
|
191
|
+
jawShift?: NumberParam;
|
|
192
|
+
/** Default 5. */
|
|
193
|
+
teethShift?: NumberParam;
|
|
194
|
+
/** Default 3. */
|
|
195
|
+
lipsShift?: NumberParam;
|
|
196
|
+
};
|
|
197
|
+
lines: 'jaw' | 'teeth' | 'lips';
|
|
198
|
+
};
|
|
199
|
+
/** Volume Weighted Moving Average, on the price pane. Lines: `value` (VWMA). */
|
|
200
|
+
vwma: {
|
|
201
|
+
params: {
|
|
202
|
+
/** Default 20. */
|
|
203
|
+
period?: NumberParam;
|
|
204
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
205
|
+
source?: string;
|
|
206
|
+
};
|
|
207
|
+
lines: 'value';
|
|
208
|
+
};
|
|
209
|
+
/** Weighted Moving Average, on the price pane. Lines: `value` (WMA). */
|
|
210
|
+
wma: {
|
|
211
|
+
params: {
|
|
212
|
+
/** Default 20. */
|
|
213
|
+
period?: NumberParam;
|
|
214
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
215
|
+
source?: string;
|
|
216
|
+
};
|
|
217
|
+
lines: 'value';
|
|
218
|
+
};
|
|
219
|
+
/** Moving Average Envelope, on the price pane. Lines: `upper` (Upper), `basis` (Basis), `lower` (Lower). */
|
|
220
|
+
envelope: {
|
|
221
|
+
params: {
|
|
222
|
+
/** Default 20. */
|
|
223
|
+
period?: NumberParam;
|
|
224
|
+
/** Default 2.5. */
|
|
225
|
+
percent?: NumberParam;
|
|
226
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
227
|
+
source?: string;
|
|
228
|
+
};
|
|
229
|
+
lines: 'upper' | 'basis' | 'lower';
|
|
230
|
+
};
|
|
231
|
+
/** Triple EMA, on the price pane. Lines: `value` (TEMA). */
|
|
232
|
+
tema: {
|
|
233
|
+
params: {
|
|
234
|
+
/** Default 20. */
|
|
235
|
+
period?: NumberParam;
|
|
236
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
237
|
+
source?: string;
|
|
238
|
+
};
|
|
239
|
+
lines: 'value';
|
|
240
|
+
};
|
|
241
|
+
/** Relative Strength Index, in a pane of its own. Lines: `value` (RSI). Levels at 30, 70. */
|
|
242
|
+
rsi: {
|
|
243
|
+
params: {
|
|
244
|
+
/** Default 14. */
|
|
245
|
+
period?: NumberParam;
|
|
246
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
247
|
+
source?: string;
|
|
248
|
+
};
|
|
249
|
+
lines: 'value';
|
|
250
|
+
};
|
|
251
|
+
/** MACD, in a pane of its own. Lines: `histogram` (Histogram), `macd` (MACD), `signal` (Signal). */
|
|
252
|
+
macd: {
|
|
253
|
+
params: {
|
|
254
|
+
/** Default 12. */
|
|
255
|
+
fast?: NumberParam;
|
|
256
|
+
/** Default 26. */
|
|
257
|
+
slow?: NumberParam;
|
|
258
|
+
/** Default 9. */
|
|
259
|
+
signal?: NumberParam;
|
|
260
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
261
|
+
source?: string;
|
|
262
|
+
};
|
|
263
|
+
lines: 'histogram' | 'macd' | 'signal';
|
|
264
|
+
};
|
|
265
|
+
/** Stochastic Oscillator, in a pane of its own. Lines: `k` (%K), `d` (%D). Levels at 20, 80. */
|
|
266
|
+
stochastic: {
|
|
267
|
+
params: {
|
|
268
|
+
/** Default 14. */
|
|
269
|
+
kPeriod?: NumberParam;
|
|
270
|
+
/** Default 3. */
|
|
271
|
+
dPeriod?: NumberParam;
|
|
272
|
+
/** Default 3. */
|
|
273
|
+
smooth?: NumberParam;
|
|
274
|
+
};
|
|
275
|
+
lines: 'k' | 'd';
|
|
276
|
+
};
|
|
277
|
+
/** Average True Range, in a pane of its own. Lines: `value` (ATR). */
|
|
278
|
+
atr: {
|
|
279
|
+
params: {
|
|
280
|
+
/** Default 14. */
|
|
281
|
+
period?: NumberParam;
|
|
282
|
+
};
|
|
283
|
+
lines: 'value';
|
|
284
|
+
};
|
|
285
|
+
/** Average Directional Index, in a pane of its own. Lines: `adx` (ADX), `plusDI` (+DI), `minusDI` (−DI). */
|
|
286
|
+
adx: {
|
|
287
|
+
params: {
|
|
288
|
+
/** Default 14. */
|
|
289
|
+
period?: NumberParam;
|
|
290
|
+
};
|
|
291
|
+
lines: 'adx' | 'plusDI' | 'minusDI';
|
|
292
|
+
};
|
|
293
|
+
/** On Balance Volume, in a pane of its own. Lines: `value` (OBV). */
|
|
294
|
+
obv: {
|
|
295
|
+
params: {};
|
|
296
|
+
lines: 'value';
|
|
297
|
+
};
|
|
298
|
+
/** Williams %R, in a pane of its own. Lines: `value` (%R). Levels at -80, -20. */
|
|
299
|
+
williamsR: {
|
|
300
|
+
params: {
|
|
301
|
+
/** Default 14. */
|
|
302
|
+
period?: NumberParam;
|
|
303
|
+
};
|
|
304
|
+
lines: 'value';
|
|
305
|
+
};
|
|
306
|
+
/** Commodity Channel Index, in a pane of its own. Lines: `value` (CCI). Levels at -100, 0, 100. */
|
|
307
|
+
cci: {
|
|
308
|
+
params: {
|
|
309
|
+
/** Default 20. */
|
|
310
|
+
period?: NumberParam;
|
|
311
|
+
};
|
|
312
|
+
lines: 'value';
|
|
313
|
+
};
|
|
314
|
+
/** Money Flow Index, in a pane of its own. Lines: `value` (MFI). Levels at 20, 80. */
|
|
315
|
+
mfi: {
|
|
316
|
+
params: {
|
|
317
|
+
/** Default 14. */
|
|
318
|
+
period?: NumberParam;
|
|
319
|
+
};
|
|
320
|
+
lines: 'value';
|
|
321
|
+
};
|
|
322
|
+
/** Aroon, in a pane of its own. Lines: `up` (Up), `down` (Down). */
|
|
323
|
+
aroon: {
|
|
324
|
+
params: {
|
|
325
|
+
/** Default 25. */
|
|
326
|
+
period?: NumberParam;
|
|
327
|
+
};
|
|
328
|
+
lines: 'up' | 'down';
|
|
329
|
+
};
|
|
330
|
+
/** Rate of Change, in a pane of its own. Lines: `value` (ROC). Levels at 0. */
|
|
331
|
+
roc: {
|
|
332
|
+
params: {
|
|
333
|
+
/** Default 12. */
|
|
334
|
+
period?: NumberParam;
|
|
335
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
336
|
+
source?: string;
|
|
337
|
+
};
|
|
338
|
+
lines: 'value';
|
|
339
|
+
};
|
|
340
|
+
/** True Strength Index, in a pane of its own. Lines: `tsi` (TSI), `signal` (Signal). Levels at 0. */
|
|
341
|
+
tsi: {
|
|
342
|
+
params: {
|
|
343
|
+
/** Default 25. */
|
|
344
|
+
longPeriod?: NumberParam;
|
|
345
|
+
/** Default 13. */
|
|
346
|
+
shortPeriod?: NumberParam;
|
|
347
|
+
/** Default 7. */
|
|
348
|
+
signalPeriod?: NumberParam;
|
|
349
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
350
|
+
source?: string;
|
|
351
|
+
};
|
|
352
|
+
lines: 'tsi' | 'signal';
|
|
353
|
+
};
|
|
354
|
+
/** Chaikin Money Flow, in a pane of its own. Lines: `value` (CMF). */
|
|
355
|
+
cmf: {
|
|
356
|
+
params: {
|
|
357
|
+
/** Default 20. */
|
|
358
|
+
period?: NumberParam;
|
|
359
|
+
};
|
|
360
|
+
lines: 'value';
|
|
361
|
+
};
|
|
362
|
+
/** Standard Deviation, in a pane of its own. Lines: `value` (StdDev). */
|
|
363
|
+
stddev: {
|
|
364
|
+
params: {
|
|
365
|
+
/** Default 20. */
|
|
366
|
+
period?: NumberParam;
|
|
367
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
368
|
+
source?: string;
|
|
369
|
+
};
|
|
370
|
+
lines: 'value';
|
|
371
|
+
};
|
|
372
|
+
/** Volume Profile, on the price pane. No lines. */
|
|
373
|
+
volumeProfile: {
|
|
374
|
+
params: {
|
|
375
|
+
/** Default 24. */
|
|
376
|
+
rows?: NumberParam;
|
|
377
|
+
};
|
|
378
|
+
lines: never;
|
|
379
|
+
};
|
|
380
|
+
/** Accumulation/Distribution, in a pane of its own. Lines: `value` (A/D). */
|
|
381
|
+
ad: {
|
|
382
|
+
params: {};
|
|
383
|
+
lines: 'value';
|
|
384
|
+
};
|
|
385
|
+
/** Volume Rate of Change, in a pane of its own. Lines: `value` (VROC). Levels at 0. */
|
|
386
|
+
vroc: {
|
|
387
|
+
params: {
|
|
388
|
+
/** Default 14. */
|
|
389
|
+
period?: NumberParam;
|
|
390
|
+
};
|
|
391
|
+
lines: 'value';
|
|
392
|
+
};
|
|
393
|
+
/** Awesome Oscillator, in a pane of its own. Lines: `value` (AO). */
|
|
394
|
+
ao: {
|
|
395
|
+
params: {
|
|
396
|
+
/** Default 5. */
|
|
397
|
+
fast?: NumberParam;
|
|
398
|
+
/** Default 34. */
|
|
399
|
+
slow?: NumberParam;
|
|
400
|
+
};
|
|
401
|
+
lines: 'value';
|
|
402
|
+
};
|
|
403
|
+
/** Chaikin Oscillator, in a pane of its own. Lines: `value` (Chaikin). */
|
|
404
|
+
chaikinOsc: {
|
|
405
|
+
params: {
|
|
406
|
+
/** Default 3. */
|
|
407
|
+
fast?: NumberParam;
|
|
408
|
+
/** Default 10. */
|
|
409
|
+
slow?: NumberParam;
|
|
410
|
+
};
|
|
411
|
+
lines: 'value';
|
|
412
|
+
};
|
|
413
|
+
/** Volume Delta, in a pane of its own. Lines: `value` (Delta). */
|
|
414
|
+
voldelta: {
|
|
415
|
+
params: {
|
|
416
|
+
/** Default 0. */
|
|
417
|
+
mode?: NumberParam;
|
|
418
|
+
};
|
|
419
|
+
lines: 'value';
|
|
420
|
+
};
|
|
421
|
+
/** Vortex Indicator, in a pane of its own. Lines: `viPlus` (VI+), `viMinus` (VI−). Levels at 1. */
|
|
422
|
+
vortex: {
|
|
423
|
+
params: {
|
|
424
|
+
/** Default 14. */
|
|
425
|
+
period?: NumberParam;
|
|
426
|
+
};
|
|
427
|
+
lines: 'viPlus' | 'viMinus';
|
|
428
|
+
};
|
|
429
|
+
/** Choppiness Index, in a pane of its own. Lines: `value` (CHOP). Levels at 38.2, 61.8. */
|
|
430
|
+
chop: {
|
|
431
|
+
params: {
|
|
432
|
+
/** Default 14. */
|
|
433
|
+
period?: NumberParam;
|
|
434
|
+
};
|
|
435
|
+
lines: 'value';
|
|
436
|
+
};
|
|
437
|
+
/** Ultimate Oscillator, in a pane of its own. Lines: `value` (UO). Levels at 30, 70. */
|
|
438
|
+
uo: {
|
|
439
|
+
params: {
|
|
440
|
+
/** Default 7. */
|
|
441
|
+
fast?: NumberParam;
|
|
442
|
+
/** Default 14. */
|
|
443
|
+
mid?: NumberParam;
|
|
444
|
+
/** Default 28. */
|
|
445
|
+
slow?: NumberParam;
|
|
446
|
+
};
|
|
447
|
+
lines: 'value';
|
|
448
|
+
};
|
|
449
|
+
/** Force Index, in a pane of its own. Lines: `value` (EFI). Levels at 0. */
|
|
450
|
+
fi: {
|
|
451
|
+
params: {
|
|
452
|
+
/** Default 13. */
|
|
453
|
+
period?: NumberParam;
|
|
454
|
+
};
|
|
455
|
+
lines: 'value';
|
|
456
|
+
};
|
|
457
|
+
/** Connors RSI, in a pane of its own. Lines: `value` (CRSI). Levels at 10, 90. */
|
|
458
|
+
crsi: {
|
|
459
|
+
params: {
|
|
460
|
+
/** Default 3. */
|
|
461
|
+
rsiPeriod?: NumberParam;
|
|
462
|
+
/** Default 2. */
|
|
463
|
+
streakPeriod?: NumberParam;
|
|
464
|
+
/** Default 100. */
|
|
465
|
+
rankPeriod?: NumberParam;
|
|
466
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
467
|
+
source?: string;
|
|
468
|
+
};
|
|
469
|
+
lines: 'value';
|
|
470
|
+
};
|
|
471
|
+
/** Coppock Curve, in a pane of its own. Lines: `value` (Coppock). Levels at 0. */
|
|
472
|
+
coppock: {
|
|
473
|
+
params: {
|
|
474
|
+
/** Default 14. */
|
|
475
|
+
longRoc?: NumberParam;
|
|
476
|
+
/** Default 11. */
|
|
477
|
+
shortRoc?: NumberParam;
|
|
478
|
+
/** Default 10. */
|
|
479
|
+
wma?: NumberParam;
|
|
480
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
481
|
+
source?: string;
|
|
482
|
+
};
|
|
483
|
+
lines: 'value';
|
|
484
|
+
};
|
|
485
|
+
/** Know Sure Thing, in a pane of its own. Lines: `value` (KST), `signal` (Signal). Levels at 0. */
|
|
486
|
+
kst: {
|
|
487
|
+
params: {
|
|
488
|
+
/** Default 10. */
|
|
489
|
+
roc1?: NumberParam;
|
|
490
|
+
/** Default 15. */
|
|
491
|
+
roc2?: NumberParam;
|
|
492
|
+
/** Default 20. */
|
|
493
|
+
roc3?: NumberParam;
|
|
494
|
+
/** Default 30. */
|
|
495
|
+
roc4?: NumberParam;
|
|
496
|
+
/** Default 10. */
|
|
497
|
+
sma1?: NumberParam;
|
|
498
|
+
/** Default 10. */
|
|
499
|
+
sma2?: NumberParam;
|
|
500
|
+
/** Default 10. */
|
|
501
|
+
sma3?: NumberParam;
|
|
502
|
+
/** Default 15. */
|
|
503
|
+
sma4?: NumberParam;
|
|
504
|
+
/** Default 9. */
|
|
505
|
+
signal?: NumberParam;
|
|
506
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
507
|
+
source?: string;
|
|
508
|
+
};
|
|
509
|
+
lines: 'value' | 'signal';
|
|
510
|
+
};
|
|
511
|
+
/** Elder Ray, in a pane of its own. Lines: `bull` (Bull), `bear` (Bear). */
|
|
512
|
+
elderray: {
|
|
513
|
+
params: {
|
|
514
|
+
/** Default 13. */
|
|
515
|
+
period?: NumberParam;
|
|
516
|
+
};
|
|
517
|
+
lines: 'bull' | 'bear';
|
|
518
|
+
};
|
|
519
|
+
/** Schaff Trend Cycle, in a pane of its own. Lines: `value` (STC). Levels at 25, 75. */
|
|
520
|
+
stc: {
|
|
521
|
+
params: {
|
|
522
|
+
/** Default 23. */
|
|
523
|
+
fast?: NumberParam;
|
|
524
|
+
/** Default 50. */
|
|
525
|
+
slow?: NumberParam;
|
|
526
|
+
/** Default 10. */
|
|
527
|
+
cycle?: NumberParam;
|
|
528
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
529
|
+
source?: string;
|
|
530
|
+
};
|
|
531
|
+
lines: 'value';
|
|
532
|
+
};
|
|
533
|
+
/** Klinger Oscillator, in a pane of its own. Lines: `value` (KVO), `signal` (Signal). Levels at 0. */
|
|
534
|
+
kvo: {
|
|
535
|
+
params: {
|
|
536
|
+
/** Default 34. */
|
|
537
|
+
fast?: NumberParam;
|
|
538
|
+
/** Default 55. */
|
|
539
|
+
slow?: NumberParam;
|
|
540
|
+
/** Default 13. */
|
|
541
|
+
signal?: NumberParam;
|
|
542
|
+
};
|
|
543
|
+
lines: 'value' | 'signal';
|
|
544
|
+
};
|
|
545
|
+
/** Fisher Transform, in a pane of its own. Lines: `value` (Fisher), `trigger` (Trigger). Levels at 0. */
|
|
546
|
+
fisher: {
|
|
547
|
+
params: {
|
|
548
|
+
/** Default 9. */
|
|
549
|
+
period?: NumberParam;
|
|
550
|
+
};
|
|
551
|
+
lines: 'value' | 'trigger';
|
|
552
|
+
};
|
|
553
|
+
/** Detrended Price Oscillator, in a pane of its own. Lines: `value` (DPO). */
|
|
554
|
+
dpo: {
|
|
555
|
+
params: {
|
|
556
|
+
/** Default 20. */
|
|
557
|
+
period?: NumberParam;
|
|
558
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
559
|
+
source?: string;
|
|
560
|
+
};
|
|
561
|
+
lines: 'value';
|
|
562
|
+
};
|
|
563
|
+
/** Balance of Power, in a pane of its own. Lines: `value` (BOP). Levels at 0. */
|
|
564
|
+
bop: {
|
|
565
|
+
params: {
|
|
566
|
+
/** Default 14. */
|
|
567
|
+
smooth?: NumberParam;
|
|
568
|
+
};
|
|
569
|
+
lines: 'value';
|
|
570
|
+
};
|
|
571
|
+
/** Mass Index, in a pane of its own. Lines: `value` (Mass). Levels at 26.5, 27. */
|
|
572
|
+
massindex: {
|
|
573
|
+
params: {
|
|
574
|
+
/** Default 9. */
|
|
575
|
+
ema?: NumberParam;
|
|
576
|
+
/** Default 25. */
|
|
577
|
+
sum?: NumberParam;
|
|
578
|
+
};
|
|
579
|
+
lines: 'value';
|
|
580
|
+
};
|
|
581
|
+
/** Chande Momentum, in a pane of its own. Lines: `value` (CMO). Levels at -50, 0, 50. */
|
|
582
|
+
cmo: {
|
|
583
|
+
params: {
|
|
584
|
+
/** Default 9. */
|
|
585
|
+
period?: NumberParam;
|
|
586
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
587
|
+
source?: string;
|
|
588
|
+
};
|
|
589
|
+
lines: 'value';
|
|
590
|
+
};
|
|
591
|
+
/** TRIX, in a pane of its own. Lines: `value` (TRIX), `signal` (Signal). Levels at 0. */
|
|
592
|
+
trix: {
|
|
593
|
+
params: {
|
|
594
|
+
/** Default 15. */
|
|
595
|
+
period?: NumberParam;
|
|
596
|
+
/** Default 9. */
|
|
597
|
+
signal?: NumberParam;
|
|
598
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
599
|
+
source?: string;
|
|
600
|
+
};
|
|
601
|
+
lines: 'value' | 'signal';
|
|
602
|
+
};
|
|
603
|
+
/** Ease of Movement, in a pane of its own. Lines: `value` (EOM). Levels at 0. */
|
|
604
|
+
emv: {
|
|
605
|
+
params: {
|
|
606
|
+
/** Default 14. */
|
|
607
|
+
period?: NumberParam;
|
|
608
|
+
};
|
|
609
|
+
lines: 'value';
|
|
610
|
+
};
|
|
611
|
+
/** Price Volume Trend, in a pane of its own. Lines: `value` (PVT). */
|
|
612
|
+
pvt: {
|
|
613
|
+
params: {};
|
|
614
|
+
lines: 'value';
|
|
615
|
+
};
|
|
616
|
+
/** Williams A/D, in a pane of its own. Lines: `value` (WAD). */
|
|
617
|
+
wad: {
|
|
618
|
+
params: {};
|
|
619
|
+
lines: 'value';
|
|
620
|
+
};
|
|
621
|
+
/** Chaikin Volatility, in a pane of its own. Lines: `value` (CV). Levels at 0. */
|
|
622
|
+
chaikinvol: {
|
|
623
|
+
params: {
|
|
624
|
+
/** Default 10. */
|
|
625
|
+
ema?: NumberParam;
|
|
626
|
+
/** Default 10. */
|
|
627
|
+
roc?: NumberParam;
|
|
628
|
+
};
|
|
629
|
+
lines: 'value';
|
|
630
|
+
};
|
|
631
|
+
/** Relative Vigor Index, in a pane of its own. Lines: `value` (RVGI), `signal` (Signal). Levels at 0. */
|
|
632
|
+
rvi: {
|
|
633
|
+
params: {
|
|
634
|
+
/** Default 10. */
|
|
635
|
+
period?: NumberParam;
|
|
636
|
+
};
|
|
637
|
+
lines: 'value' | 'signal';
|
|
638
|
+
};
|
|
639
|
+
/** Stochastic RSI, in a pane of its own. Lines: `k` (%K), `d` (%D). Levels at 20, 80. */
|
|
640
|
+
stochrsi: {
|
|
641
|
+
params: {
|
|
642
|
+
/** Default 14. */
|
|
643
|
+
rsiPeriod?: NumberParam;
|
|
644
|
+
/** Default 14. */
|
|
645
|
+
stochPeriod?: NumberParam;
|
|
646
|
+
/** Default 3. */
|
|
647
|
+
k?: NumberParam;
|
|
648
|
+
/** Default 3. */
|
|
649
|
+
d?: NumberParam;
|
|
650
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
651
|
+
source?: string;
|
|
652
|
+
};
|
|
653
|
+
lines: 'k' | 'd';
|
|
654
|
+
};
|
|
655
|
+
/** Percentage Price Oscillator, in a pane of its own. Lines: `hist` (Histogram), `value` (PPO), `signal` (Signal). Levels at 0. */
|
|
656
|
+
ppo: {
|
|
657
|
+
params: {
|
|
658
|
+
/** Default 12. */
|
|
659
|
+
fast?: NumberParam;
|
|
660
|
+
/** Default 26. */
|
|
661
|
+
slow?: NumberParam;
|
|
662
|
+
/** Default 9. */
|
|
663
|
+
signal?: NumberParam;
|
|
664
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
665
|
+
source?: string;
|
|
666
|
+
};
|
|
667
|
+
lines: 'hist' | 'value' | 'signal';
|
|
668
|
+
};
|
|
669
|
+
/** Accelerator Oscillator, in a pane of its own. Lines: `value` (AC). */
|
|
670
|
+
ac: {
|
|
671
|
+
params: {};
|
|
672
|
+
lines: 'value';
|
|
673
|
+
};
|
|
674
|
+
/** Relative Momentum Index, in a pane of its own. Lines: `value` (RMI). Levels at 30, 70. */
|
|
675
|
+
rmi: {
|
|
676
|
+
params: {
|
|
677
|
+
/** Default 20. */
|
|
678
|
+
period?: NumberParam;
|
|
679
|
+
/** Default 5. */
|
|
680
|
+
momentum?: NumberParam;
|
|
681
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
682
|
+
source?: string;
|
|
683
|
+
};
|
|
684
|
+
lines: 'value';
|
|
685
|
+
};
|
|
686
|
+
/** Disparity Index, in a pane of its own. Lines: `value` (DI). Levels at 0. */
|
|
687
|
+
disparity: {
|
|
688
|
+
params: {
|
|
689
|
+
/** Default 14. */
|
|
690
|
+
period?: NumberParam;
|
|
691
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
692
|
+
source?: string;
|
|
693
|
+
};
|
|
694
|
+
lines: 'value';
|
|
695
|
+
};
|
|
696
|
+
/** Qstick, in a pane of its own. Lines: `value` (Qstick). Levels at 0. */
|
|
697
|
+
qstick: {
|
|
698
|
+
params: {
|
|
699
|
+
/** Default 8. */
|
|
700
|
+
period?: NumberParam;
|
|
701
|
+
};
|
|
702
|
+
lines: 'value';
|
|
703
|
+
};
|
|
704
|
+
/** Pretty Good Oscillator, in a pane of its own. Lines: `value` (PGO). Levels at -3, 0, 3. */
|
|
705
|
+
pgo: {
|
|
706
|
+
params: {
|
|
707
|
+
/** Default 14. */
|
|
708
|
+
period?: NumberParam;
|
|
709
|
+
};
|
|
710
|
+
lines: 'value';
|
|
711
|
+
};
|
|
712
|
+
/** Double Exponential Moving Average, on the price pane. Lines: `value` (DEMA). */
|
|
713
|
+
dema: {
|
|
714
|
+
params: {
|
|
715
|
+
/** At least 1. Default 20. */
|
|
716
|
+
period?: NumberParam;
|
|
717
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
718
|
+
source?: string;
|
|
719
|
+
};
|
|
720
|
+
lines: 'value';
|
|
721
|
+
};
|
|
722
|
+
/** Smoothed Moving Average, on the price pane. Lines: `value` (SMMA). */
|
|
723
|
+
smma: {
|
|
724
|
+
params: {
|
|
725
|
+
/** At least 1. Default 14. */
|
|
726
|
+
period?: NumberParam;
|
|
727
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
728
|
+
source?: string;
|
|
729
|
+
};
|
|
730
|
+
lines: 'value';
|
|
731
|
+
};
|
|
732
|
+
/** Arnaud Legoux Moving Average, on the price pane. Lines: `value` (ALMA). */
|
|
733
|
+
alma: {
|
|
734
|
+
params: {
|
|
735
|
+
/** At least 1, at most 5000. Default 9. */
|
|
736
|
+
period?: NumberParam;
|
|
737
|
+
/** At least 0, at most 1, in steps of 0.05. Default 0.85. */
|
|
738
|
+
offset?: NumberParam;
|
|
739
|
+
/** At least 0.5, in steps of 0.5. Default 6. */
|
|
740
|
+
sigma?: NumberParam;
|
|
741
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
742
|
+
source?: string;
|
|
743
|
+
};
|
|
744
|
+
lines: 'value';
|
|
745
|
+
};
|
|
746
|
+
/** Kaufman Adaptive Moving Average, on the price pane. Lines: `value` (KAMA). */
|
|
747
|
+
kama: {
|
|
748
|
+
params: {
|
|
749
|
+
/** At least 1. Default 10. */
|
|
750
|
+
period?: NumberParam;
|
|
751
|
+
/** At least 1. Default 2. */
|
|
752
|
+
fast?: NumberParam;
|
|
753
|
+
/** At least 1. Default 30. */
|
|
754
|
+
slow?: NumberParam;
|
|
755
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
756
|
+
source?: string;
|
|
757
|
+
};
|
|
758
|
+
lines: 'value';
|
|
759
|
+
};
|
|
760
|
+
/** Least Squares Moving Average, on the price pane. Lines: `value` (LSMA). */
|
|
761
|
+
lsma: {
|
|
762
|
+
params: {
|
|
763
|
+
/** At least 2, at most 5000. Default 25. */
|
|
764
|
+
period?: NumberParam;
|
|
765
|
+
/** In steps of 1. Default 0. */
|
|
766
|
+
offset?: NumberParam;
|
|
767
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
768
|
+
source?: string;
|
|
769
|
+
};
|
|
770
|
+
lines: 'value';
|
|
771
|
+
};
|
|
772
|
+
/** McGinley Dynamic, on the price pane. Lines: `value` (McGinley). */
|
|
773
|
+
mcginley: {
|
|
774
|
+
params: {
|
|
775
|
+
/** At least 1. Default 14. */
|
|
776
|
+
period?: NumberParam;
|
|
777
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
778
|
+
source?: string;
|
|
779
|
+
};
|
|
780
|
+
lines: 'value';
|
|
781
|
+
};
|
|
782
|
+
/** MA Cross, on the price pane. Lines: `fast` (Fast), `slow` (Slow). */
|
|
783
|
+
macross: {
|
|
784
|
+
params: {
|
|
785
|
+
/** At least 1. Default 9. */
|
|
786
|
+
fast?: NumberParam;
|
|
787
|
+
/** At least 1. Default 21. */
|
|
788
|
+
slow?: NumberParam;
|
|
789
|
+
/** Default `'sma'`. */
|
|
790
|
+
type?: 'sma' | 'ema' | 'sma-ema' | (string & {});
|
|
791
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
792
|
+
source?: string;
|
|
793
|
+
};
|
|
794
|
+
lines: 'fast' | 'slow';
|
|
795
|
+
};
|
|
796
|
+
/** Williams Fractals, on the price pane. Lines: `up` (Up), `down` (Down). */
|
|
797
|
+
fractals: {
|
|
798
|
+
params: {
|
|
799
|
+
/** At least 1, at most 10. Default 2. */
|
|
800
|
+
period?: NumberParam;
|
|
801
|
+
};
|
|
802
|
+
lines: 'up' | 'down';
|
|
803
|
+
};
|
|
804
|
+
/** Chande Kroll Stop, on the price pane. Lines: `long` (Stop Long), `short` (Stop Short). */
|
|
805
|
+
cks: {
|
|
806
|
+
params: {
|
|
807
|
+
/** ATR length. At least 1. Default 10. */
|
|
808
|
+
p?: NumberParam;
|
|
809
|
+
/** ATR multiplier. At least 0, in steps of 0.1. Default 1. */
|
|
810
|
+
x?: NumberParam;
|
|
811
|
+
/** Stop length. At least 1. Default 9. */
|
|
812
|
+
q?: NumberParam;
|
|
813
|
+
};
|
|
814
|
+
lines: 'long' | 'short';
|
|
815
|
+
};
|
|
816
|
+
/** Bollinger Bands %B, in a pane of its own. Lines: `value` (%B). Levels at 0, 0.5, 1. */
|
|
817
|
+
bbpb: {
|
|
818
|
+
params: {
|
|
819
|
+
/** At least 2. Default 20. */
|
|
820
|
+
period?: NumberParam;
|
|
821
|
+
/** At least 0.1, in steps of 0.1. Default 2. */
|
|
822
|
+
stdDev?: NumberParam;
|
|
823
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
824
|
+
source?: string;
|
|
825
|
+
};
|
|
826
|
+
lines: 'value';
|
|
827
|
+
};
|
|
828
|
+
/** Bollinger BandWidth, in a pane of its own. Lines: `value` (BBW). */
|
|
829
|
+
bbw: {
|
|
830
|
+
params: {
|
|
831
|
+
/** At least 2. Default 20. */
|
|
832
|
+
period?: NumberParam;
|
|
833
|
+
/** At least 0.1, in steps of 0.1. Default 2. */
|
|
834
|
+
stdDev?: NumberParam;
|
|
835
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
836
|
+
source?: string;
|
|
837
|
+
};
|
|
838
|
+
lines: 'value';
|
|
839
|
+
};
|
|
840
|
+
/** Momentum, in a pane of its own. Lines: `value` (MOM). Levels at 0. */
|
|
841
|
+
mom: {
|
|
842
|
+
params: {
|
|
843
|
+
/** At least 1. Default 10. */
|
|
844
|
+
period?: NumberParam;
|
|
845
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
846
|
+
source?: string;
|
|
847
|
+
};
|
|
848
|
+
lines: 'value';
|
|
849
|
+
};
|
|
850
|
+
/** Historical Volatility, in a pane of its own. Lines: `value` (HV). */
|
|
851
|
+
hv: {
|
|
852
|
+
params: {
|
|
853
|
+
/** At least 2. Default 10. */
|
|
854
|
+
period?: NumberParam;
|
|
855
|
+
/** Bars per year. At least 1. Default 365. */
|
|
856
|
+
annual?: NumberParam;
|
|
857
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
858
|
+
source?: string;
|
|
859
|
+
};
|
|
860
|
+
lines: 'value';
|
|
861
|
+
};
|
|
862
|
+
/** Volume Oscillator, in a pane of its own. Lines: `value` (Vol Osc). Levels at 0. */
|
|
863
|
+
vo: {
|
|
864
|
+
params: {
|
|
865
|
+
/** At least 1. Default 5. */
|
|
866
|
+
short?: NumberParam;
|
|
867
|
+
/** At least 1. Default 10. */
|
|
868
|
+
long?: NumberParam;
|
|
869
|
+
};
|
|
870
|
+
lines: 'value';
|
|
871
|
+
};
|
|
872
|
+
/** Ulcer Index, in a pane of its own. Lines: `value` (Ulcer). */
|
|
873
|
+
ulcer: {
|
|
874
|
+
params: {
|
|
875
|
+
/** At least 1. Default 14. */
|
|
876
|
+
period?: NumberParam;
|
|
877
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
878
|
+
source?: string;
|
|
879
|
+
};
|
|
880
|
+
lines: 'value';
|
|
881
|
+
};
|
|
882
|
+
/** Stochastic Momentum Index, in a pane of its own. Lines: `smi` (SMI), `signal` (Signal). Levels at 40, -40. */
|
|
883
|
+
smi: {
|
|
884
|
+
params: {
|
|
885
|
+
/** At least 1. Default 10. */
|
|
886
|
+
period?: NumberParam;
|
|
887
|
+
/** At least 1. Default 3. */
|
|
888
|
+
smooth?: NumberParam;
|
|
889
|
+
/** At least 1. Default 3. */
|
|
890
|
+
signal?: NumberParam;
|
|
891
|
+
};
|
|
892
|
+
lines: 'smi' | 'signal';
|
|
893
|
+
};
|
|
894
|
+
/** Relative Volatility Index, in a pane of its own. Lines: `value` (RVI). Levels at 80, 50, 20. */
|
|
895
|
+
rvix: {
|
|
896
|
+
params: {
|
|
897
|
+
/** At least 2. Default 10. */
|
|
898
|
+
period?: NumberParam;
|
|
899
|
+
/** At least 1. Default 14. */
|
|
900
|
+
smooth?: NumberParam;
|
|
901
|
+
};
|
|
902
|
+
lines: 'value';
|
|
903
|
+
};
|
|
904
|
+
/** Trend Strength Index, in a pane of its own. Lines: `value` (Trend). Levels at 0. */
|
|
905
|
+
trendstrength: {
|
|
906
|
+
params: {
|
|
907
|
+
/** At least 2. Default 14. */
|
|
908
|
+
period?: NumberParam;
|
|
909
|
+
};
|
|
910
|
+
lines: 'value';
|
|
911
|
+
};
|
|
912
|
+
/** Linear Regression Slope, in a pane of its own. Lines: `value` (Slope). Levels at 0. */
|
|
913
|
+
lrslope: {
|
|
914
|
+
params: {
|
|
915
|
+
/** At least 2. Default 14. */
|
|
916
|
+
period?: NumberParam;
|
|
917
|
+
};
|
|
918
|
+
lines: 'value';
|
|
919
|
+
};
|
|
920
|
+
/** Standard Error, in a pane of its own. Lines: `value` (StdErr). */
|
|
921
|
+
stderror: {
|
|
922
|
+
params: {
|
|
923
|
+
/** At least 3. Default 14. */
|
|
924
|
+
period?: NumberParam;
|
|
925
|
+
};
|
|
926
|
+
lines: 'value';
|
|
927
|
+
};
|
|
928
|
+
/** Average Day Range, in a pane of its own. Lines: `value` (ADR). */
|
|
929
|
+
adr: {
|
|
930
|
+
params: {
|
|
931
|
+
/** At least 1. Default 14. */
|
|
932
|
+
period?: NumberParam;
|
|
933
|
+
};
|
|
934
|
+
lines: 'value';
|
|
935
|
+
};
|
|
936
|
+
/** Net Volume, in a pane of its own. Lines: `value` (Net). Levels at 0. */
|
|
937
|
+
netvolume: {
|
|
938
|
+
params: {};
|
|
939
|
+
lines: 'value';
|
|
940
|
+
};
|
|
941
|
+
/** Standard Error Bands, on the price pane. Lines: `upper` (Upper), `middle` (Middle), `lower` (Lower). */
|
|
942
|
+
seb: {
|
|
943
|
+
params: {
|
|
944
|
+
/** At least 3. Default 21. */
|
|
945
|
+
period?: NumberParam;
|
|
946
|
+
/** At least 0, in steps of 0.1. Default 2. */
|
|
947
|
+
mult?: NumberParam;
|
|
948
|
+
/** At least 1. Default 3. */
|
|
949
|
+
smooth?: NumberParam;
|
|
950
|
+
};
|
|
951
|
+
lines: 'upper' | 'middle' | 'lower';
|
|
952
|
+
};
|
|
953
|
+
/** Guppy Multiple Moving Average, on the price pane. Lines: `s3` (EMA 3), `s5` (EMA 5), `s8` (EMA 8), `s10` (EMA 10), `s12` (EMA 12), `s15` (EMA 15), `l30` (EMA 30), `l35` (EMA 35), `l40` (EMA 40), `l45` (EMA 45), `l50` (EMA 50), `l60` (EMA 60). */
|
|
954
|
+
gmma: {
|
|
955
|
+
params: {};
|
|
956
|
+
lines: 's3' | 's5' | 's8' | 's10' | 's12' | 's15' | 'l30' | 'l35' | 'l40' | 'l45' | 'l50' | 'l60';
|
|
957
|
+
};
|
|
958
|
+
/** Moving Average Ribbon, on the price pane. Lines: `ma1` (MA 1), `ma2` (MA 2), `ma3` (MA 3), `ma4` (MA 4). */
|
|
959
|
+
maribbon: {
|
|
960
|
+
params: {
|
|
961
|
+
/** At least 1. Default 20. */
|
|
962
|
+
ma1?: NumberParam;
|
|
963
|
+
/** At least 1. Default 50. */
|
|
964
|
+
ma2?: NumberParam;
|
|
965
|
+
/** At least 1. Default 100. */
|
|
966
|
+
ma3?: NumberParam;
|
|
967
|
+
/** At least 1. Default 200. */
|
|
968
|
+
ma4?: NumberParam;
|
|
969
|
+
/** At least 0, at most 1. Default 0. */
|
|
970
|
+
exponential?: NumberParam;
|
|
971
|
+
};
|
|
972
|
+
lines: 'ma1' | 'ma2' | 'ma3' | 'ma4';
|
|
973
|
+
};
|
|
974
|
+
/** Average Price, on the price pane. Lines: `value` (Average). */
|
|
975
|
+
avgprice: {
|
|
976
|
+
params: {};
|
|
977
|
+
lines: 'value';
|
|
978
|
+
};
|
|
979
|
+
/** Median Price, on the price pane. Lines: `value` (Median). */
|
|
980
|
+
medprice: {
|
|
981
|
+
params: {};
|
|
982
|
+
lines: 'value';
|
|
983
|
+
};
|
|
984
|
+
/** Typical Price, on the price pane. Lines: `value` (Typical). */
|
|
985
|
+
typprice: {
|
|
986
|
+
params: {};
|
|
987
|
+
lines: 'value';
|
|
988
|
+
};
|
|
989
|
+
/** Moving Average Channel, on the price pane. Lines: `upper` (Upper), `lower` (Lower). */
|
|
990
|
+
machannel: {
|
|
991
|
+
params: {
|
|
992
|
+
/** At least 1. Default 20. */
|
|
993
|
+
upperLength?: NumberParam;
|
|
994
|
+
/** At least 1. Default 20. */
|
|
995
|
+
lowerLength?: NumberParam;
|
|
996
|
+
/** At least -500, at most 500. Default 0. */
|
|
997
|
+
upperOffset?: NumberParam;
|
|
998
|
+
/** At least -500, at most 500. Default 0. */
|
|
999
|
+
lowerOffset?: NumberParam;
|
|
1000
|
+
};
|
|
1001
|
+
lines: 'upper' | 'lower';
|
|
1002
|
+
};
|
|
1003
|
+
/** Moving Average Hamming, on the price pane. Lines: `value` (MA). */
|
|
1004
|
+
hamming: {
|
|
1005
|
+
params: {
|
|
1006
|
+
/** At least 2, at most 500. Default 10. */
|
|
1007
|
+
period?: NumberParam;
|
|
1008
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
1009
|
+
source?: string;
|
|
1010
|
+
};
|
|
1011
|
+
lines: 'value';
|
|
1012
|
+
};
|
|
1013
|
+
/** Moving Average Double, on the price pane. Lines: `ma1` (MA 1), `ma2` (MA 2). */
|
|
1014
|
+
madouble: {
|
|
1015
|
+
params: {
|
|
1016
|
+
/** At least 1. Default 20. */
|
|
1017
|
+
first?: NumberParam;
|
|
1018
|
+
/** At least 1. Default 50. */
|
|
1019
|
+
second?: NumberParam;
|
|
1020
|
+
/** Default `'sma'`. */
|
|
1021
|
+
type?: 'sma' | 'ema' | 'wma' | (string & {});
|
|
1022
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
1023
|
+
source?: string;
|
|
1024
|
+
};
|
|
1025
|
+
lines: 'ma1' | 'ma2';
|
|
1026
|
+
};
|
|
1027
|
+
/** Moving Average Triple, on the price pane. Lines: `ma1` (MA 1), `ma2` (MA 2), `ma3` (MA 3). */
|
|
1028
|
+
matriple: {
|
|
1029
|
+
params: {
|
|
1030
|
+
/** At least 1. Default 10. */
|
|
1031
|
+
first?: NumberParam;
|
|
1032
|
+
/** At least 1. Default 20. */
|
|
1033
|
+
second?: NumberParam;
|
|
1034
|
+
/** At least 1. Default 50. */
|
|
1035
|
+
third?: NumberParam;
|
|
1036
|
+
/** Default `'sma'`. */
|
|
1037
|
+
type?: 'sma' | 'ema' | 'wma' | (string & {});
|
|
1038
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
1039
|
+
source?: string;
|
|
1040
|
+
};
|
|
1041
|
+
lines: 'ma1' | 'ma2' | 'ma3';
|
|
1042
|
+
};
|
|
1043
|
+
/** Volatility Index, on the price pane. Lines: `sar` (Stop). */
|
|
1044
|
+
volindex: {
|
|
1045
|
+
params: {
|
|
1046
|
+
/** At least 1. Default 7. */
|
|
1047
|
+
period?: NumberParam;
|
|
1048
|
+
/** ATR multiple. At least 0.1, in steps of 0.1. Default 3. */
|
|
1049
|
+
mult?: NumberParam;
|
|
1050
|
+
};
|
|
1051
|
+
lines: 'sar';
|
|
1052
|
+
};
|
|
1053
|
+
/** Accumulative Swing Index, in a pane of its own. Lines: `value` (ASI). */
|
|
1054
|
+
asi: {
|
|
1055
|
+
params: {
|
|
1056
|
+
/** Limit move. At least 0.0001, in steps of 0.1. Default 10. */
|
|
1057
|
+
limit?: NumberParam;
|
|
1058
|
+
};
|
|
1059
|
+
lines: 'value';
|
|
1060
|
+
};
|
|
1061
|
+
/** Advance/Decline, in a pane of its own. Lines: `value` (Ratio). */
|
|
1062
|
+
advdecline: {
|
|
1063
|
+
params: {
|
|
1064
|
+
/** At least 1. Default 10. */
|
|
1065
|
+
length?: NumberParam;
|
|
1066
|
+
};
|
|
1067
|
+
lines: 'value';
|
|
1068
|
+
};
|
|
1069
|
+
/** Majority Rule, in a pane of its own. Lines: `value` (Majority). Levels at 50. */
|
|
1070
|
+
majority: {
|
|
1071
|
+
params: {
|
|
1072
|
+
/** At least 1. Default 14. */
|
|
1073
|
+
period?: NumberParam;
|
|
1074
|
+
};
|
|
1075
|
+
lines: 'value';
|
|
1076
|
+
};
|
|
1077
|
+
/** Chop Zone, in a pane of its own. Lines: `angle` (Angle). */
|
|
1078
|
+
chopzone: {
|
|
1079
|
+
params: {};
|
|
1080
|
+
lines: 'angle';
|
|
1081
|
+
};
|
|
1082
|
+
/** SMI Ergodic, in a pane of its own. Lines: `oscillator` (Oscillator), `indicator` (Indicator), `signal` (Signal). */
|
|
1083
|
+
smiergodic: {
|
|
1084
|
+
params: {
|
|
1085
|
+
/** At least 1. Default 5. */
|
|
1086
|
+
short?: NumberParam;
|
|
1087
|
+
/** At least 1. Default 20. */
|
|
1088
|
+
long?: NumberParam;
|
|
1089
|
+
/** At least 1. Default 5. */
|
|
1090
|
+
signal?: NumberParam;
|
|
1091
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
1092
|
+
source?: string;
|
|
1093
|
+
};
|
|
1094
|
+
lines: 'oscillator' | 'indicator' | 'signal';
|
|
1095
|
+
};
|
|
1096
|
+
/** Price Oscillator, in a pane of its own. Lines: `value` (PO). */
|
|
1097
|
+
po: {
|
|
1098
|
+
params: {
|
|
1099
|
+
/** At least 1. Default 10. */
|
|
1100
|
+
short?: NumberParam;
|
|
1101
|
+
/** At least 1. Default 21. */
|
|
1102
|
+
long?: NumberParam;
|
|
1103
|
+
/** A price (`'close'`, `'hl2'` …) or another indicator's line (`indicatorSource(instanceId, key)`). Default `'close'`. */
|
|
1104
|
+
source?: string;
|
|
1105
|
+
};
|
|
1106
|
+
lines: 'value';
|
|
1107
|
+
};
|
|
1108
|
+
/** Volatility O-H-L-C, in a pane of its own. Lines: `value` (Volatility). */
|
|
1109
|
+
volohlc: {
|
|
1110
|
+
params: {
|
|
1111
|
+
/** At least 1. Default 10. */
|
|
1112
|
+
period?: NumberParam;
|
|
1113
|
+
/** Bars per year. At least 1. Default 365. */
|
|
1114
|
+
annual?: NumberParam;
|
|
1115
|
+
};
|
|
1116
|
+
lines: 'value';
|
|
1117
|
+
};
|
|
1118
|
+
/** Volatility Zero Trend Close-to-Close, in a pane of its own. Lines: `value` (Volatility). */
|
|
1119
|
+
volzt: {
|
|
1120
|
+
params: {
|
|
1121
|
+
/** At least 1. Default 10. */
|
|
1122
|
+
period?: NumberParam;
|
|
1123
|
+
/** Bars per year. At least 1. Default 365. */
|
|
1124
|
+
annual?: NumberParam;
|
|
1125
|
+
};
|
|
1126
|
+
lines: 'value';
|
|
1127
|
+
};
|
|
1128
|
+
/** Psychological Line, in a pane of its own. Lines: `value` (PSY). Levels at 25, 75. */
|
|
1129
|
+
psy: {
|
|
1130
|
+
params: {
|
|
1131
|
+
/** Default 10. */
|
|
1132
|
+
period?: NumberParam;
|
|
1133
|
+
};
|
|
1134
|
+
lines: 'value';
|
|
1135
|
+
};
|
|
1136
|
+
/** New Psychological Line, in a pane of its own. Lines: `value` (New PSY). Levels at -50, 0, 50. */
|
|
1137
|
+
newpsy: {
|
|
1138
|
+
params: {
|
|
1139
|
+
/** Default 10. */
|
|
1140
|
+
period?: NumberParam;
|
|
1141
|
+
};
|
|
1142
|
+
lines: 'value';
|
|
1143
|
+
};
|
|
1144
|
+
/** Volume Ratio, in a pane of its own. Lines: `value` (VR). Levels at 70, 150, 450. */
|
|
1145
|
+
vr: {
|
|
1146
|
+
params: {
|
|
1147
|
+
/** Default 20. */
|
|
1148
|
+
period?: NumberParam;
|
|
1149
|
+
};
|
|
1150
|
+
lines: 'value';
|
|
1151
|
+
};
|
|
1152
|
+
/** AB Ratio, in a pane of its own. Lines: `a` (A), `b` (B). Levels at 100. */
|
|
1153
|
+
abratio: {
|
|
1154
|
+
params: {
|
|
1155
|
+
/** Default 26. */
|
|
1156
|
+
period?: NumberParam;
|
|
1157
|
+
};
|
|
1158
|
+
lines: 'a' | 'b';
|
|
1159
|
+
};
|
|
1160
|
+
/** Sonar, in a pane of its own. Lines: `sonar` (Sonar), `signal` (Signal). Levels at 0. */
|
|
1161
|
+
sonar: {
|
|
1162
|
+
params: {
|
|
1163
|
+
/** Default 20. */
|
|
1164
|
+
period?: NumberParam;
|
|
1165
|
+
/** Default 9. */
|
|
1166
|
+
lookback?: NumberParam;
|
|
1167
|
+
/** Default 9. */
|
|
1168
|
+
signal?: NumberParam;
|
|
1169
|
+
};
|
|
1170
|
+
lines: 'sonar' | 'signal';
|
|
1171
|
+
};
|
|
1172
|
+
/** Sigma, in a pane of its own. Lines: `value` (Sigma). Levels at -2, 0, 2. */
|
|
1173
|
+
sigma: {
|
|
1174
|
+
params: {
|
|
1175
|
+
/** Default 20. */
|
|
1176
|
+
period?: NumberParam;
|
|
1177
|
+
};
|
|
1178
|
+
lines: 'value';
|
|
1179
|
+
};
|
|
1180
|
+
/** Vertical Horizontal Filter, in a pane of its own. Lines: `value` (VHF). */
|
|
1181
|
+
vhf: {
|
|
1182
|
+
params: {
|
|
1183
|
+
/** Default 28. */
|
|
1184
|
+
period?: NumberParam;
|
|
1185
|
+
};
|
|
1186
|
+
lines: 'value';
|
|
1187
|
+
};
|
|
1188
|
+
/** R-Squared, in a pane of its own. Lines: `value` (R²). */
|
|
1189
|
+
rsquared: {
|
|
1190
|
+
params: {
|
|
1191
|
+
/** Default 14. */
|
|
1192
|
+
period?: NumberParam;
|
|
1193
|
+
};
|
|
1194
|
+
lines: 'value';
|
|
1195
|
+
};
|
|
1196
|
+
/** Random Walk Index, in a pane of its own. Lines: `high` (RWI High), `low` (RWI Low). Levels at 1. */
|
|
1197
|
+
rwi: {
|
|
1198
|
+
params: {
|
|
1199
|
+
/** Default 14. */
|
|
1200
|
+
period?: NumberParam;
|
|
1201
|
+
};
|
|
1202
|
+
lines: 'high' | 'low';
|
|
1203
|
+
};
|
|
1204
|
+
/** Negative Volume Index, in a pane of its own. Lines: `value` (NVI), `signal` (Signal). */
|
|
1205
|
+
nvi: {
|
|
1206
|
+
params: {
|
|
1207
|
+
/** Default 255. */
|
|
1208
|
+
signal?: NumberParam;
|
|
1209
|
+
};
|
|
1210
|
+
lines: 'value' | 'signal';
|
|
1211
|
+
};
|
|
1212
|
+
/** Positive Volume Index, in a pane of its own. Lines: `value` (PVI), `signal` (Signal). */
|
|
1213
|
+
pvi: {
|
|
1214
|
+
params: {
|
|
1215
|
+
/** Default 255. */
|
|
1216
|
+
signal?: NumberParam;
|
|
1217
|
+
};
|
|
1218
|
+
lines: 'value' | 'signal';
|
|
1219
|
+
};
|
|
1220
|
+
/** True Range, in a pane of its own. Lines: `value` (TR). */
|
|
1221
|
+
tr: {
|
|
1222
|
+
params: {};
|
|
1223
|
+
lines: 'value';
|
|
1224
|
+
};
|
|
1225
|
+
/** Intraday Intensity, in a pane of its own. Lines: `value` (III %). Levels at 0. */
|
|
1226
|
+
iii: {
|
|
1227
|
+
params: {
|
|
1228
|
+
/** Default 21. */
|
|
1229
|
+
period?: NumberParam;
|
|
1230
|
+
};
|
|
1231
|
+
lines: 'value';
|
|
1232
|
+
};
|
|
1233
|
+
/** Volume vs Average, in a pane of its own. Lines: `value` (Vol %). Levels at 0. */
|
|
1234
|
+
volpct: {
|
|
1235
|
+
params: {
|
|
1236
|
+
/** Default 20. */
|
|
1237
|
+
period?: NumberParam;
|
|
1238
|
+
};
|
|
1239
|
+
lines: 'value';
|
|
1240
|
+
};
|
|
1241
|
+
/** Volume Change, in a pane of its own. Lines: `value` (Volume). */
|
|
1242
|
+
volchange: {
|
|
1243
|
+
params: {};
|
|
1244
|
+
lines: 'value';
|
|
1245
|
+
};
|
|
1246
|
+
/** Trade Value, in a pane of its own. Lines: `value` (Value). */
|
|
1247
|
+
tradevalue: {
|
|
1248
|
+
params: {};
|
|
1249
|
+
lines: 'value';
|
|
1250
|
+
};
|
|
1251
|
+
/** Binary Wave, in a pane of its own. Lines: `value` (Wave). Levels at 0. */
|
|
1252
|
+
binarywave: {
|
|
1253
|
+
params: {
|
|
1254
|
+
/** Default 20. */
|
|
1255
|
+
ma?: NumberParam;
|
|
1256
|
+
/** Default 12. */
|
|
1257
|
+
fast?: NumberParam;
|
|
1258
|
+
/** Default 26. */
|
|
1259
|
+
slow?: NumberParam;
|
|
1260
|
+
/** Default 9. */
|
|
1261
|
+
signal?: NumberParam;
|
|
1262
|
+
/** Default 12. */
|
|
1263
|
+
roc?: NumberParam;
|
|
1264
|
+
/** Default 14. */
|
|
1265
|
+
stoch?: NumberParam;
|
|
1266
|
+
};
|
|
1267
|
+
lines: 'value';
|
|
1268
|
+
};
|
|
1269
|
+
/** Smoothed Rate of Change, in a pane of its own. Lines: `value` (S-ROC). Levels at 0. */
|
|
1270
|
+
sroc: {
|
|
1271
|
+
params: {
|
|
1272
|
+
/** Default 13. */
|
|
1273
|
+
ema?: NumberParam;
|
|
1274
|
+
/** Default 21. */
|
|
1275
|
+
roc?: NumberParam;
|
|
1276
|
+
};
|
|
1277
|
+
lines: 'value';
|
|
1278
|
+
};
|
|
1279
|
+
/** Time Series Forecast, on the price pane. Lines: `value` (TSF). */
|
|
1280
|
+
tsf: {
|
|
1281
|
+
params: {
|
|
1282
|
+
/** Default 14. */
|
|
1283
|
+
period?: NumberParam;
|
|
1284
|
+
};
|
|
1285
|
+
lines: 'value';
|
|
1286
|
+
};
|
|
1287
|
+
/** Weighted Close, on the price pane. Lines: `value` (Weighted). */
|
|
1288
|
+
wclose: {
|
|
1289
|
+
params: {};
|
|
1290
|
+
lines: 'value';
|
|
1291
|
+
};
|
|
1292
|
+
/** DeMark Projected Range, on the price pane. Lines: `high` (Projected high), `low` (Projected low). */
|
|
1293
|
+
demark: {
|
|
1294
|
+
params: {};
|
|
1295
|
+
lines: 'high' | 'low';
|
|
1296
|
+
};
|
|
1297
|
+
/** Moving Average Rainbow, on the price pane. Lines: `ma1` (MA 1), `ma2` (MA 2), `ma3` (MA 3), `ma4` (MA 4), `ma5` (MA 5), `ma6` (MA 6), `ma7` (MA 7), `ma8` (MA 8), `ma9` (MA 9), `ma10` (MA 10), `ma11` (MA 11), `ma12` (MA 12), `ma13` (MA 13), `ma14` (MA 14), `ma15` (MA 15), `ma16` (MA 16), `ma17` (MA 17), `ma18` (MA 18), `ma19` (MA 19), `ma20` (MA 20). */
|
|
1298
|
+
rainbow: {
|
|
1299
|
+
params: {
|
|
1300
|
+
/** At least 1. Default 10. */
|
|
1301
|
+
first?: NumberParam;
|
|
1302
|
+
/** At least 1. Default 10. */
|
|
1303
|
+
step?: NumberParam;
|
|
1304
|
+
/** At least 1, at most 20. Default 10. */
|
|
1305
|
+
count?: NumberParam;
|
|
1306
|
+
/** At least 0, at most 1. Default 0. */
|
|
1307
|
+
exponential?: NumberParam;
|
|
1308
|
+
};
|
|
1309
|
+
lines: 'ma1' | 'ma2' | 'ma3' | 'ma4' | 'ma5' | 'ma6' | 'ma7' | 'ma8' | 'ma9' | 'ma10' | 'ma11' | 'ma12' | 'ma13' | 'ma14' | 'ma15' | 'ma16' | 'ma17' | 'ma18' | 'ma19' | 'ma20';
|
|
1310
|
+
};
|
|
1311
|
+
/** Candlestick Patterns, on the price pane. Lines: `bull` (Bullish), `bear` (Bearish), `neutral` (Indecision). */
|
|
1312
|
+
candlepatterns: {
|
|
1313
|
+
params: {
|
|
1314
|
+
/** At least 2. Default 10. */
|
|
1315
|
+
trendPeriod?: NumberParam;
|
|
1316
|
+
/** At least 0, at most 1. Default 1. */
|
|
1317
|
+
reversal?: NumberParam;
|
|
1318
|
+
/** At least 0, at most 1. Default 1. */
|
|
1319
|
+
continuation?: NumberParam;
|
|
1320
|
+
/** At least 0, at most 1. Default 0. */
|
|
1321
|
+
indecision?: NumberParam;
|
|
1322
|
+
};
|
|
1323
|
+
lines: 'bull' | 'bear' | 'neutral';
|
|
1324
|
+
};
|
|
1325
|
+
}
|
|
1326
|
+
//# sourceMappingURL=builtInIndicators.d.ts.map
|