hedgequantx 2.9.205 → 2.9.206
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
|
@@ -170,16 +170,18 @@ class SmartLogsEngine {
|
|
|
170
170
|
this.lastState = { ...state };
|
|
171
171
|
|
|
172
172
|
// For QUANT strategy: ALWAYS use rich QUANT-specific smart-logs with metrics
|
|
173
|
+
// HQX Scalping is TICK-BASED, not bar-based - use tickCount for display
|
|
173
174
|
if (this.strategyId === 'ultra-scalping') {
|
|
174
175
|
const timeSinceLastLog = now - this.lastLogTime;
|
|
176
|
+
const ticks = state.tickCount || state.bars || 0; // Prefer tickCount for scalping
|
|
175
177
|
|
|
176
178
|
// Log every 5 seconds with quant metrics
|
|
177
179
|
if (timeSinceLastLog >= CONFIG.LOG_INTERVAL_SECONDS * 1000) {
|
|
178
180
|
this.lastLogTime = now;
|
|
179
181
|
|
|
180
|
-
// Still warming up
|
|
181
|
-
if (
|
|
182
|
-
const d = { sym, ticks
|
|
182
|
+
// Still warming up (need ~250 ticks for QUANT models to stabilize)
|
|
183
|
+
if (ticks < 250) {
|
|
184
|
+
const d = { sym, ticks, price };
|
|
183
185
|
return {
|
|
184
186
|
type: 'system',
|
|
185
187
|
message: QUANT.building(d),
|
|
@@ -206,7 +208,7 @@ class SmartLogsEngine {
|
|
|
206
208
|
rawZScore: zScore,
|
|
207
209
|
vpin: vpinPct,
|
|
208
210
|
ofi: ofiPct,
|
|
209
|
-
ticks
|
|
211
|
+
ticks
|
|
210
212
|
};
|
|
211
213
|
|
|
212
214
|
let logType = 'analysis';
|