Global fix (#9)
* Fix time for candle * Fix out ouf range * Fix pnl, fix custom money management * Clean a bit
This commit is contained in:
@@ -139,11 +139,9 @@ namespace Managing.Application.Backtesting
|
||||
throw new Exception("No candle to backtest");
|
||||
}
|
||||
|
||||
var hodlBalances = new Dictionary<DateTime, decimal>();
|
||||
bot.WalletBalances.Add(candles.FirstOrDefault().Date, balance);
|
||||
foreach (var candle in candles)
|
||||
{
|
||||
hodlBalances.Add(candle.Date, candle.Close);
|
||||
bot.Candles.Add(candle);
|
||||
bot.Run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user