1. Home
  2. Docs
  3. Knowledge Base
  4. Getting Started
  5. 2.3 Backtesting

2.3 Backtesting

Backtesting is a great way for investors to assess how a particular trading strategy might have performed in generating potential returns on an investment during a specified historical period. In order to analyze your strategy click on Backtesting and explore the strategies available – or build your own.

You can also filter backtesting strategies based on its programming language.

screenshot 2024 06 30 at 08.37.03

Find your preferred strategy and click “Select”.

screenshot 2024 06 30 at 08.40.48

When you select your strategy a new configuration area will open, this area has two sections: 

  • The script editor for those who wish to build their strategy using C#, F# or Python. Here you can start editing your strategy right away.

  • The Launcher settings which allow you to select different parameters to test your strategy.

When you have completed the configuration of your settings proceed to click on “Run Backtest”.

screenshot 2024 06 30 at 08.46.40
  • Explore the other tabs in this section:

screenshot 2024 06 30 at 09.02.33
  • You will find more parameters to fine-tune your backtesting strategy. Let´s explore each one of them:

    “Base” offers the basic Buy and Sell activation buttons for your backtesting exercise.
screenshot 2024 06 30 at 09.06.44
  • “Buy Settings” presents all the buy order parameters that will command your Machinas trading actions:

screenshot 2024 06 30 at 09.14.53
  • Easily set up your Buy amounts with percentages:

screenshot 2024 06 30 at 09.18.02
  • Update your “Sell Settings” in order to trigger orders based on your preferred strategic parameters, i.e. try your backtesting strategy with sell orders that only trigger when a certain profit target is hit or create a combined strategy using a “Max Open Time Sell” order and a “Profit Target”. Get creative, test away!

screenshot 2024 06 30 at 09.20.40
  • Configure a Stop Loss, “a smooth sea never made a skilled sailor”.

screenshot 2024 06 30 at 09.23.38
  • Here enable your “Trailing Stop Loss”: 

  • trailing stop is an order type designed to lock in profits or limit losses as a trade moves favourably. Trailing stops only move if the price moves favourably.

screenshot 2024 06 30 at 09.44.03
  • Select the “Auto Close” option to sell your position automatically after a certain period of time.

screenshot 2024 06 30 at 09.46.58
  • You can always “Export” or “Reset” your settings, and when your strategy is ready click the “Run” button to fire the back testing engine and wait for the results. 

screenshot 2024 06 30 at 09.49.04

The results of your backtesting strategy will load in a few seconds, review the data in the following order:

  • The header will show you the pair you are trading, to the right you will find the period of backtesting and the results compared in two ways.
  • The bottom area will show you statistics of your trading activity.
screenshot 2024 06 30 at 10.57.02

Focus closely on the data highlighted by the arrows, which present two crucial readings:

  • Left indicator: expresses the strategy´s performance or realized profit/loss (open positions are not yet included)

  • Right indicator: expresses the market´s performance during the selected period.

Apply these findings judiciously, bearing in mind that every aspect of your backtesting strategy can significantly influence the outcomes. Explore a variety of scenarios to optimize your strategy.

screenshot 2024 06 30 at 11.05.42

How can we help?