Table of Contents

Class RealTimeEmulationTrader<TUnderlyingMarketDataAdapter>

Namespace
StockSharp.Algo.Testing
Assembly
StockSharp.Algo.dll

The simulation connection, intended for strategy testing with real connection to trading system through UnderlyngMarketDataAdapter, but without real registering orders on stock. Execution of orders and their trades are emulated by connection, using information by order books, coming from real connection.

public class RealTimeEmulationTrader<TUnderlyingMarketDataAdapter> : BaseEmulationConnector, IConnector, IPersistable, ILogReceiver, ILogSource, IMarketDataProvider, ITransactionProvider, IPositionProvider, IPortfolioProvider, ISecurityProvider, ISecurityMessageProvider, INewsProvider, IMessageChannel, IDisposable, ICloneable<IMessageChannel>, ICloneable, ISubscriptionProvider where TUnderlyingMarketDataAdapter : class, IMessageAdapter

Type Parameters

TUnderlyingMarketDataAdapter

The type IMessageAdapter, through which market data will be received.

Inheritance
RealTimeEmulationTrader<TUnderlyingMarketDataAdapter>
Implements
IPersistable
ICloneable<IMessageChannel>
Inherited Members
Extension Methods

Constructors

RealTimeEmulationTrader(TUnderlyingMarketDataAdapter, ISecurityProvider)

Initializes a new instance of the RealTimeEmulationTrader<TUnderlyingMarketDataAdapter>.

public RealTimeEmulationTrader(TUnderlyingMarketDataAdapter underlyngMarketDataAdapter, ISecurityProvider securityProvider)

Parameters

underlyngMarketDataAdapter TUnderlyingMarketDataAdapter

IMessageAdapter, through which market data will be got.

securityProvider ISecurityProvider

The provider of information about instruments.

RealTimeEmulationTrader(TUnderlyingMarketDataAdapter, ISecurityProvider, IPortfolioProvider, IExchangeInfoProvider, bool)

Initializes a new instance of the RealTimeEmulationTrader<TUnderlyingMarketDataAdapter>.

public RealTimeEmulationTrader(TUnderlyingMarketDataAdapter underlyngMarketDataAdapter, ISecurityProvider securityProvider, IPortfolioProvider portfolioProvider, IExchangeInfoProvider exchangeInfoProvider, bool ownAdapter = true)

Parameters

underlyngMarketDataAdapter TUnderlyingMarketDataAdapter

IMessageAdapter, through which market data will be got.

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.

ownAdapter bool

Track the connection underlyngMarketDataAdapter lifetime.

RealTimeEmulationTrader(TUnderlyingMarketDataAdapter, ISecurityProvider, Portfolio, bool)

Initializes a new instance of the RealTimeEmulationTrader<TUnderlyingMarketDataAdapter>.

public RealTimeEmulationTrader(TUnderlyingMarketDataAdapter underlyngMarketDataAdapter, ISecurityProvider securityProvider, Portfolio portfolio, bool ownAdapter = true)

Parameters

underlyngMarketDataAdapter TUnderlyingMarketDataAdapter

IMessageAdapter, through which market data will be got.

securityProvider ISecurityProvider

The provider of information about instruments.

portfolio Portfolio

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

ownAdapter bool

Track the connection underlyngMarketDataAdapter lifetime.

Properties

UnderlyngMarketDataAdapter

IMessageAdapter, through which market data will be got.

public TUnderlyingMarketDataAdapter UnderlyngMarketDataAdapter { get; }

Property Value

TUnderlyingMarketDataAdapter