Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Pedrin Pedrosa
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Groups 0

    Pedrin Pedrosa

    @Pedrin Pedrosa

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Pedrin Pedrosa Unfollow Follow

    Latest posts made by Pedrin Pedrosa

    • Plot ticks based on time, not at a even distance

      Hi, i don't really know if there's a name to what i'm looking for, but basically i'm plotting ticks, and ticks don't always come at the same even period like time candles, so i would like to plot ticks as they come and not one after the other, all even spaced.

      I tried using bokeh and mathplotlib on backtrader, but i still can't figure out how to make it work

      When using mathplotlib outside backtrader i can do it, just like in the image below, but when using backtrader i still didn't find i way to make it work, if anyone can help me i would really appreciate

      FirstImage: This is what i'm getting using mathplotlib outside backtrader, is the way that i'm looking for to plot, the lines are plotted based on the time

      mathplotlib1.png

      SecondImage: This is what i'm getting at backtrader mathplotlib, as you can see is very similar but in backtrader the line is being plotting all the points in a row

      mathplotlib2.png

      Overall is just i slight diferrence but it i wish there's was a way for me to achieve the same result using backtrader.

      Because i'm using tick data, if there's 10 sell trades at the same time, i can see just one line going down in the same timestamp, instead of like in a ladder where all the points would be plotted with the same even space.

      posted in General Code/Help
      Pedrin Pedrosa
      Pedrin Pedrosa