Backtesting is a key component of effective trading system development. It is accomplished by reconstructing, with historical data, trades that would have occurred in the past using rules defined by a given strategy. The result offers statistics to gauge the effectiveness of the strategy.
The project is built using TATAMOTORS share price data for 20 years
For custom dataset place the csv file in /data directory and change input_file_path='custom data.csv'
Clone the project
git clone https://github.com/nilesho5apr/Backtest.gitGo to the project directory
cd BacktestCreate virtual enviroment
virtualenv venvInstall dependencies
python3 -m pip install -r requirements.txtRun simulations
python3 main.py --arguments