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/

    Delistings

    General Code/Help
    3
    3
    766
    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.
    • C
      cwse last edited by

      How does backtrader manage stocks which have delisted (i.e. their data stops at a specific point in time in the past). Does it assume zero return? or take the last value of trading as the completion of trading and return?

      If not, how should I manage these stops? fill all data forward (so that its final price is the same every day into the future?

      THanks,
      CWE

      A 1 Reply Last reply Reply Quote 0
      • A
        ab_trader @cwse last edited by

        @cwse I am not an author, but based on the bt description - doesn't manage at all, which is usual for back testing and trading software. Such events are managed by data providers or by trader's database.

        If the stock is delisted, than the price is 0.

        1 Reply Last reply Reply Quote 0
        • B
          backtrader administrators last edited by

          Easy. If not data comes in, no data is delivered.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Copyright © 2016, 2017, 2018 NodeBB Forums | Contributors
          $(document).ready(function () { app.coldLoad(); }); }