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

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,45 @@ 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;
116
+ private _closeOrder;
117
+ private _ordersHandle;
113
118
  private _pendingOrderHandle;
114
119
  private _entryOrderHandle;
115
120
  private _orderOrderHandle;
116
121
  private _closeOrderHandle;
117
122
  private _exitOrderHandle;
118
123
  private _exit;
124
+ private _ordersToExit;
125
+ private _stopProfit;
126
+ private _stopLoss;
127
+ private _trailStopLoss;
128
+ private _processExitOnClose;
129
+ private _processExitOrders;
130
+ private _processOrder;
119
131
  private _isNaN;
120
132
  }
121
133
  export {};
@@ -26359,7 +26359,15 @@ else
26359
26359
  "series bool",
26360
26360
  "simple bool",
26361
26361
  "input bool",
26362
- "const bool"
26362
+ "const bool",
26363
+ "series int",
26364
+ "simple int",
26365
+ "input int",
26366
+ "const int",
26367
+ "series float",
26368
+ "simple float",
26369
+ "input float",
26370
+ "const float"
26363
26371
  ],
26364
26372
  displayType: "series bool"
26365
26373
  }
@@ -37204,7 +37212,8 @@ else
37204
37212
  desc: "An array object.",
37205
37213
  required: !0,
37206
37214
  allowedTypeIDs: [
37207
- "float[]"
37215
+ "float[]",
37216
+ "int[]"
37208
37217
  ],
37209
37218
  displayType: "float[]"
37210
37219
  },
@@ -37278,7 +37287,8 @@ else
37278
37287
  desc: "An array object.",
37279
37288
  required: !0,
37280
37289
  allowedTypeIDs: [
37281
- "float[]"
37290
+ "float[]",
37291
+ "int[]"
37282
37292
  ],
37283
37293
  displayType: "float[]"
37284
37294
  },
@@ -65016,11 +65026,11 @@ function Jr(s, i, a) {
65016
65026
  function Tb() {
65017
65027
  return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
65018
65028
  }
65019
- const pu = new Worker(new URL("" + new URL("assets/scriptsRunWorker-DYIZeQ6u.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run TccScript Server" });
65029
+ const pu = new Worker(new URL("" + new URL("assets/scriptsRunWorker-Df1Pd8W_.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run TccScript Server" });
65020
65030
  pu.onerror = (s) => {
65021
65031
  console.error(s);
65022
65032
  };
65023
- const Ib = An(pu), Db = An(new Worker(new URL("" + new URL("assets/parserTccWorker-BOXqLi6O.js", import.meta.url).href, import.meta.url), { type: "module", name: "Parser TccScript Server" }));
65033
+ const Ib = An(pu), Db = An(new Worker(new URL("" + new URL("assets/parserTccWorker-ChLN20Ym.js", import.meta.url).href, import.meta.url), { type: "module", name: "Parser TccScript Server" }));
65024
65034
  async function kb(s, i = !1) {
65025
65035
  const { functions: a, types: l, constants: u, variables: p, methods: m } = Ot;
65026
65036
  return await Db(s, i, { functions: Object.fromEntries(a), methods: Object.fromEntries(m), types: Object.fromEntries(l), constants: Object.fromEntries(u), variables: Object.fromEntries(p) });