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/

    [Cerebro] Unresolved reference 'msg'

    General Code/Help
    2
    5
    1063
    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
      Sai Jamic last edited by

      In Cerebro.py 661:

      def _notify_data(self, data, status, *args, **kwargs):
          for callback in self.datacbs:
              callback(msg, *args, **kwargs)
          self.notify_data(data, status, *args, **kwargs)
      

      Is there any wrong ?

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

        Yes. Data notifications have always been used from strategies or with cerebro overridden subclasses and there (and in the docstring) remains an error.

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

          There is a fix in the latest commit of the development branch. Another fix has a side effect, so the release will be delayed

          S 1 Reply Last reply Reply Quote 0
          • S
            Sai Jamic @backtrader last edited by

            @backtrader I get it, thank you

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

              It's already in the latest release Community - Release 1.9.51.121

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