hedgequantx 2.9.73 → 2.9.74
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
|
@@ -285,6 +285,19 @@ const executeAlgo = async ({ service, account, contract, config, strategy: strat
|
|
|
285
285
|
const supStr = state.nearestSupport ? state.nearestSupport.toFixed(2) : '--';
|
|
286
286
|
ui.addLog('analysis', `Bars: ${state.barsProcessed} | Zones: ${state.activeZones} | Swings: ${state.swingsDetected}`);
|
|
287
287
|
ui.addLog('analysis', `Resistance: ${resStr} | Support: ${supStr}`);
|
|
288
|
+
|
|
289
|
+
// Explain why no trade
|
|
290
|
+
if (state.activeZones === 0) {
|
|
291
|
+
ui.addLog('risk', 'No zones detected - waiting for swing points');
|
|
292
|
+
} else if (!state.nearestSupport && !state.nearestResistance) {
|
|
293
|
+
ui.addLog('risk', 'Zones too far from price - waiting');
|
|
294
|
+
} else if (!state.nearestSupport) {
|
|
295
|
+
ui.addLog('risk', 'No support zone - only SHORT sweeps possible');
|
|
296
|
+
} else if (!state.nearestResistance) {
|
|
297
|
+
ui.addLog('risk', 'No resistance zone - only LONG sweeps possible');
|
|
298
|
+
} else {
|
|
299
|
+
ui.addLog('ready', 'Zones active - waiting for sweep signal');
|
|
300
|
+
}
|
|
288
301
|
}
|
|
289
302
|
}
|
|
290
303
|
}
|