Navigation

    Backtrader Community

    • Register
    • 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
    • Groups 0

    Topics created by CptanPanic

    • C

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

      2
      0
      Votes
      2
      Posts
      820
      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
      854
      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
      808
      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
      926
      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
      1532
      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
      3537
      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

      325
      5
      Votes
      325
      Posts
      143456
      Views

      Kisko Apeles

      Apologies for being a bit overwhelmed on where to start.

      I'm planning to trade Futures in Binance using Multiple Cryptocurrencies with One base currency (USDT most likely) in one Backtrader Strategy.

      I've honestly have not gone through all replies in this thread but maybe it wouldn't hurt to ask where it is best to start for my use case. Any reference closest to my use case?

    • 1 / 1