Advanced Tools: Backtester & Tax Center
ABFutureBot includes powerful, dedicated tools to help you refine your strategies and manage your finances. These are designed to give you a professional-grade edge in your trading.
The Backtester
The backtester is an interactive simulation environment where you can test your trading strategies against historical price data.
Purpose
To validate a strategy's potential performance and fine-tune its parameters before risking real capital. It answers the question: "How would this exact configuration have performed over the last year?"
How to Use It
- Load Settings: You can either load the exact configuration from one of your existing bots or select "Custom Simulation" to set all parameters manually.
- Set Parameters: Define the strategy, trading pair, interval, risk ranking, and other settings you wish to test.
- Run Simulation: The backtesting engine fetches deep historical data from the exchange and runs your chosen strategy against it, candle by candle.
Interpreting the Results
- Chart: The main chart displays the price history, annotated with BUY (▲) and SELL (▼) markers at the exact point a trade would have occurred. The secondary chart shows the corresponding indicator (e.g., MACD or RSI) values.
- Performance Metrics: Key statistics are displayed, including:
- Final Balance & PnL: The absolute and percentage profit or loss over the simulation period.
- Wins/Losses: The total number of profitable vs. unprofitable trades.
- Max Drawdown: The largest percentage drop from a portfolio peak to a subsequent trough. This is a crucial measure of risk.
- Sharpe & Sortino Ratios: Professional metrics for risk-adjusted return. A higher number is better, with a Sharpe > 1 or Sortino > 2 generally considered excellent.
The Tax Center
The Tax Center is a utility designed to simplify your annual tax reporting obligations.
Purpose
To automatically calculate capital gains and losses from your trading activity across all configured wallets.
How to Use It
- Select Wallets: Choose which wallets (Main Account and/or specific bots) you want to include in the report.
- Set Date Range: Define the tax year or custom period for which you want to generate the report.
- Generate Report: The tool fetches the complete trade history for the selected wallets and period. It then processes this history, matching every sell order to its corresponding buy order to calculate the precise capital gain or loss for each closed position.
Output
A downloadable .zip file containing multiple CSV reports:
full_trade_history.csv: A consolidated list of every single trade.capital_gains_summary.csv: The main report, detailing each closed position, its cost basis, proceeds, and the resulting gain or loss.tax_year_summary.csv: A high-level summary of your total taxable gains, allowable losses, and estimated tax liability for the period.
This tool provides a clear, auditable trail of your trading activity, making tax time significantly less stressful.