Remove comments
This commit is contained in:
@@ -73,10 +73,7 @@ public class TradingBotBase : ITradingBot
|
||||
// Start async initialization in the background without blocking
|
||||
try
|
||||
{
|
||||
// Load account asynchronously
|
||||
await LoadAccount();
|
||||
|
||||
// Load last candle asynchronously
|
||||
await LoadLastCandle();
|
||||
|
||||
if (Account == null)
|
||||
@@ -85,10 +82,6 @@ public class TradingBotBase : ITradingBot
|
||||
throw new ArgumentException("Account not found");
|
||||
}
|
||||
|
||||
// Cancel orders
|
||||
// await CancelAllOrders();
|
||||
|
||||
// Send startup message only for fresh starts (not reboots)
|
||||
switch (previousStatus)
|
||||
{
|
||||
case BotStatus.Saved:
|
||||
@@ -103,7 +96,9 @@ public class TradingBotBase : ITradingBot
|
||||
$"🎮 Scenario: `{Config.Scenario?.Name ?? "Unknown"}`\n" +
|
||||
$"💰 Balance: `${Config.BotTradingBalance:F2}`\n" +
|
||||
$"👀 Mode: `{modeText}`\n\n" +
|
||||
(Config.IsForCopyTrading ? "" : $"📈 Active Indicators: `{string.Join(", ", indicatorNames)}`\n\n") +
|
||||
(Config.IsForCopyTrading
|
||||
? ""
|
||||
: $"📈 Active Indicators: `{string.Join(", ", indicatorNames)}`\n\n") +
|
||||
$"✅ Ready to monitor signals and execute trades\n" +
|
||||
$"📢 Notifications will be sent when positions are triggered";
|
||||
|
||||
@@ -255,7 +250,8 @@ public class TradingBotBase : ITradingBot
|
||||
|
||||
Logger.LogInformation(
|
||||
"[{CopyTrading}][{AgentName}] Bot Status {Name} - ServerDate: {ServerDate}, LastCandleDate: {LastCandleDate}, Signals: {SignalCount}, Executions: {ExecutionCount}, Positions: {PositionCount}",
|
||||
Config.IsForCopyTrading ? "CopyTrading" : "LiveTrading", Account.User.AgentName, Config.Name, DateTime.UtcNow, LastCandle?.Date, Signals.Count, ExecutionCount, Positions.Count);
|
||||
Config.IsForCopyTrading ? "CopyTrading" : "LiveTrading", Account.User.AgentName, Config.Name,
|
||||
DateTime.UtcNow, LastCandle?.Date, Signals.Count, ExecutionCount, Positions.Count);
|
||||
|
||||
Logger.LogInformation("[{AgentName}] Internal Positions : {Position}", Account.User.AgentName,
|
||||
string.Join(", ",
|
||||
|
||||
Reference in New Issue
Block a user