Add ui fee into TradingBot.cs

This commit is contained in:
2025-06-19 16:20:16 +07:00
parent 0aa1f40f53
commit cc330e8cc3
3 changed files with 37 additions and 33 deletions

View File

@@ -205,6 +205,7 @@ namespace Managing.Application.Backtesting
var growthPercentage = TradingHelpers.GetGrowthFromInitalBalance(config.BotTradingBalance, finalPnl);
var hodlPercentage = TradingHelpers.GetHodlPercentage(candles[0], candles.Last());
var fees = bot.GetTotalFees();
var scoringParams = new BacktestScoringParams(
sharpeRatio: (double)stats.SharpeRatio,
maxDrawdownPc: (double)stats.MaxDrawdownPc,
@@ -212,7 +213,7 @@ namespace Managing.Application.Backtesting
hodlPercentage: (double)hodlPercentage,
winRate: winRate,
totalPnL: (double)finalPnl,
fees: (double)bot.GetTotalFees(),
fees: (double)fees,
tradeCount: bot.Positions.Count,
maxDrawdownRecoveryTime: stats.MaxDrawdownRecoveryTime
);
@@ -225,7 +226,7 @@ namespace Managing.Application.Backtesting
WinRate = winRate,
GrowthPercentage = growthPercentage,
HodlPercentage = hodlPercentage,
Fees = bot.GetTotalFees(),
Fees = fees,
WalletBalances = bot.WalletBalances.ToList(),
Statistics = stats,
OptimizedMoneyManagement = optimizedMoneyManagement,