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:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user