Class BatchEmulation
- Namespace
- StockSharp.Algo.Strategies.Testing
- Assembly
- StockSharp.Algo.dll
[Obsolete("Use BruteForceOptimizer.")]
public class BatchEmulation : BruteForceOptimizer, IPersistable, ILogReceiver, ILogSource, IDisposable
- Inheritance
-
BatchEmulation
- Implements
- Inherited Members
- Extension Methods
Constructors
BatchEmulation(ISecurityProvider, IPortfolioProvider, IStorageRegistry)
Initializes a new instance of the BatchEmulation.
public BatchEmulation(ISecurityProvider securityProvider, IPortfolioProvider portfolioProvider, IStorageRegistry storageRegistry)
Parameters
securityProviderISecurityProviderThe provider of information about instruments.
portfolioProviderIPortfolioProviderThe portfolio to be used to register orders. If value is not given, the portfolio with default name Simulator will be created.
storageRegistryIStorageRegistryMarket data storage.
BatchEmulation(ISecurityProvider, IPortfolioProvider, IExchangeInfoProvider, IStorageRegistry, StorageFormats, IMarketDataDrive)
Initializes a new instance of the BatchEmulation.
public BatchEmulation(ISecurityProvider securityProvider, IPortfolioProvider portfolioProvider, IExchangeInfoProvider exchangeInfoProvider, IStorageRegistry storageRegistry, StorageFormats storageFormat = StorageFormats.Binary, IMarketDataDrive drive = null)
Parameters
securityProviderISecurityProviderThe provider of information about instruments.
portfolioProviderIPortfolioProviderThe portfolio to be used to register orders. If value is not given, the portfolio with default name Simulator will be created.
exchangeInfoProviderIExchangeInfoProviderExchanges and trading boards provider.
storageRegistryIStorageRegistryMarket data storage.
storageFormatStorageFormatsThe format of market data. Binary is used by default.
driveIMarketDataDriveThe storage which is used by default. By default, DefaultDrive is used.
BatchEmulation(IEnumerable<Security>, IEnumerable<Portfolio>, IStorageRegistry)
Initializes a new instance of the BatchEmulation.
public BatchEmulation(IEnumerable<Security> securities, IEnumerable<Portfolio> portfolios, IStorageRegistry storageRegistry)
Parameters
securitiesIEnumerable<Security>Instruments, the operation will be performed with.
portfoliosIEnumerable<Portfolio>Portfolios, the operation will be performed with.
storageRegistryIStorageRegistryMarket data storage.
Methods
Start(IEnumerable<Strategy>, int)
Start emulation.
public void Start(IEnumerable<Strategy> strategies, int iterationCount)
Parameters
strategiesIEnumerable<Strategy>The strategies.
iterationCountintIteration count.