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 access to historical data in live trading

    General Code/Help
    2
    2
    52
    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.
    • R
      rodket last edited by

      Hi there,
      I want to run a strategy with minute timeframe. In this strategy, I want to use the simple moving average prices of the last day (i.e. previous 1440 minutes). When I run this strategy in TWS, it cannot run immediately and I have to wait for loading the data.
      Is there any suggestion?

      Thanks in advance

      E 1 Reply Last reply Reply Quote 0
      • E
        EMR @rodket last edited by

        @rodket Depending on your sttrategy and its start time, if you can retrieve the data you can use the backfill.
        Also if your MA is on a higher period than 1 minute, you can set 2 datafeeds in Backtrader.

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