428-backtester/scripts/plot.sh
Artemii Peretiachenko 99de26e7f0 Add private Freqtrade scaffold for partner backtesting.
Ship SampleStrategy and Integral workflow scripts without proprietary V15 logic, Pine, or run results.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 23:55:44 +02:00

32 lines
827 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
# shellcheck disable=SC1091
source "$(dirname "$0")/_env.sh"
TIMERANGE="${TIMERANGE:-20250101-20250201}"
PAIR="${PAIR:-BTC/USDT:USDT}"
STRATEGY="${STRATEGY:-SampleStrategy}"
mkdir -p user_data/plot
echo "==> plot-profit (equity curve)"
freqtrade plot-profit \
--config user_data/config.json \
--strategy "${STRATEGY}" \
--timerange "${TIMERANGE}" \
--timeframe 15m \
"$@"
echo "==> trade chart (price / signals / SL·TP / fills / volume)"
PYTHON_BIN="${ROOT}/.venv/bin/python"
if [[ ! -x "${PYTHON_BIN}" ]]; then
PYTHON_BIN="python3"
fi
"${PYTHON_BIN}" "$(dirname "$0")/plot_trades_chart.py" \
--config user_data/config.json \
--strategy "${STRATEGY}" \
--pair "${PAIR}" \
--timerange "${TIMERANGE}" \
--timeframe 15m
echo "HTML plots are under user_data/plot/"