# Freqtrade Experiment This directory keeps Freqtrade isolated from the main OKX research code. It is for cross-checking one strategy first: `BTC RSI2 Guarded 15m`. Export cached OKX candles: ```bash uv run python scripts/export_freqtrade_data.py --symbol BTC-USDT-SWAP --bar 15m ``` Run with a local Freqtrade installation: ```bash freqtrade backtesting \ --config freqtrade/config-okx-futures.json \ --userdir freqtrade/user_data \ --strategy BtcRsi2Guarded \ --timeframe 15m \ --timerange 20230101- ``` The first comparison target is the existing report row: ```text BTC RSI2 Guarded 15m, 3y return around 102.88% before Freqtrade model differences. ``` Freqtrade's accounting model is not identical to the current research script. Treat this as an execution-framework comparison, not a byte-for-byte backtest replacement.