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