hedgequantx 2.9.120 → 2.9.121
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
|
@@ -233,7 +233,7 @@ const executeAlgo = async ({ service, account, contract, config, strategy: strat
|
|
|
233
233
|
let lastLogSecond = 0;
|
|
234
234
|
let buyVolume = 0;
|
|
235
235
|
let sellVolume = 0;
|
|
236
|
-
|
|
236
|
+
|
|
237
237
|
|
|
238
238
|
let lastTickTime = 0;
|
|
239
239
|
let tickLatencies = [];
|
|
@@ -293,9 +293,10 @@ const executeAlgo = async ({ service, account, contract, config, strategy: strat
|
|
|
293
293
|
if (currentSecond % 30 === 0) {
|
|
294
294
|
const state = strategy.getAnalysisState?.(contractId, price);
|
|
295
295
|
if (state) {
|
|
296
|
-
|
|
296
|
+
const bars = state.barsProcessed || 0;
|
|
297
|
+
sessionLogger.state(state.activeZones || 0, state.swingsDetected || 0, bars, lastBias);
|
|
297
298
|
if (!state.ready) {
|
|
298
|
-
ui.addLog('system', state.message);
|
|
299
|
+
ui.addLog('system', `${state.message} (${bars} bars)`);
|
|
299
300
|
} else {
|
|
300
301
|
const resStr = state.nearestResistance ? state.nearestResistance.toFixed(2) : '--';
|
|
301
302
|
const supStr = state.nearestSupport ? state.nearestSupport.toFixed(2) : '--';
|