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/

    bt.Strategy (arguments)

    General Discussion
    2
    2
    913
    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.
    • R
      roch_02 last edited by

      Hello,
      I have my own data and a strategy that I want to apply and want to use backtrader to backtest this strategy. Can bt.Strategy receive other arguments or only self? For example, can bt.Strategy receive a dictionary of pairs in the init part?

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

        See

        • Docs - Quickstart, section Customizing the Strategy: Parameters
        • Docs - Platform Concepts, section Parameters

        Whatever is not a declared parameter will be passed untouched to the __init__ method.

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