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
-
IPersistableICloneable<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
TUnderlyingMarketDataAdapterIMessageAdapter, through which market data will be got.
securityProvider
ISecurityProviderThe 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
TUnderlyingMarketDataAdapterIMessageAdapter, through which market data will be got.
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.
ownAdapter
boolTrack 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
TUnderlyingMarketDataAdapterIMessageAdapter, through which market data will be got.
securityProvider
ISecurityProviderThe provider of information about instruments.
portfolio
PortfolioThe portfolio to be used to register orders. If value is not given, the portfolio with default name Simulator will be created.
ownAdapter
boolTrack the connection
underlyngMarketDataAdapter
lifetime.
Properties
UnderlyngMarketDataAdapter
IMessageAdapter, through which market data will be got.
public TUnderlyingMarketDataAdapter UnderlyngMarketDataAdapter { get; }
Property Value
- TUnderlyingMarketDataAdapter