freqtrade-buyreasons
A script to parse and display buy_tag and sell_reason for freqtrade backtesting trades
Usage
Copy the buy_reasons.py script into your freqtrade/scripts folder. You then need to backtest with the --export options enabled in freqtrade so that this script has the right data to work with:
freqtrade backtesting -c
Then you can run:
buy_reasons.py -c
The -l
option is the same as the --datadir
option in freqtrade, in case you have your downloaded historic data in a different folder to user_data/data/
Example:
buy_reasons.py -c my_config.json -s DoNothingStrategy -t 20211001- -g0,1,2