@guihz/trading-vue-editor-tes 0.0.301 → 0.1.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/lib/assets/editor.worker-BxEYBjj-.js +7352 -0
- package/lib/assets/parserTccWorker-D5cq4N-Y.js +80540 -0
- package/lib/assets/scriptsRunWorker-CaEvEpNA.js +37748 -0
- package/lib/components/diffEditor/index.d.ts +1 -0
- package/lib/components/editor/config/monarchTokens.d.ts +2 -4
- package/lib/components/editor/constants/common.d.ts +38 -0
- package/lib/components/editor/constants/locals.d.ts +1 -0
- package/lib/components/editor/index.d.ts +1 -0
- package/lib/components/editor/tokenizer/utils.d.ts +0 -16
- package/lib/components/editor/type/index.d.ts +32 -1
- package/lib/components/editor/utils/completions.d.ts +3 -1
- package/lib/components/editor/utils/importLibrary.d.ts +2 -160
- package/lib/components/editor/utils/initEditor.d.ts +3 -0
- package/lib/components/editor/utils/parse.d.ts +2 -0
- package/lib/components/editor/utils/parserTccWorker.d.ts +1 -7
- package/lib/components/editor/utils/scriptsRunWorker.d.ts +1 -1
- package/lib/components/editor/utils/signatureHelp.d.ts +2 -0
- package/lib/components/editor/utils/tools.d.ts +6 -0
- package/lib/components/editor/v3/config/monarchTokens.d.ts +3 -0
- package/lib/components/editor/v3/constants/contents_zh.d.ts +6 -0
- package/lib/components/editor/{constants/contents.d.ts → v3/constants/index.d.ts} +1 -5
- package/lib/components/editor/v3/parseScript/buildInConstants.d.ts +179 -0
- package/lib/components/editor/v3/parseScript/buildInFuncNamespace/index.d.ts +9 -0
- package/lib/components/editor/v3/parseScript/buildInFuncNamespace/input.d.ts +43 -0
- package/lib/components/editor/v3/parseScript/buildInFuncNamespace/math.d.ts +50 -0
- package/lib/components/editor/v3/parseScript/buildInFuncNamespace/strategy.d.ts +243 -0
- package/lib/components/editor/v3/parseScript/buildInFuncNamespace/ta.d.ts +102 -0
- package/lib/components/editor/{parseScript → v3/parseScript}/buildInFuncNamespace/timeframe.d.ts +1 -1
- package/lib/components/editor/v3/parseScript/buildInVarNamespace/barstate.d.ts +19 -0
- package/lib/components/editor/v3/parseScript/buildInVarNamespace/index.d.ts +4 -0
- package/lib/components/editor/v3/parseScript/buildInVarNamespace/strategy.d.ts +126 -0
- package/lib/components/editor/v3/parseScript/buildInVarNamespace/syminfo.d.ts +22 -0
- package/lib/components/editor/v3/parseScript/buildInVarNamespace/ta.d.ts +17 -0
- package/lib/components/editor/v3/parseScript/buildInVariables.d.ts +96 -0
- package/lib/components/editor/v3/parseScript/constants.d.ts +119 -0
- package/lib/components/editor/v3/parseScript/enum.d.ts +283 -0
- package/lib/components/editor/v3/parseScript/parseToJs.d.ts +65 -0
- package/lib/components/editor/v3/parseScript/runType.d.ts +119 -0
- package/lib/components/editor/v3/parseScript/strategyNamespace/index.d.ts +2 -0
- package/lib/components/editor/{parseScript → v3/parseScript}/type.d.ts +1 -1
- package/lib/components/editor/v3/parseScript/utils.d.ts +21 -0
- package/lib/components/editor/v3/parseScript/visitorParser.d.ts +321 -0
- package/lib/components/editor/v3/parseScript/visitorUtils.d.ts +25 -0
- package/lib/components/editor/v3/parserTccWorker.d.ts +32 -0
- package/lib/components/editor/v3/scriptsRunWorker.d.ts +11 -0
- package/lib/{tccParser → components/editor/v3/tccParser}/LexerBase.d.ts +1 -1
- package/lib/components/editor/v3/tccParser/tccScriptParserVisitor.d.ts +359 -0
- package/lib/components/editor/v4/config/monarchTokens.d.ts +205 -0
- package/lib/components/editor/v4/constants/contents_zh.d.ts +6 -0
- package/lib/components/editor/v4/constants/index.d.ts +44 -0
- package/lib/components/editor/v4/parseScript/buildInConstants.d.ts +308 -0
- package/lib/components/editor/v4/parseScript/buildInFuncNamespace/array.d.ts +84 -0
- package/lib/components/editor/v4/parseScript/buildInFuncNamespace/box.d.ts +60 -0
- package/lib/components/editor/v4/parseScript/buildInFuncNamespace/errorListener.d.ts +9 -0
- package/lib/components/editor/v4/parseScript/buildInFuncNamespace/index.d.ts +17 -0
- package/lib/components/editor/v4/parseScript/buildInFuncNamespace/input.d.ts +44 -0
- package/lib/components/editor/v4/parseScript/buildInFuncNamespace/label.d.ts +61 -0
- package/lib/components/editor/v4/parseScript/buildInFuncNamespace/line.d.ts +62 -0
- package/lib/components/editor/v4/parseScript/buildInFuncNamespace/math.d.ts +50 -0
- package/lib/components/editor/v4/parseScript/buildInFuncNamespace/strategy.d.ts +244 -0
- package/lib/components/editor/v4/parseScript/buildInFuncNamespace/string.d.ts +38 -0
- package/lib/components/editor/v4/parseScript/buildInFuncNamespace/ta.d.ts +118 -0
- package/lib/components/editor/v4/parseScript/buildInFuncNamespace/table.d.ts +87 -0
- package/lib/components/editor/v4/parseScript/buildInFuncNamespace/timeframe.d.ts +22 -0
- package/lib/components/editor/{parseScript → v4/parseScript}/buildInVarNamespace/barstate.d.ts +1 -1
- package/lib/components/editor/v4/parseScript/buildInVarNamespace/index.d.ts +8 -0
- package/lib/components/editor/v4/parseScript/buildInVarNamespace/strategy.d.ts +126 -0
- package/lib/components/editor/v4/parseScript/buildInVarNamespace/syminfo.d.ts +18 -0
- package/lib/components/editor/v4/parseScript/buildInVarNamespace/ta.d.ts +34 -0
- package/lib/components/editor/{parseScript → v4/parseScript}/constants.d.ts +1 -160
- package/lib/components/editor/v4/parseScript/constantsRun.d.ts +3 -0
- package/lib/components/editor/v4/parseScript/enum.d.ts +282 -0
- package/lib/components/editor/v4/parseScript/parseToJs.d.ts +65 -0
- package/lib/components/editor/v4/parseScript/strategyNamespace/index.d.ts +2 -0
- package/lib/components/editor/v4/parseScript/strategyNamespace/risk.d.ts +22 -0
- package/lib/components/editor/v4/parseScript/type.d.ts +39 -0
- package/lib/components/editor/v4/parseScript/utils.d.ts +21 -0
- package/lib/components/editor/v4/parseScript/visitorParser.d.ts +323 -0
- package/lib/components/editor/v4/parseScript/visitorUtils.d.ts +29 -0
- package/lib/components/editor/v4/parserTccWorker.d.ts +32 -0
- package/lib/components/editor/v4/scriptsRunWorker.d.ts +11 -0
- package/lib/components/editor/v4/tccParser/LexerBase.d.ts +19 -0
- package/lib/components/editor/v4/tccParser/tccScriptParserVisitor.d.ts +401 -0
- package/lib/components/editor/v5/config/monarchTokens.d.ts +205 -0
- package/lib/components/editor/v5/constants/contents_en.d.ts +6 -0
- package/lib/components/editor/{constants → v5/constants}/contents_zh.d.ts +1 -1
- package/lib/components/editor/v5/constants/index.d.ts +41 -0
- package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/box.d.ts +1 -1
- package/lib/components/editor/v5/parseScript/buildInFuncNamespace/color.d.ts +25 -0
- package/lib/components/editor/v5/parseScript/buildInFuncNamespace/errorListener.d.ts +9 -0
- package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/label.d.ts +1 -1
- package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/line.d.ts +1 -1
- package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/linefill.d.ts +1 -1
- package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/log.d.ts +1 -1
- package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/map.d.ts +1 -1
- package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/math.d.ts +1 -1
- package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/polyline.d.ts +1 -1
- package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/strategy.d.ts +1 -1
- package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/ta.d.ts +1 -1
- package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/table.d.ts +1 -1
- package/lib/components/editor/v5/parseScript/buildInFuncNamespace/timeframe.d.ts +22 -0
- package/lib/components/editor/v5/parseScript/buildInVarNamespace/barstate.d.ts +22 -0
- package/lib/components/editor/{parseScript → v5/parseScript}/buildInVarNamespace/chart.d.ts +1 -1
- package/lib/components/editor/v5/parseScript/buildInVarNamespace/dividends.d.ts +8 -0
- package/lib/components/editor/v5/parseScript/buildInVarNamespace/earnings.d.ts +9 -0
- package/lib/components/editor/v5/parseScript/buildInVarNamespace/session.d.ts +12 -0
- package/lib/components/editor/{parseScript → v5/parseScript}/buildInVarNamespace/strategy.d.ts +1 -1
- package/lib/components/editor/{parseScript → v5/parseScript}/buildInVarNamespace/syminfo.d.ts +1 -1
- package/lib/components/editor/{parseScript → v5/parseScript}/buildInVarNamespace/ta.d.ts +4 -3
- package/lib/components/editor/v5/parseScript/buildInVarNamespace/timeframe.d.ts +16 -0
- package/lib/components/editor/v5/parseScript/constants.d.ts +124 -0
- package/lib/components/editor/v5/parseScript/constantsRun.d.ts +3 -0
- package/lib/components/editor/{parseScript → v5/parseScript}/parseToJs.d.ts +1 -1
- package/lib/components/editor/{parseScript → v5/parseScript}/parseToLibJs.d.ts +1 -1
- package/lib/components/editor/v5/parseScript/strategyNamespace/risk.d.ts +22 -0
- package/lib/components/editor/v5/parseScript/type.d.ts +39 -0
- package/lib/components/editor/{parseScript → v5/parseScript}/userTypeClass.d.ts +1 -1
- package/lib/components/editor/{parseScript → v5/parseScript}/utils.d.ts +1 -1
- package/lib/components/editor/{parseScript → v5/parseScript}/visitorParser.d.ts +1 -1
- package/lib/components/editor/{parseScript → v5/parseScript}/visitorUtils.d.ts +2 -2
- package/lib/components/editor/v5/parserTccWorker.d.ts +40 -0
- package/lib/components/editor/v5/scriptsRunWorker.d.ts +11 -0
- package/lib/components/editor/v5/tccParser/LexerBase.d.ts +19 -0
- package/lib/{tccParser → components/editor/v5/tccParser}/tccScriptParserVisitor.d.ts +1 -1
- package/lib/components/referenceManual/components/ContentItem.d.ts +2 -0
- package/lib/components/referenceManual/index.d.ts +2 -0
- package/lib/components/referenceManualPage/components/ContentItem.d.ts +1 -0
- package/lib/components/referenceManualPage/components/ManualLeft.d.ts +5 -0
- package/lib/components/referenceManualPage/index.d.ts +2 -0
- package/lib/index-Ce2gRdFk.js +12813 -0
- package/lib/index-CjECfhIW.js +28088 -0
- package/lib/index-UdtfRBFV.js +59792 -0
- package/lib/monarchTokens-Cj3v8l0Q.js +526 -0
- package/lib/monarchTokens-CnFYyHnR.js +191 -0
- package/lib/monarchTokens-oh3fO2YY.js +563 -0
- package/lib/packages/index.d.ts +3 -3
- package/lib/trading-vue-editor.es.packages.js +6356 -66629
- package/lib/trading-vue-editor.umd.packages.mjs +117 -75
- package/lib/utils/tools.d.ts +7 -2
- package/package.json +1 -1
- package/lib/assets/editor.worker-CT5Cb1wO.js +0 -11
- package/lib/assets/parserTccWorker-cjv11J0f.js +0 -279
- package/lib/assets/scriptsRunWorker-C5pVAsLn.js +0 -91
- /package/lib/components/editor/{parseScript → v3/parseScript}/buildInFuncNamespace/errorListener.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v3/parseScript}/constantsRun.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v3/parseScript}/strategyNamespace/risk.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v4/parseScript}/buildInFuncNamespace/color.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v4/parseScript}/buildInVarNamespace/dividends.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v4/parseScript}/buildInVarNamespace/earnings.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v4/parseScript}/buildInVarNamespace/session.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v4/parseScript}/buildInVarNamespace/timeframe.d.ts +0 -0
- /package/lib/components/editor/{constants → v5/constants}/newContents_en.d.ts +0 -0
- /package/lib/components/editor/{constants → v5/constants}/newContents_zh.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v5/parseScript}/buildInConstants.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/array.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/chartPoint.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/index.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/input.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/matrix.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/runtime.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/string.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/syminfo.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v5/parseScript}/buildInVarNamespace/index.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v5/parseScript}/enum.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v5/parseScript}/strategyNamespace/closedtrades.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v5/parseScript}/strategyNamespace/index.d.ts +0 -0
- /package/lib/components/editor/{parseScript → v5/parseScript}/strategyNamespace/opentrades.d.ts +0 -0
@@ -0,0 +1,308 @@
|
|
1
|
+
import { VPlotDisplay, VExtend, VDividends, VFormatType, VHlineStyle, VLabelStyle, VLineStyle, VLocation, VPlotStyle, VPosition, VAdjustment, VAlert, VScale, VSession, VShape, VSize, VStrategy, VCommission, VDirection, VOca, VText, VXloc, VYloc, VEarnings, VInputType } from './enum';
|
2
|
+
export declare const COLOR_BUILD_IN: {
|
3
|
+
aqua: string;
|
4
|
+
black: string;
|
5
|
+
blue: string;
|
6
|
+
fuchsia: string;
|
7
|
+
gray: string;
|
8
|
+
green: string;
|
9
|
+
lime: string;
|
10
|
+
maroon: string;
|
11
|
+
navy: string;
|
12
|
+
olive: string;
|
13
|
+
orange: string;
|
14
|
+
purple: string;
|
15
|
+
red: string;
|
16
|
+
silver: string;
|
17
|
+
teal: string;
|
18
|
+
white: string;
|
19
|
+
yellow: string;
|
20
|
+
};
|
21
|
+
export declare const CURRENCY_BUILD_IN: {
|
22
|
+
AUD: string;
|
23
|
+
BTC: string;
|
24
|
+
CAD: string;
|
25
|
+
CHF: string;
|
26
|
+
ETH: string;
|
27
|
+
EUR: string;
|
28
|
+
GBP: string;
|
29
|
+
HKD: string;
|
30
|
+
INR: string;
|
31
|
+
JPY: string;
|
32
|
+
KRW: string;
|
33
|
+
MYR: string;
|
34
|
+
NOK: string;
|
35
|
+
NONE: string;
|
36
|
+
NZD: string;
|
37
|
+
RUB: string;
|
38
|
+
SEK: string;
|
39
|
+
SGD: string;
|
40
|
+
TRY: string;
|
41
|
+
USD: string;
|
42
|
+
USDT: string;
|
43
|
+
ZAR: string;
|
44
|
+
};
|
45
|
+
export declare const DISPLAY_BUILD_IN: {
|
46
|
+
all: VPlotDisplay[];
|
47
|
+
none: never[];
|
48
|
+
};
|
49
|
+
export declare class BuildInConstants {
|
50
|
+
adjustment: {
|
51
|
+
dividends: VAdjustment;
|
52
|
+
none: VAdjustment;
|
53
|
+
splits: VAdjustment;
|
54
|
+
};
|
55
|
+
alert: {
|
56
|
+
freq_all: VAlert;
|
57
|
+
freq_once_per_bar: VAlert;
|
58
|
+
freq_once_per_bar_close: VAlert;
|
59
|
+
};
|
60
|
+
barmerge: {
|
61
|
+
gaps_off: boolean;
|
62
|
+
gaps_on: boolean;
|
63
|
+
lookahead_off: boolean;
|
64
|
+
lookahead_on: boolean;
|
65
|
+
};
|
66
|
+
color: {
|
67
|
+
aqua: string;
|
68
|
+
black: string;
|
69
|
+
blue: string;
|
70
|
+
fuchsia: string;
|
71
|
+
gray: string;
|
72
|
+
green: string;
|
73
|
+
lime: string;
|
74
|
+
maroon: string;
|
75
|
+
navy: string;
|
76
|
+
olive: string;
|
77
|
+
orange: string;
|
78
|
+
purple: string;
|
79
|
+
red: string;
|
80
|
+
silver: string;
|
81
|
+
teal: string;
|
82
|
+
white: string;
|
83
|
+
yellow: string;
|
84
|
+
};
|
85
|
+
currency: {
|
86
|
+
AUD: string;
|
87
|
+
BTC: string;
|
88
|
+
CAD: string;
|
89
|
+
CHF: string;
|
90
|
+
ETH: string;
|
91
|
+
EUR: string;
|
92
|
+
GBP: string;
|
93
|
+
HKD: string;
|
94
|
+
INR: string;
|
95
|
+
JPY: string;
|
96
|
+
KRW: string;
|
97
|
+
MYR: string;
|
98
|
+
NOK: string;
|
99
|
+
NONE: string;
|
100
|
+
NZD: string;
|
101
|
+
RUB: string;
|
102
|
+
SEK: string;
|
103
|
+
SGD: string;
|
104
|
+
TRY: string;
|
105
|
+
USD: string;
|
106
|
+
USDT: string;
|
107
|
+
ZAR: string;
|
108
|
+
};
|
109
|
+
dayofweek: {
|
110
|
+
friday: number;
|
111
|
+
monday: number;
|
112
|
+
saturday: number;
|
113
|
+
sunday: number;
|
114
|
+
thursday: number;
|
115
|
+
tuesday: number;
|
116
|
+
wednesday: number;
|
117
|
+
};
|
118
|
+
earnings: {
|
119
|
+
actual: VEarnings;
|
120
|
+
estimate: VEarnings;
|
121
|
+
};
|
122
|
+
display: {
|
123
|
+
all: VPlotDisplay[];
|
124
|
+
none: never[];
|
125
|
+
};
|
126
|
+
dividends: {
|
127
|
+
gross: VDividends;
|
128
|
+
net: VDividends;
|
129
|
+
};
|
130
|
+
extend: {
|
131
|
+
both: VExtend;
|
132
|
+
left: VExtend;
|
133
|
+
none: VExtend;
|
134
|
+
right: VExtend;
|
135
|
+
};
|
136
|
+
format: {
|
137
|
+
inherit: VFormatType;
|
138
|
+
mintick: VFormatType;
|
139
|
+
percent: VFormatType;
|
140
|
+
price: VFormatType;
|
141
|
+
volume: VFormatType;
|
142
|
+
};
|
143
|
+
hline: {
|
144
|
+
style_solid: VHlineStyle;
|
145
|
+
style_dashed: VHlineStyle;
|
146
|
+
style_dotted: VHlineStyle;
|
147
|
+
};
|
148
|
+
input: {
|
149
|
+
bool: VInputType;
|
150
|
+
color: VInputType;
|
151
|
+
float: VInputType;
|
152
|
+
integer: VInputType;
|
153
|
+
string: VInputType;
|
154
|
+
symbol: VInputType;
|
155
|
+
price: VInputType;
|
156
|
+
time: VInputType;
|
157
|
+
session: VInputType;
|
158
|
+
resolution: VInputType;
|
159
|
+
source: VInputType;
|
160
|
+
};
|
161
|
+
label: {
|
162
|
+
style_arrowdown: VLabelStyle;
|
163
|
+
style_arrowup: VLabelStyle;
|
164
|
+
style_circle: VLabelStyle;
|
165
|
+
style_cross: VLabelStyle;
|
166
|
+
style_diamond: VLabelStyle;
|
167
|
+
style_flag: VLabelStyle;
|
168
|
+
style_label_center: VLabelStyle;
|
169
|
+
style_label_down: VLabelStyle;
|
170
|
+
style_label_left: VLabelStyle;
|
171
|
+
style_label_lower_left: VLabelStyle;
|
172
|
+
style_label_lower_right: VLabelStyle;
|
173
|
+
style_label_right: VLabelStyle;
|
174
|
+
style_label_up: VLabelStyle;
|
175
|
+
style_label_upper_left: VLabelStyle;
|
176
|
+
style_label_upper_right: VLabelStyle;
|
177
|
+
style_none: VLabelStyle;
|
178
|
+
style_square: VLabelStyle;
|
179
|
+
style_text_outline: VLabelStyle;
|
180
|
+
style_triangledown: VLabelStyle;
|
181
|
+
style_triangleup: VLabelStyle;
|
182
|
+
style_xcross: VLabelStyle;
|
183
|
+
};
|
184
|
+
line: {
|
185
|
+
style_arrow_both: VLineStyle;
|
186
|
+
style_arrow_left: VLineStyle;
|
187
|
+
style_arrow_right: VLineStyle;
|
188
|
+
style_dashed: VLineStyle;
|
189
|
+
style_dotted: VLineStyle;
|
190
|
+
style_solid: VLineStyle;
|
191
|
+
};
|
192
|
+
location: {
|
193
|
+
abovebar: VLocation;
|
194
|
+
absolute: VLocation;
|
195
|
+
belowbar: VLocation;
|
196
|
+
bottom: VLocation;
|
197
|
+
top: VLocation;
|
198
|
+
};
|
199
|
+
math: {
|
200
|
+
e: number;
|
201
|
+
phi: number;
|
202
|
+
pi: number;
|
203
|
+
rphi: number;
|
204
|
+
};
|
205
|
+
order: {
|
206
|
+
ascending: boolean;
|
207
|
+
descending: boolean;
|
208
|
+
};
|
209
|
+
plot: {
|
210
|
+
style_area: VPlotStyle;
|
211
|
+
style_areabr: VPlotStyle;
|
212
|
+
style_circles: VPlotStyle;
|
213
|
+
style_columns: VPlotStyle;
|
214
|
+
style_cross: VPlotStyle;
|
215
|
+
style_histogram: VPlotStyle;
|
216
|
+
style_line: VPlotStyle;
|
217
|
+
style_linebr: VPlotStyle;
|
218
|
+
style_stepline: VPlotStyle;
|
219
|
+
style_stepline_diamond: VPlotStyle;
|
220
|
+
style_steplinebr: VPlotStyle;
|
221
|
+
};
|
222
|
+
position: {
|
223
|
+
bottom_center: VPosition;
|
224
|
+
bottom_left: VPosition;
|
225
|
+
bottom_right: VPosition;
|
226
|
+
middle_center: VPosition;
|
227
|
+
middle_left: VPosition;
|
228
|
+
middle_right: VPosition;
|
229
|
+
top_center: VPosition;
|
230
|
+
top_left: VPosition;
|
231
|
+
top_right: VPosition;
|
232
|
+
};
|
233
|
+
scale: {
|
234
|
+
left: VScale;
|
235
|
+
none: VScale;
|
236
|
+
right: VScale;
|
237
|
+
};
|
238
|
+
session: {
|
239
|
+
extended: VSession;
|
240
|
+
regular: VSession;
|
241
|
+
};
|
242
|
+
shape: {
|
243
|
+
arrowdown: VShape;
|
244
|
+
arrowup: VShape;
|
245
|
+
circle: VShape;
|
246
|
+
cross: VShape;
|
247
|
+
diamond: VShape;
|
248
|
+
flag: VShape;
|
249
|
+
labeldown: VShape;
|
250
|
+
labelup: VShape;
|
251
|
+
square: VShape;
|
252
|
+
triangledown: VShape;
|
253
|
+
triangleup: VShape;
|
254
|
+
xcross: VShape;
|
255
|
+
};
|
256
|
+
size: {
|
257
|
+
auto: VSize;
|
258
|
+
huge: VSize;
|
259
|
+
large: VSize;
|
260
|
+
normal: VSize;
|
261
|
+
small: VSize;
|
262
|
+
tiny: VSize;
|
263
|
+
};
|
264
|
+
splits: {
|
265
|
+
denominator: string;
|
266
|
+
numerator: string;
|
267
|
+
};
|
268
|
+
strategy: {
|
269
|
+
cash: VStrategy;
|
270
|
+
fixed: VStrategy;
|
271
|
+
percent_of_equity: VStrategy;
|
272
|
+
long: boolean;
|
273
|
+
short: boolean;
|
274
|
+
commission: {
|
275
|
+
cash_per_contract: VCommission;
|
276
|
+
cash_per_order: VCommission;
|
277
|
+
percent: VCommission;
|
278
|
+
};
|
279
|
+
direction: {
|
280
|
+
all: VDirection;
|
281
|
+
long: VDirection;
|
282
|
+
short: VDirection;
|
283
|
+
};
|
284
|
+
oca: {
|
285
|
+
cancel: VOca;
|
286
|
+
none: VOca;
|
287
|
+
reduce: VOca;
|
288
|
+
};
|
289
|
+
};
|
290
|
+
text: {
|
291
|
+
align_bottom: VText;
|
292
|
+
align_center: VText;
|
293
|
+
align_left: VText;
|
294
|
+
align_right: VText;
|
295
|
+
align_top: VText;
|
296
|
+
};
|
297
|
+
xloc: {
|
298
|
+
bar_index: VXloc;
|
299
|
+
bar_time: VXloc;
|
300
|
+
};
|
301
|
+
yloc: {
|
302
|
+
abovebar: VYloc;
|
303
|
+
belowbar: VYloc;
|
304
|
+
price: VYloc;
|
305
|
+
};
|
306
|
+
true: boolean;
|
307
|
+
false: boolean;
|
308
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
import { VInsType } from "../enum";
|
2
|
+
import { TccErrorListener } from ".";
|
3
|
+
interface IArrayArgs {
|
4
|
+
id?: IPseudoArray;
|
5
|
+
id1?: IPseudoArray;
|
6
|
+
id2?: IPseudoArray;
|
7
|
+
size?: number;
|
8
|
+
initial_value?: any;
|
9
|
+
index_from?: number;
|
10
|
+
index_to?: number;
|
11
|
+
val?: number;
|
12
|
+
biased?: boolean;
|
13
|
+
value?: any;
|
14
|
+
index?: number;
|
15
|
+
separator?: string;
|
16
|
+
nth?: number;
|
17
|
+
percentage?: number;
|
18
|
+
order?: boolean;
|
19
|
+
type?: string;
|
20
|
+
}
|
21
|
+
export default class BuildInArray {
|
22
|
+
private _errorListener;
|
23
|
+
constructor(errorListener: TccErrorListener);
|
24
|
+
new_float({ size, initial_value }?: IArrayArgs): IPseudoArray;
|
25
|
+
new_int({ size, initial_value }?: IArrayArgs): IPseudoArray;
|
26
|
+
new_color({ size, initial_value }?: IArrayArgs): IPseudoArray;
|
27
|
+
new_bool({ size, initial_value }?: IArrayArgs): IPseudoArray;
|
28
|
+
new_string({ size, initial_value }?: IArrayArgs): IPseudoArray;
|
29
|
+
new_line({ size, initial_value }?: IArrayArgs): IPseudoArray;
|
30
|
+
new_box({ size, initial_value }?: IArrayArgs): IPseudoArray;
|
31
|
+
new_table({ size, initial_value }?: IArrayArgs): IPseudoArray;
|
32
|
+
new_label({ size, initial_value }?: IArrayArgs): IPseudoArray;
|
33
|
+
copy({ id }: IArrayArgs): IPseudoArray | undefined;
|
34
|
+
slice({ id, index_from, index_to }: IArrayArgs): IPseudoArray | undefined;
|
35
|
+
size({ id }: IArrayArgs): number | undefined;
|
36
|
+
avg({ id }: IArrayArgs, posStr: string): number | undefined;
|
37
|
+
clear({ id }: IArrayArgs): void;
|
38
|
+
concat({ id1, id2 }: IArrayArgs): IPseudoArray | undefined;
|
39
|
+
covariance({ id1, id2 }: IArrayArgs, posStr: string): number | undefined;
|
40
|
+
from(_: any, arrVals: any[]): IPseudoArray;
|
41
|
+
fill({ id, value, index_from, index_to }: IArrayArgs): void;
|
42
|
+
get({ id, index }: IArrayArgs): any;
|
43
|
+
includes({ id, value }: IArrayArgs): boolean | undefined;
|
44
|
+
indexof({ id, value }: IArrayArgs): number | undefined;
|
45
|
+
insert({ id, index, value }: IArrayArgs): void;
|
46
|
+
join({ id, separator }: IArrayArgs, posStr: string): string | undefined;
|
47
|
+
lastindexof({ id, value }: IArrayArgs): number | undefined;
|
48
|
+
max(arg: IArrayArgs, posStr: string): number | undefined;
|
49
|
+
median({ id }: IArrayArgs, posStr: string): number | undefined;
|
50
|
+
min({ id }: IArrayArgs, posStr: string): number | undefined;
|
51
|
+
mode({ id }: IArrayArgs, posStr: string): number | undefined;
|
52
|
+
pop({ id }: IArrayArgs): any;
|
53
|
+
push({ id, value }: IArrayArgs): void;
|
54
|
+
range({ id }: IArrayArgs, posStr: string): number | undefined;
|
55
|
+
remove({ id, index }: IArrayArgs): any;
|
56
|
+
reverse({ id }: IArrayArgs): void;
|
57
|
+
set({ id, index, value }: IArrayArgs): void;
|
58
|
+
shift({ id }: IArrayArgs): any;
|
59
|
+
sort({ id, order }: IArrayArgs, posStr: string): void;
|
60
|
+
standardize({ id }: IArrayArgs, posStr: string): IPseudoArray | undefined;
|
61
|
+
stdev({ id }: IArrayArgs, posStr: string): number | undefined;
|
62
|
+
sum({ id }: IArrayArgs, posStr: string): any;
|
63
|
+
unshift({ id, value }: IArrayArgs): void;
|
64
|
+
variance({ id }: IArrayArgs, posStr: string): number | undefined;
|
65
|
+
private _calculateVariances;
|
66
|
+
private _calculateStandardDeviations;
|
67
|
+
private _standardizeArray;
|
68
|
+
private _mode;
|
69
|
+
private _median;
|
70
|
+
private _minNth;
|
71
|
+
private _maxNth;
|
72
|
+
private _setElements;
|
73
|
+
private _covariance;
|
74
|
+
private _verifySimpleType;
|
75
|
+
}
|
76
|
+
export interface IPseudoArray {
|
77
|
+
isArray: boolean;
|
78
|
+
typeName?: string;
|
79
|
+
type: VInsType;
|
80
|
+
_isNumber: boolean;
|
81
|
+
_value: any[];
|
82
|
+
}
|
83
|
+
export declare function createPseudoArray(size?: number, initialValue?: any, type?: string): IPseudoArray;
|
84
|
+
export {};
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import { IKeyObjectValue } from "../../../type";
|
2
|
+
import { BuiltInVariables } from "../buildInVariables";
|
3
|
+
import { VExtend, VLineStyle, VXloc } from "../enum";
|
4
|
+
import { IDrawComponent } from "../type";
|
5
|
+
import { TccErrorListener } from "./index";
|
6
|
+
export interface IBoxArgs {
|
7
|
+
id?: string;
|
8
|
+
left?: number;
|
9
|
+
top?: number;
|
10
|
+
right?: number;
|
11
|
+
bottom?: number;
|
12
|
+
border_color?: string;
|
13
|
+
border_width?: number;
|
14
|
+
border_style?: VLineStyle;
|
15
|
+
style?: VLineStyle;
|
16
|
+
xloc?: VXloc;
|
17
|
+
bgcolor?: string;
|
18
|
+
extend?: VExtend;
|
19
|
+
color?: string;
|
20
|
+
width?: number;
|
21
|
+
bar_index?: number;
|
22
|
+
}
|
23
|
+
type VBoxArgs = Omit<IBoxArgs, 'id'> & {
|
24
|
+
id: IDrawComponent;
|
25
|
+
};
|
26
|
+
export default class BuildInBox {
|
27
|
+
private _variables;
|
28
|
+
private _errorListener;
|
29
|
+
private _updateIds;
|
30
|
+
private _defaultBox;
|
31
|
+
constructor(variables: BuiltInVariables, errorListener: TccErrorListener);
|
32
|
+
get updateIds(): string[];
|
33
|
+
box({ x }: {
|
34
|
+
x?: IDrawComponent;
|
35
|
+
}): IDrawComponent | undefined;
|
36
|
+
new(args: IBoxArgs, posStr: string): IDrawComponent;
|
37
|
+
private _verfiyArgs;
|
38
|
+
private _paramVerfiy;
|
39
|
+
updateId(box: IDrawComponent): string;
|
40
|
+
copy({ id }: VBoxArgs, posStr: string): IDrawComponent | undefined;
|
41
|
+
delete({ id }: VBoxArgs, posStr: string): void;
|
42
|
+
get_top({ id }: VBoxArgs, posStr: string): any;
|
43
|
+
get_bottom({ id }: VBoxArgs, posStr: string): any;
|
44
|
+
get_left({ id }: VBoxArgs, posStr: string): any;
|
45
|
+
get_right({ id }: VBoxArgs, posStr: string): any;
|
46
|
+
set_top({ id, top }: VBoxArgs, posStr: string): void;
|
47
|
+
set_bottom({ id, bottom }: VBoxArgs, posStr: string): void;
|
48
|
+
set_left({ id, left }: VBoxArgs, posStr: string): void;
|
49
|
+
set_right({ id, right }: VBoxArgs, posStr: string): void;
|
50
|
+
set_extend({ id, extend }: VBoxArgs, posStr: string): void;
|
51
|
+
set_bgcolor({ id, color }: VBoxArgs, posStr: string): void;
|
52
|
+
set_border_color({ id, color }: VBoxArgs, posStr: string): void;
|
53
|
+
set_border_width({ id, width }: VBoxArgs, posStr: string): void;
|
54
|
+
set_border_style({ id, style }: VBoxArgs, posStr: string): void;
|
55
|
+
set_lefttop({ id, left, top }: VBoxArgs, posStr: string): void;
|
56
|
+
set_rightbottom({ id, right, bottom }: VBoxArgs, posStr: string): void;
|
57
|
+
private _getBox;
|
58
|
+
}
|
59
|
+
export declare function createBox(key: string, data: IKeyObjectValue): IDrawComponent;
|
60
|
+
export {};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { IError, VMarkerSeverity } from '../type';
|
2
|
+
export declare class TccErrorListener {
|
3
|
+
private _errors;
|
4
|
+
constructor();
|
5
|
+
clear(): void;
|
6
|
+
get errors(): IError[];
|
7
|
+
setErrors(errors: IError[], key: string): void;
|
8
|
+
addError(message: string, posStr: string, type: VMarkerSeverity, length?: number): void;
|
9
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import BuildInArray, { createPseudoArray } from "./array";
|
2
|
+
import BuildInMath from "./math";
|
3
|
+
import BuildInTa from "./ta";
|
4
|
+
import BuildInInput from "./input";
|
5
|
+
import BuildInColor from "./color";
|
6
|
+
import BuildInTimeframe from "./timeframe";
|
7
|
+
import BuildInStr from "./string";
|
8
|
+
import BuildInLabel, { PartialLabelArgs } from "./label";
|
9
|
+
import BuildInLine, { ILineArgs, ILine } from "./line";
|
10
|
+
import BuildInBox, { IBoxArgs } from "./box";
|
11
|
+
import BuildInTable, { ITableArgs } from "./table";
|
12
|
+
import Strategy, { IOrder, IStrategy } from './strategy';
|
13
|
+
import Request from './request';
|
14
|
+
export { TccErrorListener } from './errorListener';
|
15
|
+
export type { IColorArgs } from './color';
|
16
|
+
export { BuildInArray, BuildInMath, BuildInTa, BuildInInput, BuildInColor, BuildInTimeframe, BuildInStr, createPseudoArray, BuildInLabel, BuildInLine, BuildInBox, BuildInTable, Strategy, Request };
|
17
|
+
export type { PartialLabelArgs, ILineArgs, IBoxArgs, ITableArgs, IOrder, IStrategy, ILine };
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { BuildInTa } from ".";
|
2
|
+
import { BuiltInVariables } from "../buildInVariables";
|
3
|
+
import { VInputType, VPlotDisplay } from "../enum";
|
4
|
+
import { TccErrorListener } from "./errorListener";
|
5
|
+
type TSimpleType = string | number | boolean;
|
6
|
+
interface IInputArgs {
|
7
|
+
id: string;
|
8
|
+
defval: TSimpleType;
|
9
|
+
title?: string;
|
10
|
+
tooltip?: string;
|
11
|
+
inline?: string;
|
12
|
+
type?: VInputType;
|
13
|
+
group?: string;
|
14
|
+
display?: VPlotDisplay[];
|
15
|
+
sourceTypeName?: string;
|
16
|
+
isModify?: boolean;
|
17
|
+
options?: TSimpleType[];
|
18
|
+
confirm?: boolean;
|
19
|
+
minval?: number;
|
20
|
+
maxval?: number;
|
21
|
+
step?: number;
|
22
|
+
inputType?: VInputType;
|
23
|
+
index?: number;
|
24
|
+
modifyDefval?: TSimpleType;
|
25
|
+
}
|
26
|
+
interface ICacheData {
|
27
|
+
[key: string]: IInputArgs;
|
28
|
+
}
|
29
|
+
declare class Input extends BuildInTa {
|
30
|
+
private _inputCacheDataLoc;
|
31
|
+
protected _errorListener: TccErrorListener;
|
32
|
+
private _historyInputs;
|
33
|
+
private _name;
|
34
|
+
private _newCacheData;
|
35
|
+
constructor(variables: BuiltInVariables, id: string);
|
36
|
+
get _inputCacheData(): ICacheData;
|
37
|
+
set _inputCacheData(data: ICacheData);
|
38
|
+
updateInput(vals?: IInputArgs[]): void;
|
39
|
+
input(args: IInputArgs, posStr: string): TSimpleType;
|
40
|
+
private _cacheHandle;
|
41
|
+
private _verifyMaxOrMin;
|
42
|
+
getInputs(): IInputArgs[];
|
43
|
+
}
|
44
|
+
export default Input;
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import { IKeyObjectValue } from "../../../type";
|
2
|
+
import { BuiltInVariables } from "../buildInVariables";
|
3
|
+
import { VLabelStyle, VSize, VText, VXloc, VYloc } from "../enum";
|
4
|
+
import { IDrawComponent } from "../type";
|
5
|
+
import { TccErrorListener } from "./index";
|
6
|
+
interface ILabelArgs {
|
7
|
+
id: string;
|
8
|
+
text: string;
|
9
|
+
x: number;
|
10
|
+
y: number;
|
11
|
+
xloc: VXloc;
|
12
|
+
yloc: VYloc;
|
13
|
+
color: string;
|
14
|
+
size: VSize;
|
15
|
+
style: VLabelStyle;
|
16
|
+
textalign: VText;
|
17
|
+
textcolor: string;
|
18
|
+
tooltip: string;
|
19
|
+
text_font_family: string;
|
20
|
+
force_overlay: boolean;
|
21
|
+
}
|
22
|
+
export type PartialLabelArgs = Partial<ILabelArgs>;
|
23
|
+
type TLabelArgs = Omit<PartialLabelArgs, 'id'> & {
|
24
|
+
id: IDrawComponent;
|
25
|
+
};
|
26
|
+
export default class BuildInLabel {
|
27
|
+
private _variables;
|
28
|
+
private _errorListener;
|
29
|
+
private _updateIds;
|
30
|
+
private _defaultLabel;
|
31
|
+
constructor(variables: BuiltInVariables, errorListener: TccErrorListener);
|
32
|
+
get updateIds(): string[];
|
33
|
+
new(args: PartialLabelArgs, posStr: string): IDrawComponent;
|
34
|
+
private _paramVerfiyHandle;
|
35
|
+
private _verfiyArgs;
|
36
|
+
private _paramVerfiy;
|
37
|
+
updateId(id: IDrawComponent): string;
|
38
|
+
label(args: {
|
39
|
+
x?: IDrawComponent;
|
40
|
+
}): IDrawComponent | undefined;
|
41
|
+
copy({ id }: TLabelArgs, posStr: string): IDrawComponent | undefined;
|
42
|
+
get_x({ id }: TLabelArgs, posStr: string): any;
|
43
|
+
get_y({ id }: TLabelArgs, posStr: string): any;
|
44
|
+
set_x({ id, x }: TLabelArgs, posStr: string): void;
|
45
|
+
set_y({ id, y }: TLabelArgs, posStr: string): void;
|
46
|
+
delete({ id }: TLabelArgs, posStr: string): void;
|
47
|
+
get_text({ id }: TLabelArgs, posStr: string): any;
|
48
|
+
set_xy({ id, x, y }: TLabelArgs, posStr: string): void;
|
49
|
+
set_size({ id, size }: TLabelArgs, posStr: string): void;
|
50
|
+
set_xloc({ id, x, xloc }: TLabelArgs, posStr: string): void;
|
51
|
+
set_yloc({ id, yloc }: TLabelArgs, posStr: string): void;
|
52
|
+
set_style({ id, style }: TLabelArgs, posStr: string): void;
|
53
|
+
set_color({ id, ...args }: TLabelArgs, posStr: string): void;
|
54
|
+
set_tooltip({ id, tooltip }: TLabelArgs, posStr: string): void;
|
55
|
+
set_text({ id, text }: TLabelArgs, posStr: string): void;
|
56
|
+
set_textcolor({ id, ...args }: TLabelArgs, posStr: string): void;
|
57
|
+
set_textalign({ id, textalign }: TLabelArgs, posStr: string): void;
|
58
|
+
private _getLabel;
|
59
|
+
}
|
60
|
+
export declare function createLabel(key: string, data: IKeyObjectValue): IDrawComponent;
|
61
|
+
export {};
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { IKeyObjectValue } from "../../../type";
|
2
|
+
import { BuiltInVariables } from "../buildInVariables";
|
3
|
+
import { VExtend, VLineStyle, VXloc } from "../enum";
|
4
|
+
import { IDrawComponent } from "../type";
|
5
|
+
import { TccErrorListener } from "./index";
|
6
|
+
export interface ILineArgs {
|
7
|
+
id?: string;
|
8
|
+
x?: number;
|
9
|
+
y?: number;
|
10
|
+
x1?: number;
|
11
|
+
y1?: number;
|
12
|
+
x2?: number;
|
13
|
+
y2?: number;
|
14
|
+
xloc?: VXloc;
|
15
|
+
extend?: VExtend;
|
16
|
+
color?: string;
|
17
|
+
style?: VLineStyle;
|
18
|
+
width?: number;
|
19
|
+
bar_index?: number;
|
20
|
+
isVar?: boolean;
|
21
|
+
}
|
22
|
+
type LineArgs = Omit<ILineArgs, 'id'> & {
|
23
|
+
id: ILine;
|
24
|
+
};
|
25
|
+
export default class BuildInLine {
|
26
|
+
private _variables;
|
27
|
+
private _errorListener;
|
28
|
+
private _updateIds;
|
29
|
+
private _defaultLine;
|
30
|
+
constructor(variables: BuiltInVariables, errorListener: TccErrorListener);
|
31
|
+
get updateIds(): string[];
|
32
|
+
new(args: ILineArgs, posStr: string): ILine;
|
33
|
+
private _verfiyArgs;
|
34
|
+
private _paramVerfiy;
|
35
|
+
updateId(id: ILine): string;
|
36
|
+
line(args: {
|
37
|
+
x?: ILine;
|
38
|
+
}): ILine | undefined;
|
39
|
+
copy({ id }: LineArgs, posStr: string): ILine | undefined;
|
40
|
+
delete({ id }: LineArgs, posStr: string): void;
|
41
|
+
get_x1({ id }: LineArgs, posStr: string): any;
|
42
|
+
get_x2({ id }: LineArgs, posStr: string): any;
|
43
|
+
get_y1({ id }: LineArgs, posStr: string): any;
|
44
|
+
get_y2({ id }: LineArgs, posStr: string): any;
|
45
|
+
set_x1({ id, x }: LineArgs, posStr: string): void;
|
46
|
+
set_x2({ id, x }: LineArgs, posStr: string): void;
|
47
|
+
set_y1({ id, y }: LineArgs, posStr: string): void;
|
48
|
+
set_y2({ id, y }: LineArgs, posStr: string): void;
|
49
|
+
set_xy1({ id, x, y }: LineArgs, posStr: string): void;
|
50
|
+
set_xy2({ id, x, y }: LineArgs, posStr: string): void;
|
51
|
+
set_xloc({ id, xloc, x1, x2 }: LineArgs, posStr: string): void;
|
52
|
+
get_price({ id, x }: LineArgs, posStr: string): any;
|
53
|
+
set_color({ id, ...args }: LineArgs, posStr: string): void;
|
54
|
+
set_style({ id, style }: LineArgs, posStr: string): void;
|
55
|
+
set_width({ id, width }: LineArgs, posStr: string): void;
|
56
|
+
set_extend({ id, extend }: LineArgs, posStr: string): void;
|
57
|
+
private _getLine;
|
58
|
+
}
|
59
|
+
export interface ILine extends IDrawComponent {
|
60
|
+
}
|
61
|
+
export declare function createLine(key: string, data: IKeyObjectValue): ILine;
|
62
|
+
export {};
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { IKeyObjectValue } from "../../../type";
|
2
|
+
interface IMathArgs {
|
3
|
+
number?: number;
|
4
|
+
x?: number;
|
5
|
+
angle?: number;
|
6
|
+
base?: number;
|
7
|
+
exponent?: number;
|
8
|
+
min?: number;
|
9
|
+
max?: number;
|
10
|
+
seed?: number;
|
11
|
+
precision?: number;
|
12
|
+
source?: number;
|
13
|
+
length?: number;
|
14
|
+
radians?: number;
|
15
|
+
degrees?: number;
|
16
|
+
}
|
17
|
+
export default class BuildInMath {
|
18
|
+
private _mintick;
|
19
|
+
private _mathCacheDataLoc;
|
20
|
+
private _barIndex;
|
21
|
+
constructor(mintick: number);
|
22
|
+
get _mathCacheData(): IKeyObjectValue;
|
23
|
+
set _mathCacheData(val: IKeyObjectValue);
|
24
|
+
updateMath(barIndex: number): void;
|
25
|
+
abs({ x }: IMathArgs): number;
|
26
|
+
acos({ x }: IMathArgs): number;
|
27
|
+
asin({ x }: IMathArgs): number;
|
28
|
+
atan({ x }: IMathArgs): number;
|
29
|
+
avg(_: IMathArgs, numbers: number[]): number;
|
30
|
+
ceil({ x }: IMathArgs): number;
|
31
|
+
floor({ x }: IMathArgs): number;
|
32
|
+
cos({ x }: IMathArgs): number;
|
33
|
+
sin({ x }: IMathArgs): number;
|
34
|
+
tan({ x }: IMathArgs): number;
|
35
|
+
exp({ x }: IMathArgs): number;
|
36
|
+
log({ x }: IMathArgs): number;
|
37
|
+
log10({ x }: IMathArgs): number;
|
38
|
+
max(_: IMathArgs, numbers: number[]): number | undefined;
|
39
|
+
min(_: IMathArgs, numbers: number[]): number | undefined;
|
40
|
+
pow({ base, exponent }: IMathArgs): number;
|
41
|
+
random({ min, max, seed }: IMathArgs): number;
|
42
|
+
round({ x, number, precision }: IMathArgs): number;
|
43
|
+
round_to_mintick({ x }: IMathArgs): number;
|
44
|
+
sign({ x }: IMathArgs): number | undefined;
|
45
|
+
sqrt({ x }: IMathArgs): number;
|
46
|
+
sum({ source, length }: IMathArgs, posStr: string): number | undefined;
|
47
|
+
todegrees({ radians }: IMathArgs): number;
|
48
|
+
toradians({ degrees }: IMathArgs): number;
|
49
|
+
}
|
50
|
+
export {};
|