Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    Getting different results from backtesters. Repo in description

    Indicators/Strategies/Analyzers
    2
    3
    94
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      edlg last edited by

      I tried validating a strategy from backtrader using pandas and I cant manage to do it. Im not sure what is the problem. I made a small repo with the code to see if anyone can spot the problem and tell me what im missing. Thanks!

      https://github.com/edlgg/backtesters

      C 1 Reply Last reply Reply Quote 1
      • C
        crazy25000 last edited by

        I ran a simple 2 moving average crossover strategy with a live account and can confirm the results from live trading matched the back test with backtrader.

        I plan on running a few more strategies with a live account to make sure real trades match locally backtested trades to a degree. This is my litmus test to determine whether or not to use a framework. I have a fully developed custom back tester, but maintenance has become too time consuming so hoping that backtrader is a good solution. So far I'd recommend it.

        1 Reply Last reply Reply Quote 0
        • C
          crazy25000 @edlg last edited by

          @edlg took a quick look at your code for Pandas tester and noticed there's no lag. Could be causing incorrect results.

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors