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/

    How many previous days/candles 'High' is broken as soon as we encounter a Open=High Candle?

    General Code/Help
    2
    2
    56
    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.
    • ayush-somani
      ayush-somani last edited by

      I am stuck on how to calculate the no. of previous days/candles 'High' is taken out, as soon as we encounter a Open=High day/candle. There is no fixed period (no. of days/candles). No. of such previous days/candles are dynamic but at-least 1. I am confused in writing the code as I don't know where to check this (i.e. if i make an Indicator, should I check it there or in my Strategy class). Moreover, I am confused with the flow of backtrader. I read the documentation but still it's quite confusing.

      1 Reply Last reply Reply Quote 0
      • run-out
        run-out last edited by

        You should consider trying simple examples until you get the concepts and then tackle the strategy you want to execute here. This forum it's difficult to back up and give you the entire lesson of backtrader. Dive into the manuals and once you are ready, tackle your code. Then we will help you solve your problems. It takes time.

        RunBacktest.com

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