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/

    Is it possible to plot two data with different kinds of style?

    General Discussion
    2
    4
    468
    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.
    • Z
      zmwang last edited by

      Here I have only the tick data of one stock. And I want to use the resample in backtrader as an indicator to see where to create an order on tick data. I accomplished it. But when I want to plot the figure, I want the tick data to be 'line' style and resampled data 'bar' or 'candlestick' style. Can it be done in backtrader?

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

        The style option is a global plotting option.

        1 Reply Last reply Reply Quote 0
        • Z
          zmwang last edited by

          which means we cannot do that?

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

            Indeed, because there is no option controlling that on a per-data basis.

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