Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. aayushkucheria
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 0
    • Groups 0

    aayushkucheria

    @aayushkucheria

    0
    Reputation
    7
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    aayushkucheria Unfollow Follow

    Latest posts made by aayushkucheria

    • RE: Select highest value in a range only if the bar with the highest value passes a condition?

      @run-out Added a comment with further clarification. Thanks!

      posted in General Code/Help
      aayushkucheria
      aayushkucheria
    • RE: Select highest value in a range only if the bar with the highest value passes a condition?

      I meant to say that if I have a range, and the highest high value in that range -->
      Then only take it if the highest high value > Another Indicator I've defined at that bar.

      So basically, in the below picture the line is the indicator. If there's no value above it, I don't want anything.
      But if there are high values above it, then I want the highest high.

      b25ef797-adb5-401a-8980-8875d4181f5b-image.png

      posted in General Code/Help
      aayushkucheria
      aayushkucheria
    • Select highest value in a range only if the bar with the highest value passes a condition?

      Hey,
      I'm making an indicator which requires me to select the highest value in a certain range only if that value is greater than the price channel high at that bar.

      I'm able to find the highest value from this code -

      # self.counter defines how far back the range starts
      self.highest = basicops.Highest(self.data.high, period=self.counter, subplot=False)
      

      But once I have the highest value, how do I get the price channel high value at that bar to check my condition?

      Thank you!

      posted in General Code/Help
      aayushkucheria
      aayushkucheria