@guihz/trading-vue-editor-tes 0.0.196 → 0.0.198
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-BRdbggcL.js → parserTccWorker-Bc6MWAUf.js} +214 -158
- package/lib/assets/{scriptsRunWorker-CiG5h1B4.js → scriptsRunWorker-BkfXKhvL.js} +12 -12
- package/lib/components/editor/parseScript/buildInFuncNamespace/strategy.d.ts +3 -0
- package/lib/components/editor/parseScript/buildInVarNamespace/strategy.d.ts +1 -0
- package/lib/components/editor/parseScript/parseToJs.d.ts +1 -0
- package/lib/components/editor/parseScript/parseToLibJs.d.ts +18 -0
- package/lib/trading-vue-editor.js +2422 -2413
- package/lib/trading-vue-editor.umd.cjs +36 -36
- package/package.json +1 -1
@@ -80,6 +80,7 @@ export interface IOrder extends IOrderArgs {
|
|
80
80
|
max_profit?: number;
|
81
81
|
trading_loss?: number;
|
82
82
|
place_order_type?: PlaceOrderType;
|
83
|
+
position_close_type?: PlaceOrderType;
|
83
84
|
isDeal?: boolean;
|
84
85
|
hasExit?: boolean;
|
85
86
|
active_price?: number;
|
@@ -133,6 +134,7 @@ export default class Strategy {
|
|
133
134
|
private _riskNamespace;
|
134
135
|
private _updateOptions;
|
135
136
|
private _id;
|
137
|
+
private _maxDrawdownVerifyIndex;
|
136
138
|
constructor(variables: BuiltInVariables, options: IKeyObjectValue, mintick: number, errorListener: TccErrorListener, id: string);
|
137
139
|
get orders(): IOrder[];
|
138
140
|
get historyOrders(): IOrder[];
|
@@ -191,6 +193,7 @@ export default class Strategy {
|
|
191
193
|
private _entryOrderHandle;
|
192
194
|
private _orderOrderHandle;
|
193
195
|
private _closeOrderHandle;
|
196
|
+
private _processCloseOrders;
|
194
197
|
private _exitOrderHandle;
|
195
198
|
private _exit;
|
196
199
|
private _ordersToExit;
|
@@ -22,6 +22,7 @@ export default class ParseToJs {
|
|
22
22
|
private _preRunMembersFuncs;
|
23
23
|
private _preRunMemberFuncsCount;
|
24
24
|
private __count;
|
25
|
+
preParseCode: string;
|
25
26
|
constructor(prefix: string);
|
26
27
|
preParser(values: IKeyObjectValue[]): string | undefined;
|
27
28
|
parser(values: IKeyObjectValue[]): string | undefined;
|
@@ -6,18 +6,31 @@ export default class ParseToLibJs {
|
|
6
6
|
private _prefixNameConst;
|
7
7
|
private _userTypes;
|
8
8
|
private _isInFunc;
|
9
|
+
private _currentFuncName?;
|
9
10
|
private _varlist;
|
10
11
|
private _memberIndexList;
|
11
12
|
private _blockCount;
|
12
13
|
private _libTitle;
|
13
14
|
private _exportEles;
|
14
15
|
private _inputCount;
|
16
|
+
private _count;
|
17
|
+
private _isSwitch;
|
18
|
+
private _isInLoop;
|
19
|
+
private _codesCol;
|
20
|
+
private _dependsObj;
|
21
|
+
private _enums;
|
22
|
+
private _preRunMembers;
|
23
|
+
private _isInConditionalStmt;
|
24
|
+
private _preRunMembersFuncs;
|
25
|
+
private _preRunMemberFuncsCount;
|
26
|
+
private __count;
|
15
27
|
constructor(prefix: string, title: string);
|
16
28
|
parser(values: IKeyObjectValue[]): string | undefined;
|
17
29
|
private _parserStmt;
|
18
30
|
private _parserEnumStatement;
|
19
31
|
private _parserTypeStatement;
|
20
32
|
private _parserVarBlockStmt;
|
33
|
+
private _getDepends;
|
21
34
|
private _parserForToStatement;
|
22
35
|
private _parserForInStatement;
|
23
36
|
private _parserAgainAssign;
|
@@ -40,13 +53,18 @@ export default class ParseToLibJs {
|
|
40
53
|
private _parserSingleExpression;
|
41
54
|
private _parserAdditiveExpression;
|
42
55
|
private _parserMemberIndexExpression;
|
56
|
+
private _getOtherVarMemberIndexs;
|
43
57
|
private _getUserVarMemberIndexs;
|
44
58
|
private _parseLiteral;
|
45
59
|
private _colorToRgba;
|
46
60
|
private _parserName;
|
61
|
+
private _setDepend;
|
47
62
|
private _parserMethodExpression;
|
48
63
|
private _parserMethodElement;
|
49
64
|
private _parserArguments;
|
65
|
+
private _requestParamsHandle;
|
66
|
+
private _getExpressionContext;
|
67
|
+
private _getDependsCode;
|
50
68
|
private _parserBrackethesized;
|
51
69
|
private _functionalProcess;
|
52
70
|
}
|