Skip to main content

Does Gunbot Have Backtesting Capabilities?

· 2 min read

Gunbot includes backtesting so you can run strategies on historical data and review how they might have behaved before risking real funds.

What Is Backtesting and Why Does It Matter?

Backtesting runs a strategy on historical market data to see how it would have performed. It helps validate ideas and refine strategy settings before trading live.

How Gunbot’s Backtesting Feature Works

Gunbot’s backtesting uses the same strategy code and processing logic as live trading, so simulations mirror live behavior as closely as possible.

Key Features of Gunbot Backtesting

  • Realistic Simulations: Historical data is processed to replicate live trading conditions.
  • Two Testing Modes:
    • Standard Backtesting: Uses historical candle data for broad performance coverage.
    • Deep Testing: Uses detailed trade history for more granular results.
  • In-Depth Reporting: Each backtest creates a JSON report with performance metrics, and results also display on the Gunbot dashboard like real trades.

How to Set Up Backtesting in Gunbot

  1. Enable Backfester: Turn on backfester in your Gunbot setup page.
  2. Set Up Starting Balances: Match starting balances to what you plan to trade live.
  3. Choose Your Trading Pair and Timespan: Select the pair and the time range to test under different market conditions.

Analyzing Your Backtesting Results

During a backtest, the dashboard shows results in real time. After completion, the JSON report provides a detailed breakdown of strategy performance and areas to adjust.

Tips for Effective Backtesting

  • Test One Trading Pair at a Time: Isolate strategy performance for a single market.
  • Use Separate Instances: Keep backtesting separate from live trading.
  • Clear Previous Data: Remove old JSON state files before a new test to avoid skewed results.

Final Thoughts

Gunbot’s backtesting helps you validate strategies with historical data and refine settings before going live.