@@ -142,10 +142,12 @@ namespace Managing.Application.Backtesting
|
||||
bot.WalletBalances.Add(candles.FirstOrDefault().Date, balance);
|
||||
foreach (var candle in candles)
|
||||
{
|
||||
bot.Candles.Add(candle);
|
||||
bot.OptimizedCandles.Enqueue(candle);
|
||||
bot.Run();
|
||||
}
|
||||
|
||||
bot.Candles = new HashSet<Candle>(candles);
|
||||
|
||||
var finalPnl = bot.GetProfitAndLoss();
|
||||
var winRate = bot.GetWinRate();
|
||||
var optimizedMoneyManagement = TradingBox.GetBestMoneyManagement(candles, bot.Positions, moneyManagement);
|
||||
|
||||
Reference in New Issue
Block a user