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/

    MaxN/Highest

    Indicators/Strategies/Analyzers
    3
    5
    36
    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.
    • T
      teja last edited by

      How should I use bt.ind.MaxN to get both max value and the date on which it has happened? For example I would like to know last 100 days high price and the date on which it has happened.

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

        @teja

        Docs - Indicators - Reference

        Look up for indicators related to Highest and Lowest.

        T 1 Reply Last reply Reply Quote 0
        • T
          teja @ab_trader last edited by

          @ab_trader Thanks for the reply... but I need the date on which highest/lowest has happened?

          run-out A 2 Replies Last reply Reply Quote 0
          • run-out
            run-out @teja last edited by

            @teja Look these up in the indicator reference page:

            FindFirstIndex
            FindFirstIndexHighest
            FindFirstIndexLowest
            FindLastIndex
            FindLastIndexHighest
            FindLastIndexLowest
            
            1 Reply Last reply Reply Quote 0
            • A
              ab_trader @teja last edited by

              @teja said in MaxN/Highest:

              I need the date on which highest/lowest has happened?

              Then you need to carefully look thru the documentation by that link and find out that there is a bunch of indicators, which not only define the max/min, but the bar at which this happened. Then you need to apply the effort and put together the script which returns you the date you are looking for.

              Another way is to pay to somebody to make it for you.

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              Copyright © 2016, 2017, 2018 NodeBB Forums | Contributors
              $(document).ready(function () { app.coldLoad(); }); }