hedgequantx 1.2.130 → 1.2.132
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 +11 -7
package/package.json
CHANGED
package/src/pages/algo.js
CHANGED
|
@@ -1507,6 +1507,11 @@ const launchCopyTrading = async (config) => {
|
|
|
1507
1507
|
let spinnerFrame = 0;
|
|
1508
1508
|
const spinnerChars = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
|
|
1509
1509
|
|
|
1510
|
+
// HQX Server connection state (declared here so displayUI can access it)
|
|
1511
|
+
const hqxServer = new HQXServerService();
|
|
1512
|
+
let hqxConnected = false;
|
|
1513
|
+
let latency = 0;
|
|
1514
|
+
|
|
1510
1515
|
const bufferLine = (text) => {
|
|
1511
1516
|
screenBuffer += text + '\x1B[K\n';
|
|
1512
1517
|
};
|
|
@@ -1579,6 +1584,10 @@ const launchCopyTrading = async (config) => {
|
|
|
1579
1584
|
bufferLine(chalk.cyan(V) + chalk.white(center(title1, W)) + chalk.cyan(V));
|
|
1580
1585
|
bufferLine(chalk.cyan(MID));
|
|
1581
1586
|
|
|
1587
|
+
// Centered subtitle
|
|
1588
|
+
const title2 = 'HQX Ultra-Scalping Algorithm';
|
|
1589
|
+
bufferLine(chalk.cyan(V) + chalk.yellow(center(title2, W)) + chalk.cyan(V));
|
|
1590
|
+
|
|
1582
1591
|
// Grid layout - 2 columns
|
|
1583
1592
|
const VS = '\u2502'; // Vertical separator (thin)
|
|
1584
1593
|
const colL = 48, colR = 47;
|
|
@@ -1674,7 +1683,7 @@ const launchCopyTrading = async (config) => {
|
|
|
1674
1683
|
};
|
|
1675
1684
|
|
|
1676
1685
|
// Logs inside the rectangle - newest first, max 30 lines
|
|
1677
|
-
const MAX_VISIBLE_LOGS =
|
|
1686
|
+
const MAX_VISIBLE_LOGS = 50;
|
|
1678
1687
|
|
|
1679
1688
|
if (logs.length === 0) {
|
|
1680
1689
|
const emptyLine = ' Waiting for activity...';
|
|
@@ -1710,15 +1719,10 @@ const launchCopyTrading = async (config) => {
|
|
|
1710
1719
|
}, 250);
|
|
1711
1720
|
|
|
1712
1721
|
addLog('info', 'Copy trading initialized');
|
|
1722
|
+
addLog('info', 'Connecting to HQX Server...');
|
|
1713
1723
|
displayUI();
|
|
1714
1724
|
|
|
1715
|
-
// Connect to HQX Server for Ultra-Scalping signals
|
|
1716
|
-
const hqxServer = new HQXServerService();
|
|
1717
|
-
let hqxConnected = false;
|
|
1718
|
-
let latency = 0;
|
|
1719
|
-
|
|
1720
1725
|
// Authenticate with HQX Server
|
|
1721
|
-
addLog('info', 'Connecting to HQX Server...');
|
|
1722
1726
|
displayUI();
|
|
1723
1727
|
|
|
1724
1728
|
try {
|