Backtesting Framework
Last updated
Last updated
The backtesting engine was designed to simulate trading conditions with high fidelity, incorporating multiple market frictions and operational constraints:
Funding Rate Integration:
8-hour funding rate payments using historical Binance data
Funding payments calculated as:
Transaction Costs:
Base taker fee rate: 5 basis points (0.05%)
Additional execution costs tested: 25 basis points (0.25%)
Total transaction cost per trade:
Execution Mechanics:
Next-bar execution to prevent look-ahead bias
Price impact simulation through fixed cost addition
Variable execution delays: 1, 5, 15 and 30 minutes
Binance minimum volume constraints in both BTC and USD terms
Margin Requirements:
Margin requirement monitoring through time
Liquidation price tracking and execution