@guihz/trading-vue-editor-tes 0.0.190 → 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,15 +126,17 @@ export default class Strategy {
126
126
  private _opentrades;
127
127
  private _closedtrades;
128
128
  private _riskNamespace;
129
- constructor(variables: BuiltInVariables, options: IKeyObjectValue, mintick: number, errorListener: TccErrorListener);
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
- get _orderProfit(): number;
133
134
  get _freezeCapital(): number;
134
135
  get opentrades(): Opentrades;
135
136
  get closedtrades(): Closedtrdes;
136
137
  get risk(): Risk;
137
138
  updateOptions(options?: IStrategy): void;
139
+ update(): void;
138
140
  updateRisk(risk: IRisk): void;
139
141
  endExecution(): void;
140
142
  private _maxIntradayLoss;
@@ -142,7 +144,7 @@ export default class Strategy {
142
144
  private _maxConsLossDaysVerify;
143
145
  private _maxDrawdownVerify;
144
146
  private _riskTouchOff;
145
- strategy(args: IStrategy, posStr: string): void;
147
+ strategy(args: IKeyObjectValue, posStr: string): void;
146
148
  order(args: IOrderArgs, posStr: string): void;
147
149
  entry(args: IOrderArgs, posStr: string): void;
148
150
  close(args: IOrder): void;
@@ -164,6 +166,7 @@ export default class Strategy {
164
166
  private _marginCallOrders;
165
167
  private _orderHandle;
166
168
  private _judgeCapitalEnough;
169
+ private _getOrderProfit;
167
170
  private _ocaGroupVerify;
168
171
  private _processOrders;
169
172
  private _addPendingOrders;