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/

    PSAR indicator and multiple timeframes

    General Code/Help
    2
    21
    8227
    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.
    • B
      borodiliz last edited by borodiliz

      Thanks @backtrader. That will cover most cases. Maybe the SAREXT indicator should also be added?

      In my case I'm working with a very large datasheet so to avoid performance issues I've coded something like:

          def next(self):
              self.psar0._lookback = min(100, len(self.data0))
      

      so I have a "dynamic" _lookback from 1 to 100

      And why 100?... newbie here! just by observation, it seems to be a good value to calculate a real ParabolicSAR value.

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