Backtrader Community

    • 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/

    interactively add data feed?

    General Discussion
    data feed real-time
    2
    2
    603
    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.
    • soujiro0725
      soujiro0725 last edited by

      Hi. I am very new to backtrader.

      I am trying to develop a backtrader system that takes realtime data feed.

      using backtrader for historical data, I can test my strategy, yes.

      Can I add only a single tick to (maybe) cerebro to get an immediate result of strategy?

      I have been searching for sample codes for that, without success.

      I appreciate any help.

      thanks in advance.

      1 Reply Last reply Reply Quote 0
      • spyamine
        spyamine last edited by

        Hi,

        You want to look at how brokers are made. here are some examples https://github.com/mementum/backtrader/tree/master/backtrader/brokers

        then feeds in here : https://github.com/mementum/backtrader/tree/master/backtrader/feeds

        and stores : https://github.com/mementum/backtrader/tree/master/backtrader/stores

        In all of these links there are examples of how to use live trading for Oanda or other providers. you can inspire your work based on the implementation of the latters.
        I hope it helps.

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