hedgequantx 1.2.91 → 1.2.93
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/package.json +1 -1
- package/src/pages/algo.js +1 -19
package/package.json
CHANGED
package/src/pages/algo.js
CHANGED
|
@@ -523,25 +523,7 @@ const launchAlgo = async (service, account, contract, numContracts, dailyTarget,
|
|
|
523
523
|
const title2 = 'HQX Ultra-Scalping Algorithm';
|
|
524
524
|
console.log(chalk.cyan(V) + chalk.yellow(center(title2, W)) + chalk.cyan(V));
|
|
525
525
|
|
|
526
|
-
// Grid layout for metrics - 2 columns per row,
|
|
527
|
-
// Row 1: Account | Symbol
|
|
528
|
-
// Row 2: Target | Risk
|
|
529
|
-
// Row 3: P&L | Trades | Server | WS
|
|
530
|
-
const VS = '\u2502'; // Vertical separator (thin)
|
|
531
|
-
|
|
532
|
-
// 2 columns: 48 + 47 + 1 separator = 96
|
|
533
|
-
const colL = 48, colR = 47;
|
|
534
|
-
|
|
535
|
-
// Safe padding function
|
|
536
|
-
const safePad = (len) => ' '.repeat(Math.max(0, len));
|
|
537
|
-
|
|
538
|
-
// Build cell helper
|
|
539
|
-
const buildCell = (label, value, valueColor, width) => {
|
|
540
|
-
const text = ` ${label}: ${valueColor(value)}`;
|
|
541
|
-
const plain = ` ${label}: ${value}`;
|
|
542
|
-
return { text, plain, padded: text + safePad(width - plain.length) };
|
|
543
|
-
};
|
|
544
|
-
|
|
526
|
+
// Grid layout for metrics - 2 columns per row, 4 rows
|
|
545
527
|
// Row 1: Account | Symbol + Qty
|
|
546
528
|
// Row 2: Target | Risk
|
|
547
529
|
// Row 3: P&L | Server
|