pinets 0.3.0 → 0.6.1
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/README.md +50 -3
- package/dist/pinets.dev.browser.js +6429 -1434
- package/dist/pinets.dev.cjs +6525 -1418
- package/dist/pinets.dev.cjs.map +1 -1
- package/dist/pinets.dev.es.js +6527 -1415
- package/dist/pinets.dev.es.js.map +1 -1
- package/dist/pinets.min.browser.js +16 -11
- package/dist/pinets.min.cjs +16 -11
- package/dist/pinets.min.es.js +6 -1
- package/dist/types/Context.class.d.ts +79 -17
- package/dist/types/PineTS.class.d.ts +13 -1
- package/dist/types/marketData/Binance/BinanceProvider.class.d.ts +2 -1
- package/dist/types/marketData/IProvider.d.ts +43 -0
- package/dist/types/marketData/Mock/MockProvider.class.d.ts +13 -1
- package/dist/types/namespaces/Barstate.d.ts +13 -0
- package/dist/types/namespaces/Core.d.ts +16 -0
- package/dist/types/namespaces/Log.d.ts +10 -0
- package/dist/types/namespaces/Str.d.ts +23 -0
- package/dist/types/namespaces/Timeframe.d.ts +17 -0
- package/dist/types/namespaces/Types.d.ts +86 -0
- package/dist/types/namespaces/array/PineArrayObject.d.ts +102 -1
- package/dist/types/namespaces/array/array.index.d.ts +1 -129
- package/dist/types/namespaces/array/methods/avg.d.ts +2 -1
- package/dist/types/namespaces/array/methods/binary_search.d.ts +2 -0
- package/dist/types/namespaces/array/methods/binary_search_leftmost.d.ts +2 -0
- package/dist/types/namespaces/array/methods/binary_search_rightmost.d.ts +2 -0
- package/dist/types/namespaces/array/methods/covariance.d.ts +2 -1
- package/dist/types/namespaces/array/methods/every.d.ts +1 -1
- package/dist/types/namespaces/array/methods/fill.d.ts +2 -1
- package/dist/types/namespaces/array/methods/from.d.ts +1 -1
- package/dist/types/namespaces/array/methods/join.d.ts +5 -0
- package/dist/types/namespaces/array/methods/median.d.ts +2 -0
- package/dist/types/namespaces/array/methods/mode.d.ts +2 -0
- package/dist/types/namespaces/array/methods/new.d.ts +2 -1
- package/dist/types/namespaces/array/methods/new_float.d.ts +2 -1
- package/dist/types/namespaces/array/methods/new_int.d.ts +2 -1
- package/dist/types/namespaces/array/methods/percentile_linear_interpolation.d.ts +3 -0
- package/dist/types/namespaces/array/methods/percentile_nearest_rank.d.ts +2 -0
- package/dist/types/namespaces/array/methods/percentrank.d.ts +2 -0
- package/dist/types/namespaces/array/methods/push.d.ts +2 -1
- package/dist/types/namespaces/array/methods/range.d.ts +2 -1
- package/dist/types/namespaces/array/methods/set.d.ts +2 -1
- package/dist/types/namespaces/array/methods/some.d.ts +1 -1
- package/dist/types/namespaces/array/methods/sort.d.ts +2 -1
- package/dist/types/namespaces/array/methods/sort_indices.d.ts +2 -1
- package/dist/types/namespaces/array/methods/stdev.d.ts +2 -1
- package/dist/types/namespaces/array/methods/sum.d.ts +2 -1
- package/dist/types/namespaces/array/methods/unshift.d.ts +2 -1
- package/dist/types/namespaces/array/methods/variance.d.ts +2 -1
- package/dist/types/namespaces/array/utils.d.ts +5 -0
- package/dist/types/namespaces/input/methods/any.d.ts +1 -2
- package/dist/types/namespaces/input/methods/bool.d.ts +1 -2
- package/dist/types/namespaces/input/methods/color.d.ts +1 -2
- package/dist/types/namespaces/input/methods/enum.d.ts +1 -2
- package/dist/types/namespaces/input/methods/float.d.ts +1 -2
- package/dist/types/namespaces/input/methods/int.d.ts +1 -2
- package/dist/types/namespaces/input/methods/param.d.ts +1 -1
- package/dist/types/namespaces/input/methods/price.d.ts +1 -2
- package/dist/types/namespaces/input/methods/session.d.ts +1 -2
- package/dist/types/namespaces/input/methods/source.d.ts +1 -2
- package/dist/types/namespaces/input/methods/string.d.ts +1 -2
- package/dist/types/namespaces/input/methods/symbol.d.ts +1 -2
- package/dist/types/namespaces/input/methods/text_area.d.ts +1 -2
- package/dist/types/namespaces/input/methods/time.d.ts +1 -2
- package/dist/types/namespaces/input/methods/timeframe.d.ts +1 -2
- package/dist/types/namespaces/input/types.d.ts +12 -1
- package/dist/types/namespaces/input/utils.d.ts +14 -0
- package/dist/types/namespaces/map/PineMapObject.d.ts +26 -0
- package/dist/types/namespaces/map/map.index.d.ts +7 -0
- package/dist/types/namespaces/map/methods/clear.d.ts +3 -0
- package/dist/types/namespaces/map/methods/contains.d.ts +3 -0
- package/dist/types/namespaces/map/methods/copy.d.ts +3 -0
- package/dist/types/namespaces/map/methods/get.d.ts +3 -0
- package/dist/types/namespaces/map/methods/keys.d.ts +4 -0
- package/dist/types/namespaces/map/methods/new.d.ts +3 -0
- package/dist/types/namespaces/map/methods/param.d.ts +1 -0
- package/dist/types/namespaces/map/methods/put.d.ts +3 -0
- package/dist/types/namespaces/map/methods/put_all.d.ts +3 -0
- package/dist/types/namespaces/map/methods/remove.d.ts +3 -0
- package/dist/types/namespaces/map/methods/size.d.ts +3 -0
- package/dist/types/namespaces/map/methods/values.d.ts +4 -0
- package/dist/types/namespaces/math/math.index.d.ts +18 -0
- package/dist/types/namespaces/math/methods/abs.d.ts +2 -1
- package/dist/types/namespaces/math/methods/e.d.ts +5 -0
- package/dist/types/namespaces/math/methods/phi.d.ts +5 -0
- package/dist/types/namespaces/math/methods/pi.d.ts +5 -0
- package/dist/types/namespaces/math/methods/round_to_mintick.d.ts +2 -0
- package/dist/types/namespaces/math/methods/rphi.d.ts +5 -0
- package/dist/types/namespaces/math/methods/sign.d.ts +2 -0
- package/dist/types/namespaces/matrix/PineMatrixObject.d.ts +102 -0
- package/dist/types/namespaces/matrix/matrix.index.d.ts +7 -0
- package/dist/types/namespaces/matrix/methods/add_col.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/add_row.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/avg.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/col.d.ts +4 -0
- package/dist/types/namespaces/matrix/methods/columns.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/concat.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/copy.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/det.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/diff.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/eigenvalues.d.ts +4 -0
- package/dist/types/namespaces/matrix/methods/eigenvectors.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/elements_count.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/fill.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/get.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/inv.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/is_antidiagonal.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/is_antisymmetric.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/is_binary.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/is_diagonal.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/is_identity.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/is_square.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/is_stochastic.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/is_symmetric.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/is_triangular.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/is_zero.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/kron.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/max.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/median.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/min.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/mode.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/mult.d.ts +4 -0
- package/dist/types/namespaces/matrix/methods/new.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/param.d.ts +1 -0
- package/dist/types/namespaces/matrix/methods/pinv.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/pow.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/rank.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/remove_col.d.ts +4 -0
- package/dist/types/namespaces/matrix/methods/remove_row.d.ts +4 -0
- package/dist/types/namespaces/matrix/methods/reshape.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/reverse.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/row.d.ts +4 -0
- package/dist/types/namespaces/matrix/methods/rows.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/set.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/sort.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/submatrix.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/sum.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/swap_columns.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/swap_rows.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/trace.d.ts +3 -0
- package/dist/types/namespaces/matrix/methods/transpose.d.ts +3 -0
- package/dist/types/namespaces/request/methods/security.d.ts +1 -1
- package/dist/types/namespaces/request/methods/security_lower_tf.d.ts +9 -0
- package/dist/types/namespaces/request/request.index.d.ts +3 -0
- package/dist/types/namespaces/request/types/barmerge.type.d.ts +7 -0
- package/dist/types/namespaces/request/utils/findLTFContextIdx.d.ts +1 -0
- package/dist/types/namespaces/ta/getters/obv.d.ts +12 -0
- package/dist/types/namespaces/ta/methods/accdist.d.ts +7 -0
- package/dist/types/namespaces/ta/methods/alma.d.ts +18 -0
- package/dist/types/namespaces/ta/methods/atr.d.ts +2 -1
- package/dist/types/namespaces/ta/methods/barssince.d.ts +6 -0
- package/dist/types/namespaces/ta/methods/bb.d.ts +17 -0
- package/dist/types/namespaces/ta/methods/bbw.d.ts +9 -0
- package/dist/types/namespaces/ta/methods/cci.d.ts +20 -0
- package/dist/types/namespaces/ta/methods/cmo.d.ts +17 -0
- package/dist/types/namespaces/ta/methods/cog.d.ts +18 -0
- package/dist/types/namespaces/ta/methods/correlation.d.ts +7 -0
- package/dist/types/namespaces/ta/methods/cross.d.ts +15 -0
- package/dist/types/namespaces/ta/methods/cum.d.ts +14 -0
- package/dist/types/namespaces/ta/methods/dmi.d.ts +24 -0
- package/dist/types/namespaces/ta/methods/falling.d.ts +15 -0
- package/dist/types/namespaces/ta/methods/highestbars.d.ts +7 -0
- package/dist/types/namespaces/ta/methods/iii.d.ts +7 -0
- package/dist/types/namespaces/ta/methods/kc.d.ts +12 -0
- package/dist/types/namespaces/ta/methods/kcw.d.ts +11 -0
- package/dist/types/namespaces/ta/methods/lowestbars.d.ts +7 -0
- package/dist/types/namespaces/ta/methods/macd.d.ts +18 -0
- package/dist/types/namespaces/ta/methods/mfi.d.ts +15 -0
- package/dist/types/namespaces/ta/methods/mode.d.ts +6 -0
- package/dist/types/namespaces/ta/methods/nvi.d.ts +10 -0
- package/dist/types/namespaces/ta/methods/obv.d.ts +12 -0
- package/dist/types/namespaces/ta/methods/percentile_linear_interpolation.d.ts +6 -0
- package/dist/types/namespaces/ta/methods/percentile_nearest_rank.d.ts +7 -0
- package/dist/types/namespaces/ta/methods/percentrank.d.ts +6 -0
- package/dist/types/namespaces/ta/methods/pvi.d.ts +10 -0
- package/dist/types/namespaces/ta/methods/pvt.d.ts +12 -0
- package/dist/types/namespaces/ta/methods/range.d.ts +7 -0
- package/dist/types/namespaces/ta/methods/rising.d.ts +15 -0
- package/dist/types/namespaces/ta/methods/sar.d.ts +12 -0
- package/dist/types/namespaces/ta/methods/stoch.d.ts +21 -0
- package/dist/types/namespaces/ta/methods/supertrend.d.ts +23 -0
- package/dist/types/namespaces/ta/methods/swma.d.ts +14 -0
- package/dist/types/namespaces/ta/methods/tr.d.ts +2 -0
- package/dist/types/namespaces/ta/methods/tsi.d.ts +17 -0
- package/dist/types/namespaces/ta/methods/valuewhen.d.ts +6 -0
- package/dist/types/namespaces/ta/methods/vwap.d.ts +14 -0
- package/dist/types/namespaces/ta/methods/wad.d.ts +11 -0
- package/dist/types/namespaces/ta/methods/wpr.d.ts +17 -0
- package/dist/types/namespaces/ta/methods/wvad.d.ts +7 -0
- package/dist/types/namespaces/ta/ta.index.d.ts +120 -5
- package/dist/types/transpiler/analysis/ScopeManager.d.ts +11 -0
- package/dist/types/transpiler/index.d.ts +4 -1
- package/dist/types/transpiler/settings.d.ts +4 -0
- package/dist/types/transpiler/transformers/InjectionTransformer.d.ts +6 -0
- package/dist/types/transpiler/transformers/MainTransformer.d.ts +4 -1
- package/dist/types/transpiler/transformers/NormalizationTransformer.d.ts +15 -0
- package/dist/types/transpiler/transformers/WrapperTransformer.d.ts +9 -0
- package/dist/types/transpiler/utils/ASTFactory.d.ts +2 -0
- package/dist/types/types/PineTypes.d.ts +11 -0
- package/package.json +6 -4
|
@@ -1,135 +1,7 @@
|
|
|
1
1
|
export { PineArrayObject } from './PineArrayObject';
|
|
2
|
-
import { abs } from './methods/abs';
|
|
3
|
-
import { avg } from './methods/avg';
|
|
4
|
-
import { clear } from './methods/clear';
|
|
5
|
-
import { concat } from './methods/concat';
|
|
6
|
-
import { copy } from './methods/copy';
|
|
7
|
-
import { covariance } from './methods/covariance';
|
|
8
|
-
import { every } from './methods/every';
|
|
9
|
-
import { fill } from './methods/fill';
|
|
10
|
-
import { first } from './methods/first';
|
|
11
|
-
import { from } from './methods/from';
|
|
12
|
-
import { get } from './methods/get';
|
|
13
|
-
import { includes } from './methods/includes';
|
|
14
|
-
import { indexof } from './methods/indexof';
|
|
15
|
-
import { insert } from './methods/insert';
|
|
16
|
-
import { join } from './methods/join';
|
|
17
|
-
import { last } from './methods/last';
|
|
18
|
-
import { lastindexof } from './methods/lastindexof';
|
|
19
|
-
import { max } from './methods/max';
|
|
20
|
-
import { min } from './methods/min';
|
|
21
|
-
import { new_fn } from './methods/new';
|
|
22
|
-
import { new_bool } from './methods/new_bool';
|
|
23
|
-
import { new_float } from './methods/new_float';
|
|
24
|
-
import { new_int } from './methods/new_int';
|
|
25
|
-
import { new_string } from './methods/new_string';
|
|
26
|
-
import { param } from './methods/param';
|
|
27
|
-
import { pop } from './methods/pop';
|
|
28
|
-
import { push } from './methods/push';
|
|
29
|
-
import { range } from './methods/range';
|
|
30
|
-
import { remove } from './methods/remove';
|
|
31
|
-
import { reverse } from './methods/reverse';
|
|
32
|
-
import { set } from './methods/set';
|
|
33
|
-
import { shift } from './methods/shift';
|
|
34
|
-
import { size } from './methods/size';
|
|
35
|
-
import { slice } from './methods/slice';
|
|
36
|
-
import { some } from './methods/some';
|
|
37
|
-
import { sort } from './methods/sort';
|
|
38
|
-
import { sort_indices } from './methods/sort_indices';
|
|
39
|
-
import { standardize } from './methods/standardize';
|
|
40
|
-
import { stdev } from './methods/stdev';
|
|
41
|
-
import { sum } from './methods/sum';
|
|
42
|
-
import { unshift } from './methods/unshift';
|
|
43
|
-
import { variance } from './methods/variance';
|
|
44
|
-
declare const methods: {
|
|
45
|
-
abs: typeof abs;
|
|
46
|
-
avg: typeof avg;
|
|
47
|
-
clear: typeof clear;
|
|
48
|
-
concat: typeof concat;
|
|
49
|
-
copy: typeof copy;
|
|
50
|
-
covariance: typeof covariance;
|
|
51
|
-
every: typeof every;
|
|
52
|
-
fill: typeof fill;
|
|
53
|
-
first: typeof first;
|
|
54
|
-
from: typeof from;
|
|
55
|
-
get: typeof get;
|
|
56
|
-
includes: typeof includes;
|
|
57
|
-
indexof: typeof indexof;
|
|
58
|
-
insert: typeof insert;
|
|
59
|
-
join: typeof join;
|
|
60
|
-
last: typeof last;
|
|
61
|
-
lastindexof: typeof lastindexof;
|
|
62
|
-
max: typeof max;
|
|
63
|
-
min: typeof min;
|
|
64
|
-
new: typeof new_fn;
|
|
65
|
-
new_bool: typeof new_bool;
|
|
66
|
-
new_float: typeof new_float;
|
|
67
|
-
new_int: typeof new_int;
|
|
68
|
-
new_string: typeof new_string;
|
|
69
|
-
param: typeof param;
|
|
70
|
-
pop: typeof pop;
|
|
71
|
-
push: typeof push;
|
|
72
|
-
range: typeof range;
|
|
73
|
-
remove: typeof remove;
|
|
74
|
-
reverse: typeof reverse;
|
|
75
|
-
set: typeof set;
|
|
76
|
-
shift: typeof shift;
|
|
77
|
-
size: typeof size;
|
|
78
|
-
slice: typeof slice;
|
|
79
|
-
some: typeof some;
|
|
80
|
-
sort: typeof sort;
|
|
81
|
-
sort_indices: typeof sort_indices;
|
|
82
|
-
standardize: typeof standardize;
|
|
83
|
-
stdev: typeof stdev;
|
|
84
|
-
sum: typeof sum;
|
|
85
|
-
unshift: typeof unshift;
|
|
86
|
-
variance: typeof variance;
|
|
87
|
-
};
|
|
88
2
|
export declare class PineArray {
|
|
89
3
|
private context;
|
|
90
|
-
|
|
91
|
-
abs: ReturnType<typeof methods.abs>;
|
|
92
|
-
avg: ReturnType<typeof methods.avg>;
|
|
93
|
-
clear: ReturnType<typeof methods.clear>;
|
|
94
|
-
concat: ReturnType<typeof methods.concat>;
|
|
95
|
-
copy: ReturnType<typeof methods.copy>;
|
|
96
|
-
covariance: ReturnType<typeof methods.covariance>;
|
|
97
|
-
every: ReturnType<typeof methods.every>;
|
|
98
|
-
fill: ReturnType<typeof methods.fill>;
|
|
99
|
-
first: ReturnType<typeof methods.first>;
|
|
100
|
-
from: ReturnType<typeof methods.from>;
|
|
101
|
-
get: ReturnType<typeof methods.get>;
|
|
102
|
-
includes: ReturnType<typeof methods.includes>;
|
|
103
|
-
indexof: ReturnType<typeof methods.indexof>;
|
|
104
|
-
insert: ReturnType<typeof methods.insert>;
|
|
105
|
-
join: ReturnType<typeof methods.join>;
|
|
106
|
-
last: ReturnType<typeof methods.last>;
|
|
107
|
-
lastindexof: ReturnType<typeof methods.lastindexof>;
|
|
108
|
-
max: ReturnType<typeof methods.max>;
|
|
109
|
-
min: ReturnType<typeof methods.min>;
|
|
110
|
-
new: ReturnType<typeof methods.new>;
|
|
111
|
-
new_bool: ReturnType<typeof methods.new_bool>;
|
|
112
|
-
new_float: ReturnType<typeof methods.new_float>;
|
|
113
|
-
new_int: ReturnType<typeof methods.new_int>;
|
|
114
|
-
new_string: ReturnType<typeof methods.new_string>;
|
|
115
|
-
param: ReturnType<typeof methods.param>;
|
|
116
|
-
pop: ReturnType<typeof methods.pop>;
|
|
117
|
-
push: ReturnType<typeof methods.push>;
|
|
118
|
-
range: ReturnType<typeof methods.range>;
|
|
119
|
-
remove: ReturnType<typeof methods.remove>;
|
|
120
|
-
reverse: ReturnType<typeof methods.reverse>;
|
|
121
|
-
set: ReturnType<typeof methods.set>;
|
|
122
|
-
shift: ReturnType<typeof methods.shift>;
|
|
123
|
-
size: ReturnType<typeof methods.size>;
|
|
124
|
-
slice: ReturnType<typeof methods.slice>;
|
|
125
|
-
some: ReturnType<typeof methods.some>;
|
|
126
|
-
sort: ReturnType<typeof methods.sort>;
|
|
127
|
-
sort_indices: ReturnType<typeof methods.sort_indices>;
|
|
128
|
-
standardize: ReturnType<typeof methods.standardize>;
|
|
129
|
-
stdev: ReturnType<typeof methods.stdev>;
|
|
130
|
-
sum: ReturnType<typeof methods.sum>;
|
|
131
|
-
unshift: ReturnType<typeof methods.unshift>;
|
|
132
|
-
variance: ReturnType<typeof methods.variance>;
|
|
4
|
+
[key: string]: any;
|
|
133
5
|
constructor(context: any);
|
|
134
6
|
}
|
|
135
7
|
export default PineArray;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { PineArrayObject } from '../PineArrayObject';
|
|
2
|
-
|
|
2
|
+
import { Context } from '../../../Context.class';
|
|
3
|
+
export declare function covariance(context: Context): (arr1: PineArrayObject, arr2: PineArrayObject, biased?: boolean) => number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PineArrayObject } from '../PineArrayObject';
|
|
2
|
-
export declare function every(context: any): (id: PineArrayObject
|
|
2
|
+
export declare function every(context: any): (id: PineArrayObject) => boolean;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { PineArrayObject } from '../PineArrayObject';
|
|
2
|
-
|
|
2
|
+
import { Context } from '../../../Context.class';
|
|
3
|
+
export declare function fill(context: Context): (id: PineArrayObject, value: any, start?: number, end?: number) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PineArrayObject } from '../PineArrayObject';
|
|
2
|
-
export declare function from(context: any): (
|
|
2
|
+
export declare function from(context: any): (...values: any[]) => PineArrayObject;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import { PineArrayObject } from '../PineArrayObject';
|
|
2
|
+
/**
|
|
3
|
+
* Joins the elements of the array into a string, separated by the separator.
|
|
4
|
+
* @param context - The context of the array.
|
|
5
|
+
* @returns The string of the joined elements.
|
|
6
|
+
*/
|
|
2
7
|
export declare function join(context: any): (id: PineArrayObject, separator?: string) => string;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { PineArrayObject } from '../PineArrayObject';
|
|
2
|
-
|
|
2
|
+
import { Context } from '../../../Context.class';
|
|
3
|
+
export declare function new_fn(context: Context): <T>(size: number, initial_value: T) => PineArrayObject;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { PineArrayObject } from '../PineArrayObject';
|
|
2
|
-
|
|
2
|
+
import { Context } from '../../../Context.class';
|
|
3
|
+
export declare function new_float(context: Context): (size: number, initial_value?: number) => PineArrayObject;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { PineArrayObject } from '../PineArrayObject';
|
|
2
|
-
|
|
2
|
+
import { Context } from '../../../Context.class';
|
|
3
|
+
export declare function new_int(context: Context): (size: number, initial_value?: number) => PineArrayObject;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { PineArrayObject } from '../PineArrayObject';
|
|
2
|
-
|
|
2
|
+
import { Context } from '../../../Context.class';
|
|
3
|
+
export declare function push(context: Context): (id: PineArrayObject, value: any) => void;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { PineArrayObject } from '../PineArrayObject';
|
|
2
|
-
|
|
2
|
+
import { Context } from '../../../Context.class';
|
|
3
|
+
export declare function set(context: Context): (id: PineArrayObject, index: number, value: any) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PineArrayObject } from '../PineArrayObject';
|
|
2
|
-
export declare function some(context: any): (id: PineArrayObject
|
|
2
|
+
export declare function some(context: any): (id: PineArrayObject) => boolean;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { PineArrayObject } from '../PineArrayObject';
|
|
2
|
-
|
|
2
|
+
import { order } from '../../Types';
|
|
3
|
+
export declare function sort(context: any): (id: PineArrayObject, _order?: order) => void;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { PineArrayObject } from '../PineArrayObject';
|
|
2
|
-
|
|
2
|
+
import { order } from '../../Types';
|
|
3
|
+
export declare function sort_indices(context: any): (id: PineArrayObject, _order?: order) => PineArrayObject;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { PineArrayObject } from '../PineArrayObject';
|
|
2
|
-
|
|
2
|
+
import { Context } from '../../../Context.class';
|
|
3
|
+
export declare function stdev(context: Context): (id: PineArrayObject, biased?: boolean) => number;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { PineArrayObject } from '../PineArrayObject';
|
|
2
|
-
|
|
2
|
+
import { Context } from '../../../Context.class';
|
|
3
|
+
export declare function unshift(context: Context): (id: PineArrayObject, value: any) => void;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { PineArrayObject } from '../PineArrayObject';
|
|
2
|
-
|
|
2
|
+
import { Context } from '../../../Context.class';
|
|
3
|
+
export declare function variance(context: Context): (id: PineArrayObject, biased?: boolean) => number;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PineArrayType } from './PineArrayObject';
|
|
2
|
+
export declare function inferArrayType(values: any[]): PineArrayType;
|
|
3
|
+
export declare function inferValueType(value: any): PineArrayType;
|
|
4
|
+
export declare function isArrayOfType(array: any[], type: PineArrayType): boolean;
|
|
5
|
+
export declare function isValueOfType(value: any, type: PineArrayType): boolean;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function any(context: any): (value: any, { title, group }?: InputOptions) => any;
|
|
1
|
+
export declare function any(context: any): (...args: any[]) => any;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function bool(context: any): (value: boolean, { title, group }?: InputOptions) => any;
|
|
1
|
+
export declare function bool(context: any): (...args: any[]) => any;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function color(context: any): (value: string, { title, group }?: InputOptions) => any;
|
|
1
|
+
export declare function color(context: any): (...args: any[]) => any;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function enum_fn(context: any): (value: string, { title, group }?: InputOptions) => any;
|
|
1
|
+
export declare function enum_fn(context: any): (...args: any[]) => any;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function float(context: any): (value: number, { title, group }?: InputOptions) => any;
|
|
1
|
+
export declare function float(context: any): (...args: any[]) => any;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function int(context: any): (value: number, { title, group }?: InputOptions) => any;
|
|
1
|
+
export declare function int(context: any): (...args: any[]) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function param(context: any): (source: any, index?: number) => any
|
|
1
|
+
export declare function param(context: any): (source: any, index?: number) => any;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function price(context: any): (value: number, { title, group }?: InputOptions) => any;
|
|
1
|
+
export declare function price(context: any): (...args: any[]) => any;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function session(context: any): (value: string, { title, group }?: InputOptions) => any;
|
|
1
|
+
export declare function session(context: any): (...args: any[]) => any;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function source(context: any): (value: any, { title, group }?: InputOptions) => any;
|
|
1
|
+
export declare function source(context: any): (...args: any[]) => any;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function string(context: any): (value: string, { title, group }?: InputOptions) => any;
|
|
1
|
+
export declare function string(context: any): (...args: any[]) => any;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function symbol(context: any): (value: string, { title, group }?: InputOptions) => any;
|
|
1
|
+
export declare function symbol(context: any): (...args: any[]) => any;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function text_area(context: any): (value: string, { title, group }?: InputOptions) => any;
|
|
1
|
+
export declare function text_area(context: any): (...args: any[]) => any;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function time(context: any): (value: number, { title, group }?: InputOptions) => any;
|
|
1
|
+
export declare function time(context: any): (...args: any[]) => any;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function timeframe(context: any): (value: string, { title, group }?: InputOptions) => any;
|
|
1
|
+
export declare function timeframe(context: any): (...args: any[]) => any;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
export type InputOptions = {
|
|
2
|
+
defval?: any;
|
|
2
3
|
title?: string;
|
|
4
|
+
options?: any[];
|
|
5
|
+
tooltip?: string;
|
|
6
|
+
minval?: number;
|
|
7
|
+
maxval?: number;
|
|
8
|
+
step?: number;
|
|
9
|
+
inline?: string;
|
|
3
10
|
group?: string;
|
|
4
|
-
|
|
11
|
+
confirm?: boolean;
|
|
12
|
+
display?: string;
|
|
13
|
+
active?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const InputOptionsKeys: readonly ["defval", "title", "options", "tooltip", "minval", "maxval", "step", "inline", "group", "confirm"];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function parseInputOptions(args: any[]): {
|
|
2
|
+
defval?: any;
|
|
3
|
+
title?: string;
|
|
4
|
+
options?: any[];
|
|
5
|
+
tooltip?: string;
|
|
6
|
+
minval?: number;
|
|
7
|
+
maxval?: number;
|
|
8
|
+
step?: number;
|
|
9
|
+
inline?: string;
|
|
10
|
+
group?: string;
|
|
11
|
+
confirm?: boolean;
|
|
12
|
+
display?: string;
|
|
13
|
+
active?: boolean;
|
|
14
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare class PineMapObject {
|
|
2
|
+
context: any;
|
|
3
|
+
map: Map<any, any>;
|
|
4
|
+
private _clear;
|
|
5
|
+
private _contains;
|
|
6
|
+
private _copy;
|
|
7
|
+
private _get;
|
|
8
|
+
private _keys;
|
|
9
|
+
private _put;
|
|
10
|
+
private _put_all;
|
|
11
|
+
private _remove;
|
|
12
|
+
private _size;
|
|
13
|
+
private _values;
|
|
14
|
+
constructor(context: any);
|
|
15
|
+
toString(): string;
|
|
16
|
+
clear(...args: any[]): any;
|
|
17
|
+
contains(...args: any[]): any;
|
|
18
|
+
copy(...args: any[]): any;
|
|
19
|
+
get(...args: any[]): any;
|
|
20
|
+
keys(...args: any[]): any;
|
|
21
|
+
put(...args: any[]): any;
|
|
22
|
+
put_all(...args: any[]): any;
|
|
23
|
+
remove(...args: any[]): any;
|
|
24
|
+
size(...args: any[]): any;
|
|
25
|
+
values(...args: any[]): any;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function param(context: any): (source: any, index?: number) => any;
|
|
@@ -5,6 +5,7 @@ import { atan } from './methods/atan';
|
|
|
5
5
|
import { avg } from './methods/avg';
|
|
6
6
|
import { ceil } from './methods/ceil';
|
|
7
7
|
import { cos } from './methods/cos';
|
|
8
|
+
import { e } from './methods/e';
|
|
8
9
|
import { exp } from './methods/exp';
|
|
9
10
|
import { floor } from './methods/floor';
|
|
10
11
|
import { ln } from './methods/ln';
|
|
@@ -13,9 +14,14 @@ import { log10 } from './methods/log10';
|
|
|
13
14
|
import { max } from './methods/max';
|
|
14
15
|
import { min } from './methods/min';
|
|
15
16
|
import { param } from './methods/param';
|
|
17
|
+
import { phi } from './methods/phi';
|
|
18
|
+
import { pi } from './methods/pi';
|
|
16
19
|
import { pow } from './methods/pow';
|
|
17
20
|
import { random } from './methods/random';
|
|
18
21
|
import { round } from './methods/round';
|
|
22
|
+
import { round_to_mintick } from './methods/round_to_mintick';
|
|
23
|
+
import { rphi } from './methods/rphi';
|
|
24
|
+
import { sign } from './methods/sign';
|
|
19
25
|
import { sin } from './methods/sin';
|
|
20
26
|
import { sqrt } from './methods/sqrt';
|
|
21
27
|
import { sum } from './methods/sum';
|
|
@@ -29,6 +35,7 @@ declare const methods: {
|
|
|
29
35
|
avg: typeof avg;
|
|
30
36
|
ceil: typeof ceil;
|
|
31
37
|
cos: typeof cos;
|
|
38
|
+
e: typeof e;
|
|
32
39
|
exp: typeof exp;
|
|
33
40
|
floor: typeof floor;
|
|
34
41
|
ln: typeof ln;
|
|
@@ -37,9 +44,14 @@ declare const methods: {
|
|
|
37
44
|
max: typeof max;
|
|
38
45
|
min: typeof min;
|
|
39
46
|
param: typeof param;
|
|
47
|
+
phi: typeof phi;
|
|
48
|
+
pi: typeof pi;
|
|
40
49
|
pow: typeof pow;
|
|
41
50
|
random: typeof random;
|
|
42
51
|
round: typeof round;
|
|
52
|
+
round_to_mintick: typeof round_to_mintick;
|
|
53
|
+
rphi: typeof rphi;
|
|
54
|
+
sign: typeof sign;
|
|
43
55
|
sin: typeof sin;
|
|
44
56
|
sqrt: typeof sqrt;
|
|
45
57
|
sum: typeof sum;
|
|
@@ -56,6 +68,7 @@ export declare class PineMath {
|
|
|
56
68
|
avg: ReturnType<typeof methods.avg>;
|
|
57
69
|
ceil: ReturnType<typeof methods.ceil>;
|
|
58
70
|
cos: ReturnType<typeof methods.cos>;
|
|
71
|
+
e: ReturnType<typeof methods.e>;
|
|
59
72
|
exp: ReturnType<typeof methods.exp>;
|
|
60
73
|
floor: ReturnType<typeof methods.floor>;
|
|
61
74
|
ln: ReturnType<typeof methods.ln>;
|
|
@@ -64,9 +77,14 @@ export declare class PineMath {
|
|
|
64
77
|
max: ReturnType<typeof methods.max>;
|
|
65
78
|
min: ReturnType<typeof methods.min>;
|
|
66
79
|
param: ReturnType<typeof methods.param>;
|
|
80
|
+
phi: ReturnType<typeof methods.phi>;
|
|
81
|
+
pi: ReturnType<typeof methods.pi>;
|
|
67
82
|
pow: ReturnType<typeof methods.pow>;
|
|
68
83
|
random: ReturnType<typeof methods.random>;
|
|
69
84
|
round: ReturnType<typeof methods.round>;
|
|
85
|
+
round_to_mintick: ReturnType<typeof methods.round_to_mintick>;
|
|
86
|
+
rphi: ReturnType<typeof methods.rphi>;
|
|
87
|
+
sign: ReturnType<typeof methods.sign>;
|
|
70
88
|
sin: ReturnType<typeof methods.sin>;
|
|
71
89
|
sqrt: ReturnType<typeof methods.sqrt>;
|
|
72
90
|
sum: ReturnType<typeof methods.sum>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Context } from '../../../Context.class';
|
|
2
|
+
export declare function abs(context: Context): (source: any) => number;
|