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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "2.9.120",
3
+ "version": "2.9.121",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -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
- let barCount = 0;
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
- sessionLogger.state(state.activeZones || 0, state.swingsDetected || 0, barCount, lastBias);
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) : '--';