@guihz/trading-vue-editor-tes 0.0.191 → 0.0.192
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.
@@ -126,7 +126,9 @@ export default class Strategy {
|
|
126
126
|
private _opentrades;
|
127
127
|
private _closedtrades;
|
128
128
|
private _riskNamespace;
|
129
|
-
|
129
|
+
private _updateOptions;
|
130
|
+
private _id;
|
131
|
+
constructor(variables: BuiltInVariables, options: IKeyObjectValue, mintick: number, errorListener: TccErrorListener, id: string);
|
130
132
|
get orders(): IOrder[];
|
131
133
|
get historyOrders(): IOrder[];
|
132
134
|
get _freezeCapital(): number;
|
@@ -134,6 +136,7 @@ export default class Strategy {
|
|
134
136
|
get closedtrades(): Closedtrdes;
|
135
137
|
get risk(): Risk;
|
136
138
|
updateOptions(options?: IStrategy): void;
|
139
|
+
update(): void;
|
137
140
|
updateRisk(risk: IRisk): void;
|
138
141
|
endExecution(): void;
|
139
142
|
private _maxIntradayLoss;
|
@@ -141,7 +144,7 @@ export default class Strategy {
|
|
141
144
|
private _maxConsLossDaysVerify;
|
142
145
|
private _maxDrawdownVerify;
|
143
146
|
private _riskTouchOff;
|
144
|
-
strategy(args:
|
147
|
+
strategy(args: IKeyObjectValue, posStr: string): void;
|
145
148
|
order(args: IOrderArgs, posStr: string): void;
|
146
149
|
entry(args: IOrderArgs, posStr: string): void;
|
147
150
|
close(args: IOrder): void;
|