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/

    highest/lowest function, get date of trigger candle

    General Code/Help
    2
    4
    55
    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.
    • Pascal Egli
      Pascal Egli last edited by

      Hello, i was wondering if there is a way to detect the date of the highest / lowest candle in a range of candles.

      So that if backtrader detects a new high / low it will store not only the high / low value, it will also store the date to a variable.

      1 Reply Last reply Reply Quote 0
      • A
        ab_trader last edited by

        Try to use indicators FindFirstIndexLowest, FindLastIndexLowest, FindFirstIndexHighest and FindLastIndexHighest,

        1 Reply Last reply Reply Quote 0
        • Pascal Egli
          Pascal Egli last edited by

          @ab_trader said in highest/lowest function, get date of trigger candle:

          FindFirstIndexLowest

          Thank you verymuch. That was exactly what I was looking for. Where in the docs is this located?

          1 Reply Last reply Reply Quote 0
          • A
            ab_trader last edited by

            Docs - Indicators - Reference

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