Fix % formating for SL TP

This commit is contained in:
2025-10-12 01:13:00 +07:00
parent c022c725a2
commit 7ddde08b98
4 changed files with 252 additions and 15 deletions

View File

@@ -996,7 +996,7 @@ public class TradingBotBase : ITradingBot
{
// Add position to internal collection before any status updates
Positions[position.Identifier] = position;
if (position.Open.Status != TradeStatus.Cancelled && position.Status != PositionStatus.Rejected)
{
SetSignalStatus(signal.Identifier, SignalStatus.PositionOpen);
@@ -2224,10 +2224,10 @@ public class TradingBotBase : ITradingBot
changes.Add($"🏷️ Name: {Config.Name} → {newConfig.Name}");
}
if (Config.AccountName != newConfig.AccountName)
{
changes.Add($"👤 Account: {Config.AccountName} → {newConfig.AccountName}");
}
// if (Config.AccountName != newConfig.AccountName)
// {
// changes.Add($"👤 Account: {Config.AccountName} → {newConfig.AccountName}");
// }
if (Config.Ticker != newConfig.Ticker)
{
@@ -2257,6 +2257,8 @@ public class TradingBotBase : ITradingBot
// Protect critical properties that shouldn't change for running bots
var protectedIsForBacktest = Config.IsForBacktest;
newConfig.AccountName = Config.AccountName;
// Update the configuration
Config = newConfig;