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/

    Similar to Exponential Moving Average

    Indicators/Strategies/Analyzers
    2
    4
    118
    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.
    • M
      marsario last edited by

      Hi,

      I'm looking for the name of an indicator but I don't know whether it exists.

      It should be similar to Exponential Moving Average but it divides the price at each day by the stock's cost on that day. In this way, it's possible to compare the average of different stocks and see which one has grown most in the recent past.

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

        @marsario Can you give an example?

        RunBacktest.com

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

          @run-out

          Hi!

          Could you check this link:
          https://docs.google.com/spreadsheets/d/1WRUfJC3VWcxCKAlXdaYAjszViJkFx__q36GKveJjEAU/edit?usp=sharing

          I'm looking for an indicator for what I called "Geometric average daily increase" (probably it's not the right name).

          I wrote a formula that creates weights so that the most recent weight is 1 and they are halved every X days (in this case every 30 days). The last weight comes after Y days (in this case 493)

          Also I take the prices of the last 494 days and do the following (basically I multiply together 493 weighted daily increases):
          product((price today/price yesterday)^today's weight)

          Finally, the 493 weights are summed all together and they root the total product above.

          Any idea, whether there exists anything similar?

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

            Sorry I haven't seen that indicator. But it shouldn't be unreasonable to code. Let us know how your efforts go.

            RunBacktest.com

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