Home»Getting Organized»Essential Guide To Backtesting A Trading Strategy For Free

Essential Guide To Backtesting A Trading Strategy For Free

0
Shares
Pinterest Google+

Over the years, I’ve tried several ways to backtest my trading strategies. Only one backtesting method ended up working for me and I wanted to show you how that works!

But let’s face it: no one has fun backtesting. Ask any trader their level of excitement as they backtest a trading strategy and most of them will reply something along the lines of “quite low”.

However, picture yourself as the owner of an aircraft business; you wouldn’t launch a new plane on the market without knowing for sure that it flies, right?

Same goes with your trading business. One of your role as the owner of that trading business is to ensure that you test your tools so you don’t get surprised when you operate your business live.

How To Go About Backtesting?

There are two basic ways to go about your backtest. The first one involves creating a script that will do the backtesting for you. If you enjoy and/or are good at coding, this might be a good option. The other option consists of manual backtesting, by which you go through the charts yourself and place the trades.

The other option consists of manual backtesting, by which you go through the charts yourself and place the trades.

Below are some advantages of both manual and automated backtesting. The advantages of one are quite simply the disadvantages of the other.

Advantages of going automated

  • It’s time-effective.
  • You can test on many instruments/timeframes easily.
  • It’s simple if you’re good at coding.

Advantages of going manual

  • You get a better understanding of your trade setup and what it can look like.
  • You get more practice, which is useful when trading live.
  • There isn’t much preparation required.
  • More flexible.

Based on this, I strongly recommend going with manual backtesting even though it might take more time. The reason is that you get to gain experience seeing your trade setup in various circumstances. It’s sort of an exercise for when you start to trade live.

For the rest of this article, I’ll assume that you’re not a coder and you want to leverage the advantages of manual backtesting.

So let’s stick to manual!

What Software/Tools To Use?

I’ll say from the start that the easiest way to go about backtesting is to use a software that was designed for backtesting. That’s kind of a shortcut 🙂

Forex Tester 3 is a solid option (at the time of writing this article, they have a Chinese New Year sale), and I also came across Trade Interceptor.

While I have my own copy of Forex Tester, I can’t use it away from home (it’s available only on PC). Whenever I travel with my Mac, I must adapt and that’s why I want to provide you with more alternatives.

That being said, any trading platform (MetaTrader, TradingView, NinjaTrader, etc.) can be used to backtest manually. The only thing you need to do is to scroll back in time and hide the future price movements.

Then, move one candlestick (time-period) at a time until you see a trade setup you would take under your trading strategy. At all times, future price movements should be hidden so you don’t see the outcome of your trade until you agreed you’d take it.

Here are some important tips for TradingView:

TradingView - Backtesting

How To Track Your Backtesting?

This is where I like to do things quite different from most traders. I recommend you watch the video at the beginning of this article to see in action how I track the trades I take in my backtesting.

Here, I’ll just outline the main tools and the process I go through…

The Tool I Use

I am a big fan of Trello, a free web-based tool (also on mobile) that is like having a board with multiple sections in front of you.

I currently have my trading journal in Trello (example here) and I find this much more intuitive than a spreadsheet.

Very recently, though, I started using the same format for my backtesting. I create a Trello board with the following columns:

  1. Winning trades
  2. Losing trades
  3. Not taken

It looks like this:

For the Winning Trades and Losing Trades, I attach a capture taken from TradingView. That’s it! At the end, it’s easy to count how many winning and losing trades you have.

If you are aiming for a Reward-To-Risk of 2:1, have 30 losing trades, and 30 winning trades, for instance, you know that your return will be around (-1X30) + (2X30) = 30R. If you were to risk 1% per trade, that would give you 30%.

In this case, however, the Not Taken column is especially important. Those are the trade setups you’ve come across but haven’t taken for some reason. I attach a capture of the trade and write the reason I didn’t consider this as a valid trade.

Those reasons you’ve identified are going to be the things you need to be very careful about when you get to trade live. If your strategy performs poorly live, it’s probably because you’re taking trades you wouldn’t have taken if you were backtesting. I recommend you write down the reasons why you didn’t take certain trades on your One-Page Trading Plan (free template).

Free Offer: If you use this link, you and I will get the Gold version of Trello for free. That’s a win-win deal!

Your Turn…

What do you think of this backtesting method? Are you currently doing something similar? What is your biggest challenge when it comes to backtesting? Comment below and let’s discuss!

  • Tawaraja Sandra Rajoo

    I’m sorry, but I cannot find the video mentioned in the article. Am I wrong… ?

    • My bad…Still need to film it 🙁 It’ll be done by the end of the day and uploaded tomorrow 🙂

    • Tawaraja, what is one thing you absolutely want to know about backtesting?

  • Michael Gavone

    What do you mean “no one has fun backtesting”? The part of trading that keeps me most excited is trying to think of new ideas and then backtesting them to check their robustness. In fact, I would think a trader would be more likely to follow a system they thought was profitable, if they could code it up and the backrest proves them correct. I didn’t know how to code, don’t like to, and still consider myself an amateur at it. However when you see that 20 year equity curve shows you’re probably on to something, it’s a really good feeling. – Mike Gavone

    • Yeah Michael, I agree with this part. It’s great to see the result of your backtesting. I liked coding a few things myself too in the past and executing them to see their validity.

      However, when it comes to backtesting charts manually, it’s not that much fun. You go through the charts candle by candle. Every person I talked to just wanted to avoid that at first.

      If you’re an exception to this, that’s a great advantage! Keep it up!