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/

    Bokeh Integration - Interactive Webbrowser Plotting

    General Discussion
    24
    70
    17545
    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.
    • A
      ab_trader last edited by

      it was turned off by @backtrader at certain point and never turned on back.

      • If my answer helped, hit reputation up arrow at lower right corner of the post.
      • Python Debugging With Pdb
      • New to python and bt - check this out
      1 Reply Last reply Reply Quote 0
      • vbs
        vbs last edited by

        Ok thanks. I wanted to add and update information in the first post as lots of it is outdated.

        1 Reply Last reply Reply Quote 0
        • Adham Suliman
          Adham Suliman last edited by

          Hey VBS,

          Awesome work with backtrader_plotting. I was wondering if there was a parameter to change the color for barup and bardown when style = 'bar'.

          Also, is there a way to make a green vertical line for an executed buy and a red vertical line for an executed sell?

          Thank!

          xm lin 1 Reply Last reply Reply Quote 0
          • xm lin
            xm lin @Adham Suliman last edited by

            @Adham-Suliman you can change the parameters of scheme
            like

            scheme=Tradimo(
                #bar color
                barup_wick="#db4930",
                barup_outline="#db4930",
                barup="#db4930",
                volup="#db4930",
            
                bardown_wick='#2cab40',
                bardown_outline='#2cab40',
                bardown='#2cab40',
                voldown='#2cab40',
            )
            
            b = Bokeh(scheme=scheme)
            cerebro.plot(plotter=b,iplot=False)
            
            1 Reply Last reply Reply Quote 0
            • xm lin
              xm lin last edited by

              @vbs thanks for the great work!
              share some idears may better visualization
              something like
              ![alt text](a11c1fbc-5bdb-4268-9dda-ed8acfbf98f7-image.png image url)

              • crosshairs all subplot(from here:link text)

              • trade_message
                click trade block to show trade messaage
                ![alt text](bec1f930-d804-47b4-968a-bcda80bcd550-image.png image url)

              1 Reply Last reply Reply Quote 0
              • L
                LClassen last edited by

                Hey @vbs, this tool looks awesome! I just tried to save my cerebro instance and execute the plotting later in another script. Pickling does not work. Do you have a solution for that?

                vbs 1 Reply Last reply Reply Quote 0
                • vbs
                  vbs @LClassen last edited by

                  @lclassen
                  As far as I can remember a cerebro might have problems getting pickled for 2 or 3 reasons. You need to implement the manually pickle trigger functions exclude those attributes from pickling.

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

                    After alot of time I made a version 2.0.0 of this with some new features (e.g. live plotting) and many bug fixes. In case someone is interested, it is available on PyPi.

                    J Maksym Yakovliev 2 Replies Last reply Reply Quote 6
                    • J
                      JakeOfSpades @vbs last edited by

                      @vbs said in Bokeh Integration - Interactive Webbrowser Plotting:

                      After alot of time I made a version 2.0.0 of this with some new features (e.g. live plotting) and many bug fixes. In case someone is interested, it is available on PyPi.

                      Great work @vbs really appreciate you man I use your library for my trading systems.

                      1 Reply Last reply Reply Quote 0
                      • Maksym Yakovliev
                        Maksym Yakovliev @vbs last edited by

                        @vbs thank you for your Great Work! it's really helpful

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