Backtrader Community

    • 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/

    Printing Stock name in the log

    General Code/Help
    2
    7
    298
    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.
    • K
      KK last edited by

      stock name while printing in the log
      checking the code "Rebalancing Conservative Formula" its not printing which stock entering and exiting . d_name is printing blank. Any other value to be used to print the stock
      127d762c-32c8-43c8-bd08-4def7d79f668-image.png

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

        Hello , I am also fairly new to backtrader , However without giving the data name to the cerebro engine while adding the data we would not get the data name I would recommend to use the name parameter while adding the data
        3e8c8a57-879a-44b1-907c-18ad43008af6-image.png

        K 2 Replies Last reply Reply Quote 1
        • K
          KK @RamSurya last edited by

          @ramsurya this is not the data name, this is the name of key value pair created

          1 Reply Last reply Reply Quote 0
          • K
            KK @RamSurya last edited by

            @ramsurya apologies, you are right... it worked

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

              Happy to help!!

              K 1 Reply Last reply Reply Quote 0
              • K
                KK @RamSurya last edited by

                @ramsurya thank you, sorry once again as i replied without checking

                RamSurya 1 Reply Last reply Reply Quote 0
                • RamSurya
                  RamSurya @KK last edited by

                  @kk That is fine manh.

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