{"id":5416,"date":"2022-05-20T17:16:32","date_gmt":"2022-05-20T09:16:32","guid":{"rendered":"https:\/\/daily.investagrams.com\/?p=5416"},"modified":"2022-05-20T17:16:33","modified_gmt":"2022-05-20T09:16:33","slug":"how-to-turn-back-the-clock-and-backtest-your-strategies","status":"publish","type":"post","link":"https:\/\/www.investagrams.com\/daily\/2022\/05\/how-to-turn-back-the-clock-and-backtest-your-strategies\/","title":{"rendered":"How to Turn Back the Clock and Backtest Your Strategies"},"content":{"rendered":"\n<p>Whenever we close our trades, we will often think to ourselves &#8211; could I have taken more profits? Would there be a way for me to have a better entry? If I did this or that more consistently, would it have been better for my portfolio?&nbsp;<\/p>\n\n\n\n<p>There will always be things we can improve on, and asking these questions is a good first step. In order to really hone our edge and become traders, we have to take the next step and that is to backtest our system. Whether it be for missed trades or testing different approaches to your past trades, backtesting lets us test changes to our strategies. With the InvestaBacktest, we can simulate going back in time before any moves could have happened.&nbsp;<\/p>\n\n\n\n<p>Let\u2019s take a look at how we can effectively use the InvestaBacktest to hone our trading systems.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Choose a stock and date to go back to<\/li><\/ol>\n\n\n\n<p>There are two ways we can look for a stock and time period to test. The first way is to go back to trades we missed and see if our strategy is suited for catching those kinds of plays.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/UZMlohXcbY0peHvzhy3XDxoqkrzcKp8BdLafGJueQpXk5ZPhXN48dZFtkcuIC0cH7Y44BRL04zG_HZAyeUjjxo9ZSRgAn3aIDm9-7JqpI5C7PVLNKLd1EAZRVBfCu6capx9YyNv07rWR_1jVWw\" alt=\"\"\/><\/figure><\/div>\n\n\n\n<p>Here we will just input the stock and the date before the move we missed so that we can simulate what the chart would look like before the move itself. Since we know how things will unfold, we have to be as objective as possible and really stick to the strategy we want to test.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/17IjHfIVxlrsTxbsAqDwe6TCmQl2ESGLAiilXQnMaI0DhaYOEJ8Hr_wK5OyrTIXSPOvIIjIfUYwliDMHJK26OPprblSN9_bjxuGa8lJAng6XjjUQJVdZZ7vSiYw6CdThQcbIy8FUm5CCEtn7LA\" alt=\"\"\/><\/figure><\/div>\n\n\n\n<p>Another method could be selecting random stocks and picking specific market environments to trade in. Whenever we stress test our strategies, we should always be aware of what is happening to the market index as our strategies should naturally change whenever broad market conditions change. Even if, for example, we have a solid system for breakouts, it will most likely crumble if trades are forced during bear markets. Of course, there is merit in seeing how systems fail in bad environments, but we won\u2019t be able to get any insights if we\u2019re just randomly backtesting in an unknown environment.&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li>Set the indicators for the strategy to be tested<\/li><\/ol>\n\n\n\n<p>Once we have the set of data we want to backtest, we then input the indicators that we would be using for the strategy to be tested. No extra fuss whatsoever, it will be exactly as if we went back in time when we see the chart.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/V8ulebeLMW1_G9l6jBVf2YAYCcqoXlCwtZexfWkL33gT6jF96rrkwWyw35VordLkVJxKtQFxb94VwPt4yFzN0PhpbSIwdBKlShv0mUzO_sfk1VcRrqpT--1XTfwJG9ha0eP6e3a09kFSNPJUCg\" alt=\"\"\/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li>Trade as if we don\u2019t know what will happen<\/li><\/ol>\n\n\n\n<p>When everything is all set and ready to go, we now just have to trade and see how we perform. The execution is simple, we can just click the \u201cNEXT DAY\u201d (shortcut: Q) button to go one candlestick forward, and click the \u201cBUY\/SELL\u201d (shortcut: E) button to buy or sell.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/EZ33ajCclQ_buD6OZSg5QC3l4_ObqJOcg0Tc1Z6wUpFTl44JB98kpBuPLc30929dFYmbRndvMWu8kK2Ck1erfdfD2SQdyJalCJNqJ2Y8iS0rKeMOaRN1ansRDylIDcBMzATOBKrW77AZzF8kVw\" alt=\"\"\/><\/figure><\/div>\n\n\n\n<p>Although it might seem like a small thing, the InvestaBacktest\u2019s feature of not knowing what will exactly happen with the next candle really helps us be more objective. Compare the above picture to the one below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/qe9GBmWKS8qwR__rfEyg_0DgoD6LDpcn7GBm44r8YILZNPVBoi7z5QL3DRhrhR1J5Wbo5uSrexIoFWunCY2qBVdJOuHLf468_exElzRYfSZmGaTZjY8S1okrP94vtVRYHsjxRbiT5d3pjznD8g\" alt=\"\"\/><\/figure>\n\n\n\n<p>Again, we might already know what will happen, but being able to not see the exact movements lets us better fight biases, where we would trade more perfectly just because we already know what the next candle looks like<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\"><li>Check how the strategy performs<\/li><\/ol>\n\n\n\n<p>Lastly, once we have backtested as much as we want, it\u2019s now time to check our results. By clicking the \u201cEnd Backtest\u201d button, the test will be stopped and our trade history along with some statistics will be shown.<\/p>\n\n\n\n<p class=\"has-text-align-center\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"511\" src=\"https:\/\/lh6.googleusercontent.com\/-lO2G7n5yjIzybbENHlovGUlNypWGWHPv5LvSYkCIgxI526BdiQ50ZXLiIGFu8NPpLHHOOVvGiYXhwFZPt6cJQ5obsjTBlNZiIa5fY2SsydnkOGYXMvVxKh2aNxQOqwTi_BPV7phOHPsYYALTQ\"><\/p>\n\n\n\n<p>We can see how long our trades lasted, how much we gained per trade, what our total win rate is, and how much our total gain is.<\/p>\n\n\n\n<p>One last thing that you should be wary about when backtesting is that there is such a thing called the optimization bias. Many traders want to have the perfect trading system, so while they build and backtest their system they keep on adding more and more complex rules or indicators to have the perfect entries and exits. Having an incredible system is good, but it is important to know that there is no holy grail in trading. All systems will be subject to losses, and if a system seems too perfect, it will likely have been subjected to lots of optimizations that make it unrealistic to trade with in real-time. The rule of thumb to remember is to keep things as simple as possible.<\/p>\n\n\n\n<p>As you can see, it is really simple to use the InvestaBacktest as we wouldn\u2019t need to know anything about coding as with what other programs use. We would only need an InvestaPrime+ subscription at the least along with our trading system to test.&nbsp;<\/p>\n\n\n\n<p>Want to know more about what we offer? Head on over to the\u00a0<a href=\"https:\/\/www.investagrams.com\/prime\">InvestaPrime<\/a>\u00a0landing page to look at all the features that we provide to our subscribers!<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.investagrams.com\/prime\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/dailymedia.investagrams.com\/investadaily\/2022\/05\/Raffle-v2-1024x1024.png\" alt=\"\" class=\"wp-image-5418\" srcset=\"https:\/\/dailymedia.investagrams.com\/investadaily\/2022\/05\/Raffle-v2-1024x1024.png 1024w, https:\/\/dailymedia.investagrams.com\/investadaily\/2022\/05\/Raffle-v2-300x300.png 300w, https:\/\/dailymedia.investagrams.com\/investadaily\/2022\/05\/Raffle-v2-150x150.png 150w, https:\/\/dailymedia.investagrams.com\/investadaily\/2022\/05\/Raffle-v2-768x768.png 768w, https:\/\/dailymedia.investagrams.com\/investadaily\/2022\/05\/Raffle-v2-610x610.png 610w, https:\/\/dailymedia.investagrams.com\/investadaily\/2022\/05\/Raffle-v2-640x640.png 640w, https:\/\/dailymedia.investagrams.com\/investadaily\/2022\/05\/Raffle-v2-400x400.png 400w, https:\/\/dailymedia.investagrams.com\/investadaily\/2022\/05\/Raffle-v2.png 1080w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-reaction-buttons\" ><\/div><div style=\"margin-top: 30px; margin-bottom: 50px;\" class=\"sharethis-inline-share-buttons\" ><\/div><span class=\"et_bloom_bottom_trigger\"><\/span>","protected":false},"excerpt":{"rendered":"<p>Whenever we close our trades, we will often think to ourselves &#8211; could I have taken more profits? Would there be a way for me to have a better entry? If I did this or that more consistently, would it have been better for my portfolio?&nbsp; There will always be things we can improve on, [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":5417,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"","footnotes":""},"categories":[33,36,34],"tags":[62,46,55,44,128,45,48],"class_list":["post-5416","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-featured-1","category-how-to-advice","category-latest-posts","tag-charting","tag-how-to","tag-investagrams","tag-investing","tag-philippine-stock-market","tag-stock-market","tag-stock-trading"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/posts\/5416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/comments?post=5416"}],"version-history":[{"count":3,"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/posts\/5416\/revisions"}],"predecessor-version":[{"id":5421,"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/posts\/5416\/revisions\/5421"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/media\/5417"}],"wp:attachment":[{"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/media?parent=5416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/categories?post=5416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/tags?post=5416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}