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/

    Net Profit/Loss Observer Misconfigured

    General Code/Help
    1
    3
    95
    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.
    • S
      student last edited by

      alt text
      I added a second timeframe and the panel shown above used to show "Trades - Net Profit/Loss" panel with red and blue dots. Now it doesn't show the colour of the dots so I don't know if the trade is a profit or a loss. Is there some sort of way to configure the observer so it goes back to how it was by default? Why does it change so the image as shown when I add a second timeframe?

      1 Reply Last reply Reply Quote 0
      • S
        student last edited by

        Okay I managed to fix that by adding stdstats=False and manually adding the observers. However I noticed one of the sell triangles is behind the candle
        alt text
        You can see that a trade is closed in the top observer and if you look closely you can see a red triangle behind the candle. Not sure if this is a bug or something I've done wrong.

        1 Reply Last reply Reply Quote 0
        • S
          student last edited by

          Okay fixed that issue as well using cerebro.addobserver(bt.observers.BuySell, barplot=True) .

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