Fix % formating for SL TP
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user