Skip to content

Backtests

Mihir Shrestha edited this page Dec 25, 2021 · 5 revisions

How do I run a backtest?

To run a backtest, visit the backtest tab and configure your backtest settings.

  1. Pick the ticker you'd like to backtest.
  2. Pick the data interval that you'd like to backtest with. (recommended to use 1 minute for most accurate results)
  3. Pick the strategy data interval. This will be the data interval that your simulation or live bot will use for calculating technical indicators.
  4. Pick your starting balance. (this has no real effect since bot will go all in regardless)
  5. Pick your data precision. This is the accuracy to which the bot will perform calculations and round calculations.
  6. Select whether or not you'd like to log trade information in your results file. (recommended to leave it on)
  7. Select whether or not you'd like to backtest margin trading as well.
  8. Visit the backtest period tab, and specify the dates you'd like to backtest. By default, this is the entirety of the data provided.

How do I get the data?

You can either download the data which the bot will take care of, or you can import your own CSV. Make sure that the CSV is in line with the CSV you get when you download it from the bot.

How do I get strategies?

You'll need to create your own strategies. Visit the strategy page for more information regarding that.

Can I backtest a hold?

Yes. If you don't specify any strategies, the bot will only simulate a hold and show the end result.

Algobot Wiki

Clone this wiki locally