Table of Contents

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, 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 ISecurityProvider

The provider of information about instruments.

portfolioProvider IPortfolioProvider

The portfolio to be used to register orders. If value is not given, the portfolio with default name Simulator will be created.

exchangeInfoProvider IExchangeInfoProvider

Exchanges and trading boards provider.

storageRegistry IStorageRegistry

Market data storage.

storageFormat StorageFormats

The format of market data. Binary is used by default.

drive IMarketDataDrive

The storage which is used by default. By default, DefaultDrive is used.

BatchEmulation(ISecurityProvider, IPortfolioProvider, IStorageRegistry)

Initializes a new instance of the BatchEmulation.

public BatchEmulation(ISecurityProvider securityProvider, IPortfolioProvider portfolioProvider, IStorageRegistry storageRegistry)

Parameters

securityProvider ISecurityProvider

The provider of information about instruments.

portfolioProvider IPortfolioProvider

The portfolio to be used to register orders. If value is not given, the portfolio with default name Simulator will be created.

storageRegistry IStorageRegistry

Market data storage.

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 IStorageRegistry

Market data storage.

Methods

Start(IEnumerable<Strategy>, int)

Start emulation.

public void Start(IEnumerable<Strategy> strategies, int iterationCount)

Parameters

strategies IEnumerable<Strategy>

The strategies.

iterationCount int

Iteration count.