Fix recovery positions
This commit is contained in:
@@ -2957,6 +2957,7 @@ public class TradingBotBase : ITradingBot
|
||||
|
||||
// Mark recovery as attempted before proceeding
|
||||
lastPosition.RecoveryAttempted = true;
|
||||
Positions[lastPosition.Identifier] = lastPosition;
|
||||
|
||||
// Attempt recovery for the last position only
|
||||
bool recovered = await RecoverOpenPositionFromBroker(signal, lastPosition);
|
||||
@@ -2988,7 +2989,7 @@ public class TradingBotBase : ITradingBot
|
||||
|
||||
try
|
||||
{
|
||||
await LogWarning(
|
||||
await LogDebug(
|
||||
$"🔄 Attempting Position Recovery\n" +
|
||||
$"Signal: `{signal.Identifier}`\n" +
|
||||
$"Position: `{positionForSignal.Identifier}`\n" +
|
||||
|
||||
Reference in New Issue
Block a user