hedgequantx 2.6.141 → 2.6.142
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
|
@@ -1623,8 +1623,17 @@ const launchMultiSymbolRithmic = async (service, account, contracts, config) =>
|
|
|
1623
1623
|
|
|
1624
1624
|
// Disable symbol after loss (SL hit) - other symbols continue
|
|
1625
1625
|
disabledSymbols.add(symbolName);
|
|
1626
|
-
ui.addLog('warning', `[${symbolName}] DISABLED - SL hit, other symbols continue`);
|
|
1627
1626
|
stats.activeSymbols = contracts.length - disabledSymbols.size;
|
|
1627
|
+
|
|
1628
|
+
// Check if ALL symbols are now disabled → stop algo
|
|
1629
|
+
if (disabledSymbols.size >= contracts.length) {
|
|
1630
|
+
ui.addLog('warning', `[${symbolName}] DISABLED - All symbols stopped`);
|
|
1631
|
+
ui.addLog('info', '████ ALL SYMBOLS DISABLED - Session complete ████');
|
|
1632
|
+
stopReason = 'all_disabled';
|
|
1633
|
+
running = false;
|
|
1634
|
+
} else {
|
|
1635
|
+
ui.addLog('warning', `[${symbolName}] DISABLED - SL hit, ${stats.activeSymbols} symbols remaining`);
|
|
1636
|
+
}
|
|
1628
1637
|
}
|
|
1629
1638
|
}
|
|
1630
1639
|
stats.symbolStats[symbolName].position = 0;
|