---
id: module.backtest
page_type: modules_article
title: "\"BackTest\" Extension"
description: "The BackTest module allows you to test automated strategies and practice manual trading using historical exchange data. It is suitable for behavior analysis and subsequent strategy optimization."
section: modules
category: null
url: https://moonbot.eu/en/moonbot-pro/modules/backtest?format=md
locale: en
alternate_ru: https://moonbot.eu/moonbot-pro/modules/backtest?format=md
alternate_zh: https://moonbot.eu/zh/moonbot-pro/modules/backtest?format=md
parent: https://moonbot.eu/en/moonbot-pro?format=md
previous: https://moonbot.eu/en/moonbot-pro/modules/moon-streamer?format=md
next: https://moonbot.eu/en/moonbot-pro/modules/arbitrage?format=md
status: published
updated_at: 2026-11-16T12:15:17+03:00
---

# "BackTest" Extension

### Testing trading strategies on Moonbot: backtesting and optimisation using historical data

**The Backtest module** is designed to test trading strategies and practise manual trading skills using historical trade data from various exchanges. It is a key tool for testing hypotheses: it allows you to understand how a strategy would have performed under past market conditions without risking real funds.

This module is only available in **the PRO version of the Moonbot terminal** and can be activated in the [Moon Credits](https://moonbot.eu/en/documentation/bottom-area-with-service-information/moon-credits?format=md) window for **500 credits**.

Backtesting is not a guarantee of future results, but a way of assessing a strategy’s resilience to different market conditions: trends, sideways markets and high volatility. In Moonbot, backtesting is particularly useful for strategies focused on cryptocurrencies: it takes into account the specific characteristics of these assets – sharp price movements, slippage, wide spreads and variable liquidity. It is therefore accurate to describe cryptocurrency backtesting as a specific scenario that requires additional factors to be taken into account compared with traditional markets.

### How the cryptocurrency strategy tester works on Moonbot

Backtest is a cryptocurrency strategy tester on Moonbot which, in emulation mode, simulates the execution of orders based on historical ticks and order books, making the simulation as close as possible to real-world conditions, thereby allowing you to subsequently adjust your strategy parameters and trading approach.

⚠️ It is important to understand that even when using the same historical data, the results of different backtests may vary. In scalping, **there is no guarantee that the same result will be achieved** when backtesting the same historical market data a second time.

In short: just as two identical Moonbot terminals running the same strategies on different VDSs **will not trade in exactly the same way on the live market**, so too will two back-test runs using the same strategy not produce results that are exactly the same.

### The aims and objectives of backtesting: what can actually be tested

Backtesting in scalping and within the Moonbot terminal is not used to accurately replicate results, but rather to analyse the overall behaviour of strategies in different market conditions and to optimise them subsequently. It can be used to:

- Check the logic of the strategy. Ensure that signals are generated correctly and that there are no logical errors (for example, opening opposing positions at the same time).
- Assess its resilience. Examine how the strategy performs in different market conditions: strong trends, sideways markets, sharp price movements and low liquidity.
- Adjust the parameters. Test different values for stop-losses, take-profits and other settings, and select the optimal set of settings.
- Identify bottlenecks. Find situations in which the strategy loses money: frequent false signals, large slippage, and poor entry points.
- Compare options. Test several versions of the same strategy and select the best one based on key metrics: profit factor, win rate and maximum drawdown.

Testing trading strategies through backtesting is therefore an iterative process: you run a simulation, analyse the results, adjust the strategy and repeat the test.

### Practical guidance on conducting a backtest

- **Choose representative time periods.** When testing cryptocurrencies, it is important to include both calm periods and periods of sharp price movements (such as crashes or pumps). This will show how resilient the strategy is to extreme conditions.
- **Take commissions and slippage into account.** In Moonbot, these parameters are already factored into the simulation, but when interpreting the results, pay attention to the proportion of costs relative to total profit.
- **Do not optimise "blindly".** Tweaking parameters to maximise profit on a single section of the historical data (overfitting) often results in the strategy ceasing to work on new data. It is better to look for stable settings that deliver good results across several different periods.
- **Don’t just look at profits.** Other metrics are important too: maximum drawdown, recovery ratio, and the stability of returns over different periods. A strategy with high profits but a 50 per cent drawdown may not be suitable for your risk profile.
- **Test on different timeframes and pairs.** Cryptocurrency pairs vary greatly in terms of liquidity and volatility: what works on BTC/USDT may not work on a pair with low liquidity.

### Example of a strategy testing scenario

Let’s say you want to test a scalping strategy on a particular cryptocurrency:

1. **Preparation.** From the Moonbot menu, select ‘BackTest’; in the BackTest window, load the relevant .bin file containing the section of the chart on which the backtesting is to be carried out.
2. **Launch.** Activate the relevant strategies from the bin file that will react to volatility on this chart, then click the Start button. Please note! Backtesting always takes place in simulation mode and does not use your real deposit.
3. **Analysis.** Look at the chart and visually assess the entry and exit points for the position. View the report: total profit, number of trades.
4. **Optimisation.** Adjust the parameters (for example, tighten the filters, adjust the detection settings, change the take-profit and stop-loss levels, etc.) and run a new simulation.
5. **Validation.** Test the improved version on a different historical period, with similar volatility scenarios (not used in the optimisation), to ensure that the improvements were not due to chance and that the strategy generates more profitable trades across a wider range of coins.

This cycle forms the basis of sound testing of trading strategies: from hypothesis to testing, analysis and refinement.

### Common mistakes when using backtesting

- Expecting results to be exactly the same. As already noted, even two backtests run on the same data may produce different results – particularly in scalping. A backtest provides a probabilistic estimate, not a guarantee.
- Ignoring market conditions. A strategy may work very well in a trending market, but perform poorly in a ranging market. It is important to test it under different market conditions.
- Over-fitting. The desire to maximise profits on a single segment of historical data often renders the strategy ineffective on new data.
- Underestimating costs. Commissions and slippage can "eat into" a significant portion of your profits, particularly when trading frequently.

Understanding these nuances helps you to use the cryptocurrency strategy tester not as a tool for finding the "perfect" strategy, but as a means of objectively evaluating and improving existing approaches.

For a more detailed overview of the BackTest module and how it works, we recommend referring to the instructions: 🔗 ["Menu" button → BackTest](https://moonbot.eu/en/documentation/menu-button/backtest?format=md)

## Navigation

Path: [Main](https://moonbot.eu/en?format=md) / [Moonbot PRO](https://moonbot.eu/en/moonbot-pro?format=md) / Pro-version additional modules

Parent section: [Moonbot PRO](https://moonbot.eu/en/moonbot-pro?format=md)

Previous: ["Moon Streamer" Extension](https://moonbot.eu/en/moonbot-pro/modules/moon-streamer?format=md)

Next: ["Arbitrage Prices" Extension](https://moonbot.eu/en/moonbot-pro/modules/arbitrage?format=md)

## Related

- ["Arbitrage Prices" Extension](https://moonbot.eu/en/moonbot-pro/modules/arbitrage?format=md)
- ["Moon News" Extension](https://moonbot.eu/en/moonbot-pro/modules/moon-news?format=md)
- [MoonBonus](https://moonbot.eu/en/moonbot-pro/modules/moonbonus?format=md)
