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.

2.1 backtesting

Find your preferred strategy and click “Select”.

2.2 backtesting (1)

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”.

2.3 backtesting
  • Explore the other tabs in this section:

2.3 backtesting (1)
  • 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.
2.3 backtesting (2)
  • “Buy Settings” presents all the buy order parameters that will command your Machinas trading actions:

2.3 backtesting (3)
  • Easily set up your Buy amounts with percentages:

2.3 backtesting
  • 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!

2.3 backtesting (1)
  • Configure a Stop Loss, “a smooth sea never made a skilled sailor”.

2.3 backtesting (2)
  • 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.

2.3 backtesting (3)
  • Select the “Auto Close” option to sell your position automatically after a certain period of time.

2.3 backtesting (4)
  • 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. 

2.3 backtesting (5)

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, the period of backtesting and the results compared in two ways:
2.3 backtesting (6)

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.

2.3 backtesting (8)

How can we help?