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
-
IPersistable
- 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
securityProvider
ISecurityProviderThe provider of information about instruments.
portfolioProvider
IPortfolioProviderThe portfolio to be used to register orders. If value is not given, the portfolio with default name Simulator will be created.
storageRegistry
IStorageRegistryMarket 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
securityProvider
ISecurityProviderThe provider of information about instruments.
portfolioProvider
IPortfolioProviderThe portfolio to be used to register orders. If value is not given, the portfolio with default name Simulator will be created.
exchangeInfoProvider
IExchangeInfoProviderExchanges and trading boards provider.
storageRegistry
IStorageRegistryMarket data storage.
storageFormat
StorageFormatsThe format of market data. Binary is used by default.
drive
IMarketDataDriveThe 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
securities
IEnumerable<Security>Instruments, the operation will be performed with.
portfolios
IEnumerable<Portfolio>Portfolios, the operation will be performed with.
storageRegistry
IStorageRegistryMarket data storage.
Methods
Start(IEnumerable<Strategy>, int)
Start emulation.
public void Start(IEnumerable<Strategy> strategies, int iterationCount)
Parameters
strategies
IEnumerable<Strategy>The strategies.
iterationCount
intIteration count.