Preload since first position if any
This commit is contained in:
@@ -300,10 +300,8 @@ public class TradingBot : Bot, ITradingBot
|
||||
PreloadSince = Signals.First().Date;
|
||||
}
|
||||
|
||||
if (Positions.Any() && Positions.First().Open.Date < PreloadSince)
|
||||
{
|
||||
if (Positions.Any())
|
||||
PreloadSince = Positions.First().Open.Date;
|
||||
}
|
||||
|
||||
var candles =
|
||||
await ExchangeService.GetCandlesInflux(Account.Exchange, Config.Ticker, PreloadSince, Config.Timeframe);
|
||||
|
||||
Reference in New Issue
Block a user