kernc
kernc
> My question is why `and` is used here for the two conditions. That is, what is the problem if we use `or` instead? When in doubt, best to flip...
Please upgrade to pandas >= 2.2 or pass [`bt.plot(superimpose='M')` or `bt.plot(superimpose=False)`](https://kernc.github.io/backtesting.py/doc/backtesting/backtesting.html#backtesting.backtesting.Backtest.plot).
Hope this works. Thanks!
This seems to break at: https://github.com/kernc/backtesting.py/blob/cf596b4feea48f0b5c28857f953cef1cbae0b6f4/backtesting/backtesting.py#L1518-L1523 Our master has since diverted: https://github.com/kernc/backtesting.py/blob/5503b9d76e3798651eb30be8b2dce4373db41d81/backtesting/_util.py#L306-L309 but this doesn't change the fact that: > buffer is too small for requested array which it shouldn't...
> TypeError: buffer is too small for requested array > I have tried running it with both `method='grid'` and `method='sambo'`, but the issue remains with both. `method='sambo'` results in the...
@TimonPeng Can you provide some example code that reproduces the issue for you? Are you saying there's something wrong with `df2shm` (or the inverse) procedure? Might be, it's wholly new....
See https://github.com/kernc/backtesting.py/issues/327. Comments and improvements welcome.
> calculation of `stats` could be documented As far as code goes, I'm leaning to most stats ideally consisting of self-documenting single lines, e.g.: https://github.com/kernc/backtesting.py/blob/cd4bc6c7ff20f843d87fd21dbf3b895e8612ad9d/backtesting/_stats.py#L116 But I'm not against adding...
Great detective work! Long turnaround time for bugs in mature projects shouldn't deter you from filing them — the least they give clues at points of broader rewrites. And CPython...
For resolving such edge-case problems, I'm leaning to complicating end-user rather than project code. Unless you want to contrib it? > ignore the `BaseModel`'s methods from the documentation You can...