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#
trader.RegisterTrades(security);

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

C#
trader.RegisterMarketDepth(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));
trader.RegisterMarketDepth(mdGenerator);