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/

    Q500US like screening in live/backtest mode

    General Code/Help
    1
    1
    41
    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.
    • K
      kencheung0804 last edited by

      I have a postgres database containing several thousands stocks' daily ohlc and fundamental data. My goal is to perform something like the old quantopian Q500US screening before other strategies. This leads to the following three questions I'm gonna ask:

      First, especially in live mode, stocks change/ get delisted/ added rapidly. I know as long as I add all stocks into datafeed (assuming my ram is enough), delisted stocks are easier to handle. However, how can I add new stocks into datafeeds after run()?

      This leads to my next question. I don't want to have survivor bias. However, is there any way I can perform the screening without adding all several thousands stock data, not matter delisted or not, into the datafeeds? I'm always expanding my database. And I'm afraid I'll end up lacking Ram.

      Third, this is a general question. Is there any way I can mimic zipline's pipeline in backtrader live/backtest mode?

      Thank you.

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