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/

    Multiple Criteria across multiple instruments

    General Code/Help
    2
    2
    316
    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.
    • satish vasudevan
      satish vasudevan last edited by

      Hi - I have just started exploring backtrader and understanding the various things possible.

      Before I can start off full time on it, I had one question on what I am trying to do is possible or not.

      I will be tracking a particular index, its related future, and also the option contracts.
      On a breakout of all the 3, the index, the future and the option contract ( call ), I would go long on the call.
      On a breakdown of the index, the future and breakout of the put contract, I would go long put.

      What I have seen in the examples, is that the same criteria is applied across different instruments. Is there any way, I could code this up in backtrader?

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

        You can apply any criteria to any instrument.

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