BogdanIvaniuk wrote:
Is it possible to load own historical data (for example, from database) and tests strategies on it? If it possible, how can I load this data, generate onTick events and calculate indicators?
At current API implementation it is not possible to use your own, custom historical data.
BogdanIvaniuk wrote:
Do you have some code examples with same functionality?
We don't have such examples at the moment. It is possible to implement it, but it would require a reasonable amount of coding. To outline, one would need to do the follwowing:
1) Make a mock implementation of IContext and its relevant interfaces (in this case IHistory, IIndicators).
2) Make mock implementations of related interfaces (e.g. ITick, IBar, IIndicator, IIndicatorInfo).
3) Make your own strategy running engine, that would pass the custom tick and bar data to the strategy and would run the strategy itself.
4) Also you would need to ensure that IHistory and IIndicators use the same data that you pass to the strategy.