Documentation for the TradeHub projects
The backtesting framework allows to test strategies using historical data.
There is an example CLI project included to help you understand how to use the backtesting framework.
The backtest needs a Portfolio objects to work with (can be an empty portfolio or a portfolio that already has an history). Then it needs the stock to backtest and the strategy to run each tick.
A strategy is a C# file that implements the ITradingStrategy interface. It contains a single public method Run that gets executed on each tick.
The simulation can be run all at once or step by step. In the latter, it is possible to observe the simulation’s behaviour after each tick and organically tweak the strategy to better perform.