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/

    data feeds with different start date

    General Code/Help
    3
    6
    139
    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.
    • the world
      the world last edited by

      There is no buy-sell triangles in symbol C98's figure. But the cash grows which means there are trades in C98
      329a29b4-50ee-4af0-8e40-df30ccf7f5a4-image.png

      1 Reply Last reply Reply Quote 0
      • run-out
        run-out last edited by

        @the-world Do you have a question?

        RunBacktest.com

        the world 1 Reply Last reply Reply Quote 0
        • the world
          the world @run-out last edited by

          @run-out There is no buy-sell plot in the second symbol(C98USDT), I don't know why.

          D 1 Reply Last reply Reply Quote 0
          • D
            dasch @the world last edited by

            @the-world did you trade on that data feed or did you execute all trades on the BTCUSDT data (you can provide the data feed you want your trades to be on as a parameter for buy, sell, close, etc.)
            The trades will happen on the data feed you provide, if left out the first data is used.

            1 Reply Last reply Reply Quote 0
            • D
              dasch last edited by

              you could provide some code to see what issue you have, its better than just guesswork what your issues may be.

              the world 1 Reply Last reply Reply Quote 1
              • the world
                the world @dasch last edited by

                @dasch said in data feeds with different start date:

                you could provide some code to see what issue you have, its better than just guesswork what your issues may be.

                The trade just happened, but no plot.
                I think it is too little data in C98, if I change to another data not so little (with BTC data 90% of the length), then the graph will show normal. There should be some problem with the logic of plot.
                You can try to reproduce this whit data feeds of different start time. But need to override the prenext method to make trade happen when there is only one data feeds have valid data

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