hedgequantx 2.9.233 → 2.9.234

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.233",
3
+ "version": "2.9.234",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -119,14 +119,17 @@ class SmartLogsEngine {
119
119
  this._lastTicks = tickCount || bars || 0;
120
120
 
121
121
  // Not enough data - still warming up
122
- const dataPoints = bars || tickCount || 0;
123
- if (dataPoints < 50 || !price) {
124
- const pct = Math.min(100, Math.round((dataPoints / 50) * 100));
125
- const remaining = 50 - dataPoints;
126
- const pctColor = pct < 50 ? C.warn : C.ok;
122
+ // HQX Scalping is a TICK strategy - needs minimum ticks for QUANT models
123
+ const tickTotal = tickCount || 0;
124
+ const minTicks = 500; // Minimum ticks needed for Z-score, VPIN, OFI calculations
125
+
126
+ if (tickTotal < minTicks || !price) {
127
+ const pct = Math.min(100, Math.round((tickTotal / minTicks) * 100));
128
+ const remaining = minTicks - tickTotal;
129
+ const pctColor = pct < 30 ? C.warn : pct < 70 ? C.val : C.ok;
127
130
  return {
128
131
  type: 'system',
129
- message: `[${C.sym(sym)}] ${price ? C.price(price) : C.dim('-.--')} ${C.separator()} ${C.label('Calibrating')} ${pctColor(pct + '%')} ${C.separator()} ${C.val(remaining)} ${C.label('samples to ready')} ${C.separator()} ${C.dim('+' + tickVelocity + '/s')}`,
132
+ message: `[${C.sym(sym)}] ${price ? C.price(price) : C.dim('-.--')} ${C.separator()} ${C.label('Calibrating')} ${pctColor(pct + '%')} ${C.separator()} ${C.val(tickTotal + '/' + minTicks)} ${C.label('ticks')} ${C.separator()} ${C.val('+' + tickVelocity + '/s')}`,
130
133
  logToSession: false
131
134
  };
132
135
  }