hedgequantx 2.3.11 → 2.3.12
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/dist/lib/api.jsc +0 -0
- package/dist/lib/api2.jsc +0 -0
- package/dist/lib/core.jsc +0 -0
- package/dist/lib/core2.jsc +0 -0
- package/dist/lib/data.jsc +0 -0
- package/dist/lib/data2.jsc +0 -0
- package/dist/lib/decoder.jsc +0 -0
- package/dist/lib/m/mod1.jsc +0 -0
- package/dist/lib/m/mod2.jsc +0 -0
- package/dist/lib/n/r1.jsc +0 -0
- package/dist/lib/n/r2.jsc +0 -0
- package/dist/lib/n/r3.jsc +0 -0
- package/dist/lib/n/r4.jsc +0 -0
- package/dist/lib/n/r5.jsc +0 -0
- package/dist/lib/n/r6.jsc +0 -0
- package/dist/lib/n/r7.jsc +0 -0
- package/dist/lib/o/util1.jsc +0 -0
- package/dist/lib/o/util2.jsc +0 -0
- package/package.json +1 -1
- package/src/pages/algo/ui.js +11 -23
package/dist/lib/api.jsc
CHANGED
|
Binary file
|
package/dist/lib/api2.jsc
CHANGED
|
Binary file
|
package/dist/lib/core.jsc
CHANGED
|
Binary file
|
package/dist/lib/core2.jsc
CHANGED
|
Binary file
|
package/dist/lib/data.jsc
CHANGED
|
Binary file
|
package/dist/lib/data2.jsc
CHANGED
|
Binary file
|
package/dist/lib/decoder.jsc
CHANGED
|
Binary file
|
package/dist/lib/m/mod1.jsc
CHANGED
|
Binary file
|
package/dist/lib/m/mod2.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r1.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r2.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r3.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r4.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r5.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r6.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r7.jsc
CHANGED
|
Binary file
|
package/dist/lib/o/util1.jsc
CHANGED
|
Binary file
|
package/dist/lib/o/util2.jsc
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/pages/algo/ui.js
CHANGED
|
@@ -189,19 +189,12 @@ class AlgoUI {
|
|
|
189
189
|
|
|
190
190
|
this._line(chalk.cyan(GM));
|
|
191
191
|
|
|
192
|
-
// Row 4: Trades |
|
|
192
|
+
// Row 4: Trades | Propfirm
|
|
193
193
|
const r4c1t = ` Trades: ${chalk.cyan(stats.trades || 0)} W/L: ${chalk.green(stats.wins || 0)}/${chalk.red(stats.losses || 0)}`;
|
|
194
194
|
const r4c1p = ` Trades: ${stats.trades || 0} W/L: ${stats.wins || 0}/${stats.losses || 0}`;
|
|
195
|
-
const r4c2 = buildCell('
|
|
195
|
+
const r4c2 = buildCell('Propfirm', stats.propfirm || 'N/A', chalk.cyan, colR);
|
|
196
196
|
row(r4c1t + pad(colL - r4c1p.length), r4c2.padded);
|
|
197
197
|
|
|
198
|
-
this._line(chalk.cyan(GM));
|
|
199
|
-
|
|
200
|
-
// Row 5: Latency | Propfirm
|
|
201
|
-
const r5c1 = buildCell('Latency', `${stats.latency || 0}ms`, latencyColor, colL);
|
|
202
|
-
const r5c2 = buildCell('Propfirm', stats.propfirm || 'N/A', chalk.cyan, colR);
|
|
203
|
-
row(r5c1.padded, r5c2.padded);
|
|
204
|
-
|
|
205
198
|
this._line(chalk.cyan(GB));
|
|
206
199
|
}
|
|
207
200
|
|
|
@@ -254,18 +247,11 @@ class AlgoUI {
|
|
|
254
247
|
|
|
255
248
|
this._line(chalk.cyan(GM));
|
|
256
249
|
|
|
257
|
-
// Row 5: P&L |
|
|
250
|
+
// Row 5: P&L | Trades
|
|
258
251
|
const r5c1 = buildCell('P&L', pnlStr, pnlColor, colL);
|
|
259
|
-
const
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
this._line(chalk.cyan(GM));
|
|
263
|
-
|
|
264
|
-
// Row 6: Trades | Latency
|
|
265
|
-
const r6c1t = ` Trades: ${chalk.cyan(stats.trades || 0)} W/L: ${chalk.green(stats.wins || 0)}/${chalk.red(stats.losses || 0)}`;
|
|
266
|
-
const r6c1p = ` Trades: ${stats.trades || 0} W/L: ${stats.wins || 0}/${stats.losses || 0}`;
|
|
267
|
-
const r6c2 = buildCell('Latency', `${stats.latency || 0}ms`, latencyColor, colR);
|
|
268
|
-
row(r6c1t + pad(colL - r6c1p.length), r6c2.padded);
|
|
252
|
+
const r5c2t = ` Trades: ${chalk.cyan(stats.trades || 0)} W/L: ${chalk.green(stats.wins || 0)}/${chalk.red(stats.losses || 0)}`;
|
|
253
|
+
const r5c2p = ` Trades: ${stats.trades || 0} W/L: ${stats.wins || 0}/${stats.losses || 0}`;
|
|
254
|
+
row(r5c1.padded, r5c2t + pad(colR - r5c2p.length));
|
|
269
255
|
|
|
270
256
|
this._line(chalk.cyan(GB));
|
|
271
257
|
}
|
|
@@ -280,11 +266,13 @@ class AlgoUI {
|
|
|
280
266
|
const timeStr = now.toLocaleTimeString('en-US', { hour12: false });
|
|
281
267
|
const dateStr = now.toLocaleDateString('en-US', { month: 'short', day: 'numeric' });
|
|
282
268
|
|
|
269
|
+
const leftText = ` EXECUTION LOG ${spinner}`;
|
|
270
|
+
const rightText = `${dateStr} ${timeStr} [X] STOP `;
|
|
271
|
+
const totalLen = leftText.length + rightText.length;
|
|
272
|
+
const space = W - totalLen;
|
|
273
|
+
|
|
283
274
|
const left = ` EXECUTION LOG ${chalk.yellow(spinner)}`;
|
|
284
275
|
const right = `${chalk.gray(dateStr)} ${chalk.white(timeStr)} ${chalk.yellow('[X] STOP')} `;
|
|
285
|
-
const leftPlain = stripAnsi(left);
|
|
286
|
-
const rightPlain = ` ${dateStr} ${timeStr} [X] STOP `;
|
|
287
|
-
const space = W - leftPlain.length - rightPlain.length;
|
|
288
276
|
|
|
289
277
|
this._line(chalk.cyan(BOX.V) + chalk.white.bold(left) + ' '.repeat(Math.max(0, space)) + right + chalk.cyan(BOX.V));
|
|
290
278
|
this._line(chalk.cyan(BOX.ML + BOX.H.repeat(W) + BOX.MR));
|