Backtrader Community

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

    Best posts made by FrankieC

    • RE: Testing Stochastic with SafeDiv not working

      Solved!

      The problem was in init(self):

              self.l.OB = OB = (self.l.d / self.l.d) * self.p.OB
              self.l.OS = OS = ((self.l.d / self.l.d) * 100) - self.l.OB
      

      Added aline of code to have an integer as a line.

      posted in Indicators/Strategies/Analyzers
      F
      FrankieC
    • 1 / 1