Trading Algorithm Backtesting.
- First step is to configure the
config.json
file and provide the required parameters i.e.stockDataURL
,scanner
andscanningURL
. These 3 are the mandatory values to be provide to work with AlgoTradingBackTesting. - Now update the
getCandidate
function infunctions.selectionFunction.py
as 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/cache
folder 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.