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/

    Plotting indicators from 2 Timeframes but only 1 Prtice CHart

    Indicators/Strategies/Analyzers
    2
    4
    62
    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.
    • B
      BackLearning last edited by

      Hi,
      I'm using 2 timeframes (1min and 15 mins); my intention its to plot price chart on 1min data with their indicators, and some indicators for 15min BUT NOT including the price chart of 15min.

      When I have tried plotinfo . plot=False for the 15min data, the price chart was deactivated (fine) but their indicators also.

      Is there any way to do that?
      Thanks, J

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

        @backlearning

        Docs - Plotting - Object-wide plotting options, plotmaster option

        B 1 Reply Last reply Reply Quote 1
        • B
          BackLearning @ab_trader last edited by

          @ab_trader but then I receive the following error:
          ValueError: x and y must have same first dimension, but have shapes (360,) and (26,)

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

            @backlearning it looks like with mixed timeframes you need to use coupling. It is described well in the Indicators section Docs - Indicators - Timeframe Mixing.

            By the way, I would recommend you read docs more, will save your time.

            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(); }); }