hedgequantx 2.9.64 → 2.9.66

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.64",
3
+ "version": "2.9.66",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -274,14 +274,17 @@ const executeAlgo = async ({ service, account, contract, config, strategy: strat
274
274
  lastBias = bias;
275
275
  }
276
276
 
277
- // Model analysis every 5 seconds
278
- if (currentSecond % 5 === 0) {
279
- const modelValues = strategy.getModelValues?.(contractId);
280
- if (modelValues) {
281
- barCount = modelValues.bars || barCount;
282
- if (barCount >= 50) {
283
- const modelLog = smartLogs.getModelAnalysisLog(modelValues);
284
- ui.addLog('analysis', `${modelLog.message} ${modelLog.details || ''}`);
277
+ // Strategy state log every 10 seconds
278
+ if (currentSecond % 10 === 0) {
279
+ const state = strategy.getAnalysisState?.(contractId, price);
280
+ if (state) {
281
+ if (!state.ready) {
282
+ ui.addLog('system', state.message);
283
+ } else {
284
+ const resStr = state.nearestResistance ? state.nearestResistance.toFixed(2) : '--';
285
+ const supStr = state.nearestSupport ? state.nearestSupport.toFixed(2) : '--';
286
+ ui.addLog('analysis', `Bars: ${state.barsProcessed} | Zones: ${state.activeZones} | Swings: ${state.swingsDetected}`);
287
+ ui.addLog('analysis', `Resistance: ${resStr} | Support: ${supStr}`);
285
288
  }
286
289
  }
287
290
  }
@@ -298,6 +301,13 @@ const executeAlgo = async ({ service, account, contract, config, strategy: strat
298
301
  ui.addLog('debug', `${tickLog.message} ${tickLog.details}`);
299
302
  }
300
303
 
304
+ // AI Agents status log every 20 seconds
305
+ if (currentSecond % 20 === 0 && supervisionEnabled && supervisionEngine) {
306
+ const status = supervisionEngine.getStatus();
307
+ const agentNames = status.agents.map(a => a.name.split(' ')[0]).join(', ');
308
+ ui.addLog('analysis', `AI Agents (${status.availableAgents}): ${agentNames} - watching...`);
309
+ }
310
+
301
311
  // Reset volume counters
302
312
  buyVolume = 0;
303
313
  sellVolume = 0;