Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Wayne Filkins 0
    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/
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 23
    • Best 1
    • Groups 0

    Topics created by Wayne Filkins 0

    • Wayne Filkins 0

      Short Interest Ratio
      Indicators/Strategies/Analyzers • • Wayne Filkins 0

      1
      0
      Votes
      1
      Posts
      131
      Views

      No one has replied

    • Wayne Filkins 0

      comparing indicator lines with strategy parameters
      General Code/Help • • Wayne Filkins 0

      4
      0
      Votes
      4
      Posts
      306
      Views

      Wayne Filkins 0

      @ab_trader Looks like the "if" was the problem. Didn't realize I had to use bt.If in init(). Used lineNum too but not sure if I had to, I'll just leave it though. Thanks!

    • Wayne Filkins 0

      Problems with buy/sell signals
      General Code/Help • • Wayne Filkins 0

      14
      0
      Votes
      14
      Posts
      1213
      Views

      A

      if you would truly do what i've recommend above (print and plot all data and look thru it bar by bar) you would see two notifications of sell orders much earlier. and (probably) only one notification of the buy order.

      anyway, since you have very light understanding of the basic things (buy nd sell), i would recommend you to read docs and maybe do quickstart one more time (or even first time). will save you time later.

    • Wayne Filkins 0

      Genetic Algorithm using multiple cpu threads
      General Discussion • • Wayne Filkins 0

      2
      0
      Votes
      2
      Posts
      307
      Views

      J

      @Wayne-Filkins-0

      Hi,

      as far as I know backtrader uses automatically all CPUs.
      https://www.backtrader.com/blog/posts/2015-07-23-multicore-optimization/multicore-optimization/

      If you are using Jupyter, then this limits the CPU usage.
      Otherwise the package you are using might be limiting its multicore capabilities (i.e. optunity is as far as I know doing that)

    • Wayne Filkins 0

      Is there a way to offset my plotted line?
      General Code/Help • • Wayne Filkins 0

      2
      0
      Votes
      2
      Posts
      125
      Views

      Wayne Filkins 0

      Nevermind I figured it out. I wanted to do line[-5] as the value because this would fit the offsetting problem but it always gives errors, but I just had to basically skip the beginning of the line (where line[-5] didn't exist yet) and that fixed it. Sorry idk how I didn't figure this out last night guess I was just burned out. So yeah if anyone comes across this problem just basically do:

      line[-5] = value you normally would put at line[0]

      and if you have a situation like mine, I had to use the pivot period so it was like above but had to convert the period to Int

    • 1 / 1