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, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, IMarketDataProvider, ITransactionProvider, ISecurityProvider, ISecurityMessageProvider, ISubscriptionProvider, ITimeProvider, IPortfolioProvider, IPositionProvider where TUnderlyingMarketDataAdapter : class, IMessageAdapter
Type Parameters
TUnderlyingMarketDataAdapterThe type IMessageAdapter, through which market data will be received.
- Inheritance
-
RealTimeEmulationTrader<TUnderlyingMarketDataAdapter>
- Implements
- Inherited Members
- Extension Methods
-
MarketRuleHelper.WhenPartiallyFinishedCandles<TCandle>(ISubscriptionProvider, Subscription, decimal)
Constructors
RealTimeEmulationTrader(TUnderlyingMarketDataAdapter, ISecurityProvider)
Initializes a new instance of the RealTimeEmulationTrader<TUnderlyingMarketDataAdapter>.
public RealTimeEmulationTrader(TUnderlyingMarketDataAdapter underlyngMarketDataAdapter, ISecurityProvider securityProvider)
Parameters
underlyngMarketDataAdapterTUnderlyingMarketDataAdapterIMessageAdapter, through which market data will be got.
securityProviderISecurityProviderThe 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
underlyngMarketDataAdapterTUnderlyingMarketDataAdapterIMessageAdapter, through which market data will be got.
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.
ownAdapterboolTrack the connection
underlyngMarketDataAdapterlifetime.
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
underlyngMarketDataAdapterTUnderlyingMarketDataAdapterIMessageAdapter, through which market data will be got.
securityProviderISecurityProviderThe provider of information about instruments.
portfolioPortfolioThe portfolio to be used to register orders. If value is not given, the portfolio with default name Simulator will be created.
ownAdapterboolTrack the connection
underlyngMarketDataAdapterlifetime.
Properties
UnderlyngMarketDataAdapter
IMessageAdapter, through which market data will be got.
public TUnderlyingMarketDataAdapter UnderlyngMarketDataAdapter { get; }
Property Value
- TUnderlyingMarketDataAdapter