Update scoring

This commit is contained in:
2025-07-17 21:53:19 +07:00
parent 7de18673f9
commit 7bf7f783a9
4 changed files with 59 additions and 60 deletions

View File

@@ -676,7 +676,6 @@ namespace Managing.Application.Tests
var scoringParams = new BacktestScoringParams(
sharpeRatio: (double)(backtestResult.Statistics?.SharpeRatio ?? 0),
maxDrawdownPc: (double)(backtestResult.Statistics?.MaxDrawdownPc ?? 0),
growthPercentage: (double)backtestResult.GrowthPercentage,
hodlPercentage: (double)backtestResult.HodlPercentage,
winRate: backtestResult.WinRate / 100.0, // Convert percentage to decimal
@@ -686,6 +685,7 @@ namespace Managing.Application.Tests
maxDrawdownRecoveryTime: backtestResult.Statistics?.MaxDrawdownRecoveryTime ?? TimeSpan.Zero,
maxDrawdown: backtestResult.Statistics?.MaxDrawdown ?? 0,
initialBalance: config.BotTradingBalance,
tradingBalance: config.BotTradingBalance,
startDate: backtestResult.StartDate,
endDate: backtestResult.EndDate,
timeframe: config.Timeframe