hedgequantx 2.9.234 → 2.9.235
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 +1 -1
- package/src/lib/smart-logs-engine.js +5 -10
package/package.json
CHANGED
|
@@ -118,22 +118,17 @@ class SmartLogsEngine {
|
|
|
118
118
|
const tickVelocity = (tickCount || bars || 0) - lastTicks;
|
|
119
119
|
this._lastTicks = tickCount || bars || 0;
|
|
120
120
|
|
|
121
|
-
//
|
|
122
|
-
|
|
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;
|
|
121
|
+
// No price yet - waiting for first tick
|
|
122
|
+
if (!price) {
|
|
130
123
|
return {
|
|
131
124
|
type: 'system',
|
|
132
|
-
message: `[${C.sym(sym)}] ${
|
|
125
|
+
message: `[${C.sym(sym)}] ${C.dim('Waiting for market data...')}`,
|
|
133
126
|
logToSession: false
|
|
134
127
|
};
|
|
135
128
|
}
|
|
136
129
|
|
|
130
|
+
const tickTotal = tickCount || 0;
|
|
131
|
+
|
|
137
132
|
// Compute current states with precision for uniqueness
|
|
138
133
|
const absZ = Math.abs(zScore);
|
|
139
134
|
const ofiPct = (ofi * 100).toFixed(0);
|