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/

    Example of usage with Bitcoin in Binance

    General Discussion
    2
    3
    933
    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.
    • Rodrigo Brito
      Rodrigo Brito last edited by

      Hi everyone,

      I published a little contribution in my Github. A example of usage of Backtrader with Binance integration. Using the CCXT lib for broker and feed.

      The base strategy uses a simple RSI + SMA filter, with stop loss of 3%.

      Feel free to contribute and improve the example: https://github.com/rodrigo-brito/backtrader-binance-bot

      Best regards,
      Rodrigo Brito

      D 1 Reply Last reply Reply Quote 1
      • D
        DiamondDogs95 @Rodrigo Brito last edited by

        @rodrigo-brito
        How do we proceed to test with another dataset ? (ex: from 01/01/2019 to 05/05/2019)
        It seems that your scripts do not incorporate params to generate a csv file with from some date to another.

        Best regards,
        Diamond

        Rodrigo Brito 1 Reply Last reply Reply Quote 0
        • Rodrigo Brito
          Rodrigo Brito @DiamondDogs95 last edited by

          Hi @diamonddogs95, I used https://github.com/xFFFFF/Gekko-Datasets to generate a database in SQLite. Then I open it and run this query https://github.com/rodrigo-brito/backtrader-binance-bot/blob/master/dataset/queries.sql

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