Add SeedInitialPrices algorithm setting

This is true by default and indicates that the engine will seed initial prices right after the security is added or selected
This commit is contained in:
Jhonathan Abreu
2025-10-16 18:21:38 -04:00
parent 6c5b577b46
commit 64398abff3
11 changed files with 99 additions and 25 deletions
+1 -1
View File
@@ -279,7 +279,7 @@ namespace QuantConnect.Algorithm
fillForward,
isCustomData: true,
extendedMarketHours: true);
var security = Securities.CreateSecurity(symbol, config, leverage, addToSymbolCache: false);
var security = Securities.CreateSecurity(symbol, config, leverage, addToSymbolCache: false, seedSecurity: Settings.SeedInitialPrices);
return AddToUserDefinedUniverse(security, new List<SubscriptionDataConfig> { config });
}