Backtrader Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. CptanPanic
    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/
    C
    • Profile
    • Following 2
    • Followers 1
    • Topics 7
    • Posts 20
    • Best 5
    • Controversial 0
    • Groups 0

    Topics created by CptanPanic

    • C

      Is it possible to do nested talib indicators?
      Indicators/Strategies/Analyzers • • CptanPanic

      2
      0
      Votes
      2
      Posts
      855
      Views

      P

      Have you tried? It seems the TA-Lib indicators you see are automatically generated wrappers around TA-Lib. As such the behavior should be the same as seen in the docs and example.

      sma = bt.ind.SMA(self.data, period=10) sma_on_sma = bt.ind.SMA(period=5)

      and

      ta_sma = bt.talib.SMA(self.data, timeperiod=self.p.period) ta_sma_on_ta_sma = bt.talib.SMA(ta_sma_on_ta_sma, timeperiod=self.p.period) #or sma_on_ta_sma = bt.SMA(ta_sma_on_ta_sma, timeperiod=self.p.period)
    • C

      Once datas have been added with adddata(), is there a way to adjust time period that backtest operates on?
      General Discussion • • CptanPanic

      2
      0
      Votes
      2
      Posts
      883
      Views

      B

      There are no such parameters to run. If you want less dates to be taken into account pass fromdate and todate to the data feeds.

    • C

      PyFolio analyzer multiple data sources not working.
      General Code/Help • • CptanPanic

      2
      1
      Votes
      2
      Posts
      828
      Views

      L

      I got the same issue.
      It should be a quick fix by removing -2? Because the underlying bt.analyzers.PositionsValue doesn't have this issue.

    • C

      What is units for timeperiod?
      General Code/Help • • CptanPanic

      4
      0
      Votes
      4
      Posts
      956
      Views

      B

      Indicators know nothing about timeframes or compressions. They only understand that they have to calculate something using the input data.

    • C

      With a strategy with multiple instruments, anyway to make one plot per?
      General Discussion • • CptanPanic

      7
      0
      Votes
      7
      Posts
      1604
      Views

      vhphan

      @backtrader
      Thanks.
      You are right. I did bought and sold on the first plot.
      I managed to fix the code.

    • C

      Why do I get 'None' as value for SharpeRatio?
      General Code/Help • • CptanPanic

      6
      1
      Votes
      6
      Posts
      3796
      Views

      Kisko Apeles

      @backtrader Thanks bro! You are the best.

    • C

      Anyone use backtrader to do live trading on Bitcoin exchange?
      General Discussion • pairs trading crypto • • CptanPanic

      326
      6
      Votes
      326
      Posts
      145802
      Views

      Fashiony zone

      Thank You for the guide Please visit

    • 1 / 1