@guihz/trading-vue-editor-tes 0.1.16 → 0.1.17
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/{parserTccWorker-hZOaEksy.js → parserTccWorker-CXp94-Z9.js} +44024 -25371
- package/lib/assets/{scriptsRunWorker-DtD7_jXH.js → scriptsRunWorker-CWAx2DV5.js} +23468 -15025
- package/lib/components/editor/v5/parseScript/buildInConstants.d.ts +2 -0
- package/lib/components/editor/v5/parseScript/buildInVarNamespace/strategy.d.ts +0 -3
- package/lib/components/editor/v5/parseScript/parseToJs.d.ts +2 -0
- package/lib/components/editor/v6/config/monarchTokens.d.ts +205 -0
- package/lib/components/editor/v6/constants/contents_zh.d.ts +6 -0
- package/lib/components/editor/v6/constants/index.d.ts +41 -0
- package/lib/components/editor/v6/parseScript/buildInConstants.d.ts +310 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/array.d.ts +109 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/box.d.ts +83 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/chartPoint.d.ts +26 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/color.d.ts +25 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/errorListener.d.ts +9 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/index.d.ts +25 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/input.d.ts +57 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/label.d.ts +66 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/line.d.ts +74 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/linefill.d.ts +36 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/log.d.ts +39 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/map.d.ts +51 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/math.d.ts +49 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/matrix.d.ts +98 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/polyline.d.ts +32 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/runtime.d.ts +10 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/strategy.d.ts +278 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/strategyNew.d.ts +261 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/string.d.ts +55 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/syminfo.d.ts +9 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/ta.d.ts +125 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/table.d.ts +89 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/timeframe.d.ts +22 -0
- package/lib/components/editor/v6/parseScript/buildInVarNamespace/barstate.d.ts +22 -0
- package/lib/components/editor/v6/parseScript/buildInVarNamespace/chart.d.ts +21 -0
- package/lib/components/editor/v6/parseScript/buildInVarNamespace/dividends.d.ts +8 -0
- package/lib/components/editor/v6/parseScript/buildInVarNamespace/earnings.d.ts +9 -0
- package/lib/components/editor/v6/parseScript/buildInVarNamespace/index.d.ts +9 -0
- package/lib/components/editor/v6/parseScript/buildInVarNamespace/session.d.ts +12 -0
- package/lib/components/editor/v6/parseScript/buildInVarNamespace/strategy.d.ts +144 -0
- package/lib/components/editor/v6/parseScript/buildInVarNamespace/syminfo.d.ts +49 -0
- package/lib/components/editor/v6/parseScript/buildInVarNamespace/ta.d.ts +32 -0
- package/lib/components/editor/v6/parseScript/buildInVarNamespace/timeframe.d.ts +16 -0
- package/lib/components/editor/v6/parseScript/constants.d.ts +135 -0
- package/lib/components/editor/v6/parseScript/constantsRun.d.ts +5 -0
- package/lib/components/editor/v6/parseScript/enum.d.ts +302 -0
- package/lib/components/editor/v6/parseScript/parseToJs.d.ts +78 -0
- package/lib/components/editor/v6/parseScript/parseToLibJs.d.ts +71 -0
- package/lib/components/editor/v6/parseScript/strategyNamespace/closedtrades.d.ts +28 -0
- package/lib/components/editor/v6/parseScript/strategyNamespace/index.d.ts +4 -0
- package/lib/components/editor/v6/parseScript/strategyNamespace/opentrades.d.ts +25 -0
- package/lib/components/editor/v6/parseScript/strategyNamespace/risk.d.ts +22 -0
- package/lib/components/editor/v6/parseScript/type.d.ts +40 -0
- package/lib/components/editor/v6/parseScript/userTypeClass.d.ts +12 -0
- package/lib/components/editor/v6/parseScript/utils.d.ts +25 -0
- package/lib/components/editor/v6/parseScript/visitorParser.d.ts +382 -0
- package/lib/components/editor/v6/parseScript/visitorUtils.d.ts +31 -0
- package/lib/components/editor/v6/parserTccWorker.d.ts +40 -0
- package/lib/components/editor/v6/scriptsRunWorker.d.ts +11 -0
- package/lib/components/editor/v6/tccParser/LexerBase.d.ts +19 -0
- package/lib/components/editor/v6/tccParser/tccScriptParserVisitor.d.ts +507 -0
- package/lib/index-C8vqcsNB.js +61958 -0
- package/lib/{monarchTokens-D-73EVQs.js → monarchTokens-BNkQaBBZ.js} +22 -22
- package/lib/monarchTokens-_UFEzBJ_.js +563 -0
- package/lib/packages/index.d.ts +1 -1
- package/lib/trading-vue-editor.es.packages.js +856 -843
- package/lib/trading-vue-editor.umd.packages.mjs +110 -45
- package/package.json +2 -2
- package/lib/{index-DLIhM_y0.js → index-Clupi1hX.js} +24 -24
@@ -1,7 +1,6 @@
|
|
1
1
|
import { IKeyObjectValue } from "../../../type";
|
2
2
|
import { IOrder, IStrategy } from "../buildInFuncNamespace";
|
3
3
|
import { BuiltInVariables } from "../buildInVariables";
|
4
|
-
import { VDirection } from "../enum";
|
5
4
|
export declare class Strategy {
|
6
5
|
private _orders;
|
7
6
|
private _historyOrders;
|
@@ -46,8 +45,6 @@ export declare class Strategy {
|
|
46
45
|
private _calcMaxContracts;
|
47
46
|
updateHistoryOrders(orders: IOrder[]): void;
|
48
47
|
updateStrategyOptions(options: IStrategy): void;
|
49
|
-
get long(): VDirection;
|
50
|
-
get short(): VDirection;
|
51
48
|
get account_currency(): string;
|
52
49
|
get closedtrades(): number;
|
53
50
|
get opentrades(): {
|
@@ -20,7 +20,9 @@ export default class ParseToJs {
|
|
20
20
|
private _dependsObj;
|
21
21
|
private _enums;
|
22
22
|
private _preRunMembers;
|
23
|
+
private _isInConditionalStmt;
|
23
24
|
private _preRunMembersFuncs;
|
25
|
+
private _preRunMemberFuncsCount;
|
24
26
|
private __count;
|
25
27
|
preParseCode: string;
|
26
28
|
private _hasLeftVisibleBarTime;
|
@@ -0,0 +1,205 @@
|
|
1
|
+
import { languages, editor } from 'monaco-editor';
|
2
|
+
export declare const LANGAGE_NAME = "tccScript";
|
3
|
+
export declare const LANGUAGE_MONARCH_TOKENS: languages.IMonarchLanguage;
|
4
|
+
export declare const CONFIGURATION: languages.LanguageConfiguration;
|
5
|
+
export declare const COLORS: {
|
6
|
+
"color-white": string;
|
7
|
+
"color-black": string;
|
8
|
+
"color-transparent": string;
|
9
|
+
"color-cold-gray-50": string;
|
10
|
+
"color-cold-gray-100": string;
|
11
|
+
"color-cold-gray-150": string;
|
12
|
+
"color-cold-gray-200": string;
|
13
|
+
"color-cold-gray-250": string;
|
14
|
+
"color-cold-gray-300": string;
|
15
|
+
"color-cold-gray-350": string;
|
16
|
+
"color-cold-gray-400": string;
|
17
|
+
"color-cold-gray-450": string;
|
18
|
+
"color-cold-gray-500": string;
|
19
|
+
"color-cold-gray-550": string;
|
20
|
+
"color-cold-gray-600": string;
|
21
|
+
"color-cold-gray-650": string;
|
22
|
+
"color-cold-gray-700": string;
|
23
|
+
"color-cold-gray-750": string;
|
24
|
+
"color-cold-gray-800": string;
|
25
|
+
"color-cold-gray-850": string;
|
26
|
+
"color-cold-gray-900": string;
|
27
|
+
"color-cold-gray-950": string;
|
28
|
+
"color-ripe-red-50": string;
|
29
|
+
"color-ripe-red-100": string;
|
30
|
+
"color-ripe-red-200": string;
|
31
|
+
"color-ripe-red-300": string;
|
32
|
+
"color-ripe-red-400": string;
|
33
|
+
"color-ripe-red-500": string;
|
34
|
+
"color-ripe-red-600": string;
|
35
|
+
"color-ripe-red-700": string;
|
36
|
+
"color-ripe-red-800": string;
|
37
|
+
"color-ripe-red-900": string;
|
38
|
+
"color-ripe-red-a100": string;
|
39
|
+
"color-ripe-red-a200": string;
|
40
|
+
"color-ripe-red-a400": string;
|
41
|
+
"color-ripe-red-a600": string;
|
42
|
+
"color-ripe-red-a700": string;
|
43
|
+
"color-ripe-red-a800": string;
|
44
|
+
"color-ripe-red-a900": string;
|
45
|
+
"color-tan-orange-50": string;
|
46
|
+
"color-tan-orange-100": string;
|
47
|
+
"color-tan-orange-200": string;
|
48
|
+
"color-tan-orange-300": string;
|
49
|
+
"color-tan-orange-400": string;
|
50
|
+
"color-tan-orange-500": string;
|
51
|
+
"color-tan-orange-600": string;
|
52
|
+
"color-tan-orange-700": string;
|
53
|
+
"color-tan-orange-800": string;
|
54
|
+
"color-tan-orange-900": string;
|
55
|
+
"color-tan-orange-a200": string;
|
56
|
+
"color-tan-orange-a400": string;
|
57
|
+
"color-tan-orange-a600": string;
|
58
|
+
"color-tan-orange-a700": string;
|
59
|
+
"color-tan-orange-a800": string;
|
60
|
+
"color-tan-orange-a900": string;
|
61
|
+
"color-iguana-green-100": string;
|
62
|
+
"color-iguana-green-200": string;
|
63
|
+
"color-iguana-green-300": string;
|
64
|
+
"color-iguana-green-400": string;
|
65
|
+
"color-iguana-green-500": string;
|
66
|
+
"color-iguana-green-600": string;
|
67
|
+
"color-iguana-green-700": string;
|
68
|
+
"color-iguana-green-800": string;
|
69
|
+
"color-iguana-green-900": string;
|
70
|
+
"color-iguana-green-a700": string;
|
71
|
+
"color-banana-yellow-100": string;
|
72
|
+
"color-banana-yellow-200": string;
|
73
|
+
"color-banana-yellow-300": string;
|
74
|
+
"color-banana-yellow-400": string;
|
75
|
+
"color-banana-yellow-500": string;
|
76
|
+
"color-banana-yellow-600": string;
|
77
|
+
"color-banana-yellow-700": string;
|
78
|
+
"color-banana-yellow-800": string;
|
79
|
+
"color-banana-yellow-900": string;
|
80
|
+
"color-banana-yellow-a400": string;
|
81
|
+
"color-banana-yellow-a700": string;
|
82
|
+
"color-tv-blue-50": string;
|
83
|
+
"color-tv-blue-100": string;
|
84
|
+
"color-tv-blue-200": string;
|
85
|
+
"color-tv-blue-300": string;
|
86
|
+
"color-tv-blue-400": string;
|
87
|
+
"color-tv-blue-500": string;
|
88
|
+
"color-tv-blue-600": string;
|
89
|
+
"color-tv-blue-700": string;
|
90
|
+
"color-tv-blue-800": string;
|
91
|
+
"color-tv-blue-900": string;
|
92
|
+
"color-tv-blue-a100": string;
|
93
|
+
"color-tv-blue-a200": string;
|
94
|
+
"color-tv-blue-a400": string;
|
95
|
+
"color-tv-blue-a600": string;
|
96
|
+
"color-tv-blue-a700": string;
|
97
|
+
"color-tv-blue-a800": string;
|
98
|
+
"color-tv-blue-a900": string;
|
99
|
+
"color-deep-blue-50": string;
|
100
|
+
"color-deep-blue-100": string;
|
101
|
+
"color-deep-blue-200": string;
|
102
|
+
"color-deep-blue-300": string;
|
103
|
+
"color-deep-blue-400": string;
|
104
|
+
"color-deep-blue-500": string;
|
105
|
+
"color-deep-blue-700": string;
|
106
|
+
"color-deep-blue-800": string;
|
107
|
+
"color-deep-blue-900": string;
|
108
|
+
"color-deep-blue-a100": string;
|
109
|
+
"color-deep-blue-a200": string;
|
110
|
+
"color-deep-blue-a400": string;
|
111
|
+
"color-deep-blue-a700": string;
|
112
|
+
"color-minty-green-50": string;
|
113
|
+
"color-minty-green-100": string;
|
114
|
+
"color-minty-green-200": string;
|
115
|
+
"color-minty-green-300": string;
|
116
|
+
"color-minty-green-400": string;
|
117
|
+
"color-minty-green-500": string;
|
118
|
+
"color-minty-green-600": string;
|
119
|
+
"color-minty-green-700": string;
|
120
|
+
"color-minty-green-800": string;
|
121
|
+
"color-minty-green-900": string;
|
122
|
+
"color-minty-green-a400": string;
|
123
|
+
"color-minty-green-a600": string;
|
124
|
+
"color-minty-green-a700": string;
|
125
|
+
"color-minty-green-a800": string;
|
126
|
+
"color-minty-green-a900": string;
|
127
|
+
"color-grapes-purple-50": string;
|
128
|
+
"color-grapes-purple-100": string;
|
129
|
+
"color-grapes-purple-200": string;
|
130
|
+
"color-grapes-purple-300": string;
|
131
|
+
"color-grapes-purple-400": string;
|
132
|
+
"color-grapes-purple-500": string;
|
133
|
+
"color-grapes-purple-600": string;
|
134
|
+
"color-grapes-purple-700": string;
|
135
|
+
"color-grapes-purple-800": string;
|
136
|
+
"color-grapes-purple-900": string;
|
137
|
+
"color-grapes-purple-a100": string;
|
138
|
+
"color-grapes-purple-a200": string;
|
139
|
+
"color-grapes-purple-a400": string;
|
140
|
+
"color-grapes-purple-a700": string;
|
141
|
+
"color-berry-pink-100": string;
|
142
|
+
"color-berry-pink-200": string;
|
143
|
+
"color-berry-pink-300": string;
|
144
|
+
"color-berry-pink-400": string;
|
145
|
+
"color-berry-pink-500": string;
|
146
|
+
"color-berry-pink-600": string;
|
147
|
+
"color-berry-pink-700": string;
|
148
|
+
"color-berry-pink-800": string;
|
149
|
+
"color-berry-pink-900": string;
|
150
|
+
"color-berry-pink-a100": string;
|
151
|
+
"color-berry-pink-a200": string;
|
152
|
+
"color-berry-pink-a400": string;
|
153
|
+
"color-sky-blue-100": string;
|
154
|
+
"color-sky-blue-200": string;
|
155
|
+
"color-sky-blue-300": string;
|
156
|
+
"color-sky-blue-400": string;
|
157
|
+
"color-sky-blue-500": string;
|
158
|
+
"color-sky-blue-600": string;
|
159
|
+
"color-sky-blue-700": string;
|
160
|
+
"color-sky-blue-800": string;
|
161
|
+
"color-sky-blue-900": string;
|
162
|
+
"color-sky-blue-a400": string;
|
163
|
+
"color-sky-blue-a700": string;
|
164
|
+
"color-deep-blue-600": string;
|
165
|
+
"color-forest-green-50": string;
|
166
|
+
"color-forest-green-100": string;
|
167
|
+
"color-forest-green-200": string;
|
168
|
+
"color-forest-green-300": string;
|
169
|
+
"color-forest-green-400": string;
|
170
|
+
"color-forest-green-500": string;
|
171
|
+
"color-forest-green-600": string;
|
172
|
+
"color-forest-green-700": string;
|
173
|
+
"color-forest-green-800": string;
|
174
|
+
"color-forest-green-900": string;
|
175
|
+
"color-facebook": string;
|
176
|
+
"color-deep-facebook": string;
|
177
|
+
"color-twitter": string;
|
178
|
+
"color-deep-twitter": string;
|
179
|
+
"color-youtube": string;
|
180
|
+
"color-linkedin": string;
|
181
|
+
"color-seeking-alpha-brand": string;
|
182
|
+
};
|
183
|
+
export declare const VS: editor.IStandaloneThemeData;
|
184
|
+
export declare const VS_DARK: editor.IStandaloneThemeData;
|
185
|
+
export declare const QQSTRING_REG: RegExp;
|
186
|
+
export declare const QSTRING_REG: RegExp;
|
187
|
+
export declare const DEFAULT_COLORS: {
|
188
|
+
"color.aqua": string;
|
189
|
+
"color.black": string;
|
190
|
+
"color.blue": string;
|
191
|
+
"color.fuchsia": string;
|
192
|
+
"color.gray": string;
|
193
|
+
"color.green": string;
|
194
|
+
"color.lime": string;
|
195
|
+
"color.maroon": string;
|
196
|
+
"color.navy": string;
|
197
|
+
"color.olive": string;
|
198
|
+
"color.orange": string;
|
199
|
+
"color.purple": string;
|
200
|
+
"color.red": string;
|
201
|
+
"color.silver": string;
|
202
|
+
"color.teal": string;
|
203
|
+
"color.white": string;
|
204
|
+
"color.yellow": string;
|
205
|
+
};
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { IDocValue, IKeyValueStr, IKeys } from '../../type';
|
2
|
+
interface IKeyMaps {
|
3
|
+
[key: string]: Map<string, IDocValue[]>;
|
4
|
+
}
|
5
|
+
export declare const SNIPPET_COMPLETIONS: {
|
6
|
+
label: string;
|
7
|
+
insertText: string;
|
8
|
+
kind: string;
|
9
|
+
}[];
|
10
|
+
export declare const NOT_SHOW_KEYWORDS: string[];
|
11
|
+
export declare const COMPLETE_KEYS: string[];
|
12
|
+
export declare const HOVER_KEYS: string[];
|
13
|
+
export declare const BUILD_IN_VALUE: IKeyValueStr;
|
14
|
+
export declare const ALL_KINDS: {
|
15
|
+
argument: string;
|
16
|
+
keyword: string;
|
17
|
+
field: string;
|
18
|
+
userFunction: string;
|
19
|
+
builtInFunction: string;
|
20
|
+
library: string;
|
21
|
+
userVariable: string;
|
22
|
+
builtInVariable: string;
|
23
|
+
namespace: string;
|
24
|
+
operator: string;
|
25
|
+
constant: string;
|
26
|
+
annotation: string;
|
27
|
+
userMethod: string;
|
28
|
+
builtinMethod: string;
|
29
|
+
userType: string;
|
30
|
+
builtinType: string;
|
31
|
+
};
|
32
|
+
export declare const DEFAULT_DETIALS: IKeyValueStr;
|
33
|
+
export declare const KEY_LIST: IKeys, KEY_MAP_LIST: IKeyMaps;
|
34
|
+
export declare const MANUAL_KEYS: IKeys;
|
35
|
+
export declare const CONTENT_GROUPS: {
|
36
|
+
title: string;
|
37
|
+
key: string;
|
38
|
+
prefix: string;
|
39
|
+
index: number;
|
40
|
+
}[];
|
41
|
+
export {};
|
@@ -0,0 +1,310 @@
|
|
1
|
+
import { VPlotDisplay, VExtend, VFormatType, VHlineStyle, VLabelStyle, VLineStyle, VLocation, VSortOrder, VPlotStyle, VPosition, VAdjustment, VAlert, VBarmergeGaps, VScale, VSession, VShape, VSize, VStrategy, VCommission, VDirection, VOca, VText, VXloc, VYloc, VEarnings, VFont, VTextFormat } 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
|
+
data_window: VPlotDisplay[];
|
48
|
+
none: never[];
|
49
|
+
pane: VPlotDisplay[];
|
50
|
+
price_scale: VPlotDisplay[];
|
51
|
+
status_line: VPlotDisplay[];
|
52
|
+
};
|
53
|
+
export declare class BuildInConstants {
|
54
|
+
adjustment: {
|
55
|
+
dividends: VAdjustment;
|
56
|
+
none: VAdjustment;
|
57
|
+
splits: VAdjustment;
|
58
|
+
};
|
59
|
+
alert: {
|
60
|
+
freq_all: VAlert;
|
61
|
+
freq_once_per_bar: VAlert;
|
62
|
+
freq_once_per_bar_close: VAlert;
|
63
|
+
};
|
64
|
+
barmerge: {
|
65
|
+
gaps_off: VBarmergeGaps;
|
66
|
+
gaps_on: VBarmergeGaps;
|
67
|
+
lookahead_off: VBarmergeGaps;
|
68
|
+
lookahead_on: VBarmergeGaps;
|
69
|
+
};
|
70
|
+
color: {
|
71
|
+
aqua: string;
|
72
|
+
black: string;
|
73
|
+
blue: string;
|
74
|
+
fuchsia: string;
|
75
|
+
gray: string;
|
76
|
+
green: string;
|
77
|
+
lime: string;
|
78
|
+
maroon: string;
|
79
|
+
navy: string;
|
80
|
+
olive: string;
|
81
|
+
orange: string;
|
82
|
+
purple: string;
|
83
|
+
red: string;
|
84
|
+
silver: string;
|
85
|
+
teal: string;
|
86
|
+
white: string;
|
87
|
+
yellow: string;
|
88
|
+
};
|
89
|
+
currency: {
|
90
|
+
AUD: string;
|
91
|
+
BTC: string;
|
92
|
+
CAD: string;
|
93
|
+
CHF: string;
|
94
|
+
ETH: string;
|
95
|
+
EUR: string;
|
96
|
+
GBP: string;
|
97
|
+
HKD: string;
|
98
|
+
INR: string;
|
99
|
+
JPY: string;
|
100
|
+
KRW: string;
|
101
|
+
MYR: string;
|
102
|
+
NOK: string;
|
103
|
+
NONE: string;
|
104
|
+
NZD: string;
|
105
|
+
RUB: string;
|
106
|
+
SEK: string;
|
107
|
+
SGD: string;
|
108
|
+
TRY: string;
|
109
|
+
USD: string;
|
110
|
+
USDT: string;
|
111
|
+
ZAR: string;
|
112
|
+
};
|
113
|
+
dayofweek: {
|
114
|
+
friday: number;
|
115
|
+
monday: number;
|
116
|
+
saturday: number;
|
117
|
+
sunday: number;
|
118
|
+
thursday: number;
|
119
|
+
tuesday: number;
|
120
|
+
wednesday: number;
|
121
|
+
};
|
122
|
+
earnings: {
|
123
|
+
actual: VEarnings;
|
124
|
+
estimate: VEarnings;
|
125
|
+
standardized: VEarnings;
|
126
|
+
};
|
127
|
+
display: {
|
128
|
+
all: VPlotDisplay[];
|
129
|
+
data_window: VPlotDisplay[];
|
130
|
+
none: never[];
|
131
|
+
pane: VPlotDisplay[];
|
132
|
+
price_scale: VPlotDisplay[];
|
133
|
+
status_line: VPlotDisplay[];
|
134
|
+
};
|
135
|
+
extend: {
|
136
|
+
both: VExtend;
|
137
|
+
left: VExtend;
|
138
|
+
none: VExtend;
|
139
|
+
right: VExtend;
|
140
|
+
};
|
141
|
+
font: {
|
142
|
+
family_default: VFont;
|
143
|
+
family_monospace: VFont;
|
144
|
+
};
|
145
|
+
format: {
|
146
|
+
inherit: VFormatType;
|
147
|
+
mintick: VFormatType;
|
148
|
+
percent: VFormatType;
|
149
|
+
price: VFormatType;
|
150
|
+
volume: VFormatType;
|
151
|
+
};
|
152
|
+
hline: {
|
153
|
+
style_solid: VHlineStyle;
|
154
|
+
style_dashed: VHlineStyle;
|
155
|
+
style_dotted: VHlineStyle;
|
156
|
+
};
|
157
|
+
label: {
|
158
|
+
style_arrowdown: VLabelStyle;
|
159
|
+
style_arrowup: VLabelStyle;
|
160
|
+
style_circle: VLabelStyle;
|
161
|
+
style_cross: VLabelStyle;
|
162
|
+
style_diamond: VLabelStyle;
|
163
|
+
style_flag: VLabelStyle;
|
164
|
+
style_label_center: VLabelStyle;
|
165
|
+
style_label_down: VLabelStyle;
|
166
|
+
style_label_left: VLabelStyle;
|
167
|
+
style_label_lower_left: VLabelStyle;
|
168
|
+
style_label_lower_right: VLabelStyle;
|
169
|
+
style_label_right: VLabelStyle;
|
170
|
+
style_label_up: VLabelStyle;
|
171
|
+
style_label_upper_left: VLabelStyle;
|
172
|
+
style_label_upper_right: VLabelStyle;
|
173
|
+
style_none: VLabelStyle;
|
174
|
+
style_square: VLabelStyle;
|
175
|
+
style_text_outline: VLabelStyle;
|
176
|
+
style_triangledown: VLabelStyle;
|
177
|
+
style_triangleup: VLabelStyle;
|
178
|
+
style_xcross: VLabelStyle;
|
179
|
+
};
|
180
|
+
line: {
|
181
|
+
style_arrow_both: VLineStyle;
|
182
|
+
style_arrow_left: VLineStyle;
|
183
|
+
style_arrow_right: VLineStyle;
|
184
|
+
style_dashed: VLineStyle;
|
185
|
+
style_dotted: VLineStyle;
|
186
|
+
style_solid: VLineStyle;
|
187
|
+
};
|
188
|
+
location: {
|
189
|
+
abovebar: VLocation;
|
190
|
+
absolute: VLocation;
|
191
|
+
belowbar: VLocation;
|
192
|
+
bottom: VLocation;
|
193
|
+
top: VLocation;
|
194
|
+
};
|
195
|
+
math: {
|
196
|
+
e: number;
|
197
|
+
phi: number;
|
198
|
+
pi: number;
|
199
|
+
rphi: number;
|
200
|
+
};
|
201
|
+
order: {
|
202
|
+
ascending: VSortOrder;
|
203
|
+
descending: VSortOrder;
|
204
|
+
};
|
205
|
+
plot: {
|
206
|
+
style_area: VPlotStyle;
|
207
|
+
style_areabr: VPlotStyle;
|
208
|
+
style_circles: VPlotStyle;
|
209
|
+
style_columns: VPlotStyle;
|
210
|
+
style_cross: VPlotStyle;
|
211
|
+
style_histogram: VPlotStyle;
|
212
|
+
style_line: VPlotStyle;
|
213
|
+
style_linebr: VPlotStyle;
|
214
|
+
style_stepline: VPlotStyle;
|
215
|
+
style_stepline_diamond: VPlotStyle;
|
216
|
+
style_steplinebr: VPlotStyle;
|
217
|
+
};
|
218
|
+
position: {
|
219
|
+
bottom_center: VPosition;
|
220
|
+
bottom_left: VPosition;
|
221
|
+
bottom_right: VPosition;
|
222
|
+
middle_center: VPosition;
|
223
|
+
middle_left: VPosition;
|
224
|
+
middle_right: VPosition;
|
225
|
+
top_center: VPosition;
|
226
|
+
top_left: VPosition;
|
227
|
+
top_right: VPosition;
|
228
|
+
};
|
229
|
+
scale: {
|
230
|
+
left: VScale;
|
231
|
+
none: VScale;
|
232
|
+
right: VScale;
|
233
|
+
};
|
234
|
+
session: {
|
235
|
+
extended: VSession;
|
236
|
+
regular: VSession;
|
237
|
+
};
|
238
|
+
shape: {
|
239
|
+
arrowdown: VShape;
|
240
|
+
arrowup: VShape;
|
241
|
+
circle: VShape;
|
242
|
+
cross: VShape;
|
243
|
+
diamond: VShape;
|
244
|
+
flag: VShape;
|
245
|
+
labeldown: VShape;
|
246
|
+
labelup: VShape;
|
247
|
+
square: VShape;
|
248
|
+
triangledown: VShape;
|
249
|
+
triangleup: VShape;
|
250
|
+
xcross: VShape;
|
251
|
+
};
|
252
|
+
size: {
|
253
|
+
auto: VSize;
|
254
|
+
huge: VSize;
|
255
|
+
large: VSize;
|
256
|
+
normal: VSize;
|
257
|
+
small: VSize;
|
258
|
+
tiny: VSize;
|
259
|
+
};
|
260
|
+
splits: {
|
261
|
+
denominator: string;
|
262
|
+
numerator: string;
|
263
|
+
};
|
264
|
+
strategy: {
|
265
|
+
cash: VStrategy;
|
266
|
+
fixed: VStrategy;
|
267
|
+
percent_of_equity: VStrategy;
|
268
|
+
long: VDirection;
|
269
|
+
short: VDirection;
|
270
|
+
commission: {
|
271
|
+
cash_per_contract: VCommission;
|
272
|
+
cash_per_order: VCommission;
|
273
|
+
percent: VCommission;
|
274
|
+
};
|
275
|
+
direction: {
|
276
|
+
all: VDirection;
|
277
|
+
long: VDirection;
|
278
|
+
short: VDirection;
|
279
|
+
};
|
280
|
+
oca: {
|
281
|
+
cancel: VOca;
|
282
|
+
none: VOca;
|
283
|
+
reduce: VOca;
|
284
|
+
};
|
285
|
+
};
|
286
|
+
text: {
|
287
|
+
align_bottom: VText;
|
288
|
+
align_center: VText;
|
289
|
+
align_left: VText;
|
290
|
+
align_right: VText;
|
291
|
+
align_top: VText;
|
292
|
+
wrap_auto: VText;
|
293
|
+
wrap_none: VText;
|
294
|
+
format_bold: VTextFormat;
|
295
|
+
format_italic: VTextFormat;
|
296
|
+
format_none: VTextFormat;
|
297
|
+
};
|
298
|
+
xloc: {
|
299
|
+
bar_index: VXloc;
|
300
|
+
bar_time: VXloc;
|
301
|
+
};
|
302
|
+
yloc: {
|
303
|
+
abovebar: VYloc;
|
304
|
+
belowbar: VYloc;
|
305
|
+
price: VYloc;
|
306
|
+
};
|
307
|
+
true: boolean;
|
308
|
+
false: boolean;
|
309
|
+
updateData(): void;
|
310
|
+
}
|