Hello,
I am trying to run a simple SMA strategy on the converted candles using HistoryEmulationConnector on the Data folder. I am specifially using the sample code in the Lesson Video 8 - TestingAndTrading sample.
The sample works fine and shows the PnL curve when using the sample code and sample data provided with the examples.
string path = Path.GetFullPath(@"........\History");
((LocalMarketDataDrive)storage.DefaultDrive).Path = path;
// создаем инструмент для тестирования
_security = new Security
{
Id = "RIM5@FORTS",
Code = "RIM5",
Name = "RTS-6.15",
PriceStep = 10,
StepPrice = 2,
Board = ExchangeBoard.Forts
};
When I change the code to point to the converted candles data folder, it does not work.
string path = Path.GetFullPath(@"........\History");
string path = Path.GetFullPath(@"C:\Data\NETProjects\StockSharp\ExampleStrategy\CandleConverter\bin");
*_security = new Security
{
Id = "ACCN@NYSE",
Code = "ACCN",
Name = "ACCN",
PriceStep = 10,
StepPrice = 2,
Board = ExchangeBoard.Nyse
};
The strategy just does not execute. It does not hit the code for Onstarted of strategy and ProcessCandle.
Please advise what is missing in the data that is converted.
Thank you!