backtest.sh
This commit is contained in:
parent
2926295201
commit
e2143736fa
@ -1,4 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Parse command line arguments
|
||||||
|
START_DATE=${1:-$(date -d "2 days ago" +"%Y%m%d")}
|
||||||
|
END_DATE=${2:-$(date -d "tomorrow" +"%Y%m%d")}
|
||||||
|
|
||||||
cd ../
|
cd ../
|
||||||
source .venv/bin/activate
|
source .venv/bin/activate
|
||||||
rm -rf user_data/models/*
|
rm -rf user_data/models/*
|
||||||
@ -11,11 +16,11 @@ freqtrade backtesting \
|
|||||||
--config config_examples/theforcev7.json \
|
--config config_examples/theforcev7.json \
|
||||||
--strategy-path ./freqtrade/templates \
|
--strategy-path ./freqtrade/templates \
|
||||||
--strategy TheForceV7 \
|
--strategy TheForceV7 \
|
||||||
--timerange 20250510-20250513 \
|
--timerange ${START_DATE}-${END_DATE} \
|
||||||
--breakdown week month \
|
--breakdown week month \
|
||||||
--export trades \
|
--export trades \
|
||||||
--fee 0.0008 \
|
--fee 0.0008 \
|
||||||
--cache none > output.log
|
--cache none >output.log 2>&1
|
||||||
sed -i 's/\x1B\[[0-9;]*m//g' output.log
|
sed -i 's/\x1B\[[0-9;]*m//g' output.log
|
||||||
python3 filter.py
|
python3 filter.py
|
||||||
|
|
||||||
@ -42,4 +47,4 @@ python3 filter.py
|
|||||||
cp output_filted.log result/ -f
|
cp output_filted.log result/ -f
|
||||||
cd tools/
|
cd tools/
|
||||||
python tradestocsv.py
|
python tradestocsv.py
|
||||||
cd -
|
cd ../
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user