Add scoring message
This commit is contained in:
@@ -317,7 +317,7 @@ namespace Managing.Application.Backtesting
|
||||
timeframe: config.Timeframe
|
||||
);
|
||||
|
||||
var score = BacktestScorer.CalculateTotalScore(scoringParams);
|
||||
var scoringResult = BacktestScorer.CalculateDetailedScore(scoringParams);
|
||||
|
||||
// Create backtest result with conditional candles and indicators values
|
||||
var result = new Backtest(config, bot.Positions, bot.Signals.ToList(),
|
||||
@@ -334,7 +334,8 @@ namespace Managing.Application.Backtesting
|
||||
IndicatorsValues = withCandles
|
||||
? AggregateValues(indicatorsValues, bot.IndicatorsValues)
|
||||
: new Dictionary<IndicatorType, IndicatorsResultBase>(),
|
||||
Score = score,
|
||||
Score = scoringResult.Score,
|
||||
ScoreMessage = scoringResult.SummaryMessage,
|
||||
Id = Guid.NewGuid().ToString(),
|
||||
RequestId = requestId,
|
||||
Metadata = metadata,
|
||||
|
||||
Reference in New Issue
Block a user