Backtrader Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. FrankieC
    3. Topics
    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 1
    • Followers 0
    • Topics 5
    • Posts 10
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by FrankieC

    • F

      Testing Stochastic with SafeDiv not working
      Indicators/Strategies/Analyzers • • FrankieC

      3
      0
      Votes
      3
      Posts
      269
      Views

      F

      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.

    • F

      Problem with running Bollinger Bands Optimisation
      General Code/Help • • FrankieC

      3
      0
      Votes
      3
      Posts
      453
      Views

      run-out

      @frankiec I ran your code and the only error I get is that your linspace is not a list. Try changing it to:

      devfactor=np.linspace(1.0, 4.0, 31).tolist()
    • F

      Get daily PNL and export them in table
      General Code/Help • • FrankieC

      1
      0
      Votes
      1
      Posts
      562
      Views

      No one has replied

    • F

      Help on Optimization code and Looping Opt.
      General Code/Help • • FrankieC

      1
      0
      Votes
      1
      Posts
      205
      Views

      No one has replied

    • F

      Source Error when Reading in Custom CSV Data
      General Code/Help • • FrankieC

      3
      0
      Votes
      3
      Posts
      336
      Views

      F

      @ab_trader said in Source Error when Reading in Custom CSV Data:

      data = btfeeds.GenericCSVData( dataname='CME_MINI_NQ1!Date.csv', fromdate=datetime.datetime(2021, 1, 1), dtformat=('%Y-%m-%d %H:%M:%S'), datetime=1, high=3, low=4, open=2, close=5, volume=8, openinterest=-1, timeframe=bt.TimeFrame.Minutes compression=1 )

      Thank you very much!! You're great! Solved

    • 1 / 1