Trading Algorithm Backtesting.
- First step is to configure the
config.jsonfile and provide the required parameters i.e.stockDataURL,scannerandscanningURL. These 3 are the mandatory values to be provide to work with AlgoTradingBackTesting. - Now update the
getCandidatefunction infunctions.selectionFunction.pyas per your requirement. This function is used to fetch the candidate Stocks on which the backtest will run.
YES, Now switch to AlgoTradingBackTesting directory and run python ./backtesting/WeekMonthBullishStockRun.py --cache --file ./backtesting/DayWeekMonthBullish.csv
--cache: This parameter enables to save and use stocks data (open, close, volume etc) as cache inbacktesting/cachefolder which prevent multiple request to APIs and saves your time and money.--file <csv file>: It will read backtesting configurations from csv file provided and can run backtest with multiple configured values.