hedgequantx 2.9.93 → 2.9.94
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
CHANGED
package/src/lib/m/hqx-2b.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
// Load
|
|
3
|
-
|
|
4
|
-
module.exports = require('../../../dist/lib/m/hqx-2b.js');
|
|
5
|
-
} catch (e) {
|
|
6
|
-
module.exports = require('../../../private/strategies/hqx-2b-liquidity-sweep');
|
|
7
|
-
}
|
|
2
|
+
// Load from private sources (dist version outdated)
|
|
3
|
+
module.exports = require('../../../private/strategies/hqx-2b');
|
|
@@ -413,7 +413,6 @@ const executeAlgo = async ({ service, account, contract, config, strategy: strat
|
|
|
413
413
|
|
|
414
414
|
// Preload historical bars for HQX-2B strategy only (bar-based strategy)
|
|
415
415
|
// Note: HISTORY_PLANT may not be available on all accounts (e.g., paper trading)
|
|
416
|
-
ui.addLog('debug', `Strategy: ${strategyId}, preloadBars: ${typeof strategy.preloadBars}`);
|
|
417
416
|
if (strategyId === 'hqx-2b' && strategy.preloadBars) {
|
|
418
417
|
try {
|
|
419
418
|
ui.addLog('system', 'Loading historical bars...');
|
|
@@ -426,7 +425,7 @@ const executeAlgo = async ({ service, account, contract, config, strategy: strat
|
|
|
426
425
|
}
|
|
427
426
|
} catch (histErr) {
|
|
428
427
|
// HISTORY_PLANT not available (common on paper accounts)
|
|
429
|
-
ui.addLog('system',
|
|
428
|
+
ui.addLog('system', 'Historical data not available - warming up with live bars...');
|
|
430
429
|
}
|
|
431
430
|
}
|
|
432
431
|
} catch (e) {
|