{"id":693,"date":"2014-11-10T16:50:20","date_gmt":"2014-11-10T21:50:20","guid":{"rendered":"http:\/\/www.amibroker.com\/kb\/?p=693"},"modified":"2014-12-04T15:58:05","modified_gmt":"2014-12-04T20:58:05","slug":"troubleshooting-procedure-when-backtest-shows-no-trades","status":"publish","type":"post","link":"https:\/\/www.amibroker.com\/wordpress\/kb\/2014\/11\/10\/troubleshooting-procedure-when-backtest-shows-no-trades\/","title":{"rendered":"Troubleshooting procedure when backtest shows no trades"},"content":{"rendered":"

When we run backtest and get no results at all – there may be several reasons of such behaviour. The main potential causes are the following:<\/p>

  1. our system does not generate any entry signals within the tested range
  2. our settings do not allow the backtester to take any trades<\/ol>

    To verify if we are getting any signals – the first thing to do is to run a Scan<\/strong>. This allows us to check if we are getting any Buy<\/strong> or Short<\/strong> signals at all. If there are none, then we need to check the formula and make sure that data interval we are working on are correct (in Periodicity<\/strong> in Analysis->Settings->General<\/strong>).<\/p>

    If Scan<\/strong> works fine and returns trading signals, but backtester still does not produce any output, it usually means that the settings are wrong, i.e. the constraints set in the settings prevent trades from being opened mainly because requested position size is too big or too small.<\/p>

    To check what is going on, it is best to switch Report<\/strong> mode to Detailed log<\/strong> and re-run backtest.<\/p>

    \"Report<\/p>

    Once you run backtest in Detailed Log<\/strong> mode you will be able to find out exact reasons why trades can not be opened for each and every bar:<\/p>

    \"Detailed<\/p>

    Using the following settings may be helpful to minimize chances of not entering trades because of various constraints:<\/p>

    In Analysis->Settings<\/strong>, General<\/strong> tab:<\/p>

    1. check if Initial Equity<\/strong> is high enough
    2. set Periodicity to the appropriate interval
    3. Allow position size shrinking<\/strong> – turn it On<\/strong>
    4. Round Lot Size<\/strong> – set it to 0
    5. in Min. Shares box<\/strong> enter 0.01
    6. in Min. pos. value<\/strong> enter 0
    7. Account Margin<\/strong> – set it to 100<\/ol>

      \"Settings<\/p>

      in Portfolio<\/strong> tab, enter 0 in Limit trade size as % of entry bar volume<\/strong> box.<\/p>

      \"Settings<\/p>","protected":false},"excerpt":{"rendered":"

      When we run backtest and get no results at all – there may be several reasons of such behaviour. The main potential causes are the following:our system does not generate any entry signals within the tested rangeour settings do not allow the backtester to take any tradesTo verify if we are getting any signals – […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[41],"tags":[14,15,16,24],"_links":{"self":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/693"}],"collection":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/comments?post=693"}],"version-history":[{"count":2,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/693\/revisions"}],"predecessor-version":[{"id":700,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/693\/revisions\/700"}],"wp:attachment":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/media?parent=693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/categories?post=693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/tags?post=693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}