@guihz/trading-vue-editor-tes 0.0.13 → 0.0.15

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.
@@ -89,33 +89,43 @@ export default class Strategy {
89
89
  constructor(variables: BuiltInVariables, options: IKeyObjectValue, mintick?: number);
90
90
  updateOptions(options: IStrategy): void;
91
91
  strategy(args: IStrategy): void;
92
- private _calcDefaultQty;
93
92
  order(args: IOrderArgs): void;
93
+ entry(args: IOrderArgs): void;
94
+ close(args: IOrder): void;
95
+ close_all(args: IOrder): void;
96
+ cancel({ id }: {
97
+ id: string;
98
+ }): void;
99
+ cancel_all(): void;
100
+ exit(args: IOrderArgs): void;
101
+ private _calcDefaultQty;
102
+ private _getCapital;
103
+ private _calcProfitAndLoss;
94
104
  private _orderHandle;
105
+ private _judgeCapitalEnough;
95
106
  private _ocaGroupVerify;
96
107
  private _processOrders;
97
108
  private _addPendingOrders;
98
109
  private _orderArgsParse;
99
- entry(args: IOrderArgs): void;
100
110
  private _entryHandle;
101
111
  private _entryOrder;
102
112
  private _getEntryOrders;
103
113
  private _addPendingEntry;
104
- close(args: IOrder): void;
105
- close_all(args: IOrder): void;
106
114
  private _closeAllOrders;
107
115
  private _closeOrders;
108
- cancel({ id }: {
109
- id: string;
110
- }): void;
111
- cancel_all(): void;
112
- exit(args: IOrderArgs): void;
113
116
  private _pendingOrderHandle;
114
117
  private _entryOrderHandle;
115
118
  private _orderOrderHandle;
116
119
  private _closeOrderHandle;
117
120
  private _exitOrderHandle;
118
121
  private _exit;
122
+ private _ordersToExit;
123
+ private _stopProfit;
124
+ private _stopLoss;
125
+ private _trailStopLoss;
126
+ private _processExitOnClose;
127
+ private _processExitOrders;
128
+ private _processOrder;
119
129
  private _isNaN;
120
130
  }
121
131
  export {};