Skip to content

issues Search Results · repo:kernc/backtesting.py language:Python

Filter by

536 results
 (69 ms)

536 results

inkernc/backtesting.py (press backspace or delete to remove)

Currently in the documentation, it says barssince can be used like this: def barssince ( condition, default=inf) Return the number of bars since condition sequence was last True, or if never, return default. ...
  • kbs-code
  • Opened 
    yesterday
  • #1259

Expected behavior what i do: 1. pip install backtesting 2. run from backtesting import Backtest, Strategy from backtesting.lib import crossover from backtesting.test import SMA, GOOG class SmaCross(Strategy): ...
wontfix
  • xXgordonXx
  • 1
  • Opened 
    6 days ago
  • #1257

I have this MultiBacktest code which hangs over 30 seconds: btm = MultiBacktest([USD_JPY, GBP_USD], Momentum, cash=10_000, margin=.02, commission=.002) stats = btm.run() print(stats) btm.plot(filename= ...
bug
  • kbs-code
  • Opened 
    8 days ago
  • #1256

Expected behavior Hello, For many values of my strategies I have to limit my stats ouptut to the first 12 lines stats.head(12)or I get an error. I guess this is related toSortino Ratio` display which ...
help wanted
  • lgrawet
  • 2
  • Opened 
    8 days ago
  • #1255

Hello. The stats._trades has a column called ReturnPct. By reading the docs and the source code it s not clear if the return in percentage is calculated relative to the starting capital, the current equity, ...
  • ironhak
  • 1
  • Opened 
    10 days ago
  • #1254

Expected behavior I am getting this error when running bt.optimize Traceback (most recent call last): File /Users/xxx/trading/algotrading/python/backtesting-opt.py , line 179, in module bt.optimize(adx_threshold=range(5, ...
bug
  • abhisheksoni27
  • 1
  • Opened 
    11 days ago
  • #1252

Expected behavior from multiprocessing import Process, freeze_support, set_start_method from backtesting import Backtest, Strategy from backtesting.lib import crossover from backtesting.test import SMA, ...
bug
  • Goon83
  • 3
  • Opened 
    14 days ago
  • #1251

Hi, I m using minute level data: details summary Dataframe sample /summary Open High Low Close Date ...
bug
upstream
  • ironhak
  • 11
  • Opened 
    21 days ago
  • #1243

Expected behavior Show my optimization, but does not finish due to this runtime error. Code sample class HiLoStrategy(Strategy): n = 5 def init(self): high = self.data.High low ...
  • fmbitts
  • 4
  • Opened 
    21 days ago
  • #1242

Discussed in https://github.com/kernc/backtesting.py/discussions/1236 div type= discussions-op-text sup Originally posted by @sotos82 March 8, 2025 /sup I use version 0.6.2 Given that the stop-loss ...
bug
  • kernc
  • Opened 
    22 days ago
  • #1241
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub