Click or drag to resize

Extended settings

Extended settings of HistoryEmulationConnector.

Even if the strategy is tested on the candles, it is necessary to subscribe to the tick trades:

C#
_connector.SubscribeTrades(security);

If the strategy needs the order books, it is necessary to subscribe to the order books:

C#
_connector.SubscribeMarketDepth(security);

If there are no order books, then to check the working ability of strategies that need order books, it is possible to enable the generation:

C#
var mdGenerator = new TrendMarketDepthGenerator(connector.GetSecurityId(security));
_connector.MarketDataAdapter.SendInMessage(new GeneratorMessage
{
    IsSubscribe = true,
    Generator = mdGenerator
});