kernc

Results 395 comments of kernc

Thanks! The issue seems to be in `SignalStrategy` here: https://github.com/kernc/backtesting.py/blob/0ce24d80b1bcb8120d95d31dc3bb351b1052a27d/backtesting/lib.py#L411-L413 Since any zeros are replaced with NaNs, along with `+1` in `Backtest.run()`, this skips past the first signal.

Whatever is not provided by the library, you can code yourself. Something like: ```py order = self.buy(...) self.order_times[order] = self.data.index[-1] for order in self.orders: if self.data.index[-1] - self.order_times[order] > pd.Timedelta('3...

Duplicate of https://github.com/kernc/backtesting.py/issues/113.

@makovez Notice the symbol in "0.2 **‰**" is [per mille](https://en.wikipedia.org/wiki/Per_mille), not per cent. :wink:

I'm not familiar with Arch or AUR, but bumping packages on tagged releases (as long as they are prompt and proper 😅) sounds perfectly reasonable. Thanks!

My idea was to simply change the line: https://github.com/kernc/backtesting.py/blob/0ce24d80b1bcb8120d95d31dc3bb351b1052a27d/backtesting/backtesting.py#L1081 to `if False:` or some such for the duration of development. Let me know of any other ideas.

> Keeping the Python versions This would be necessary for everyone else to be able to read/comprehend/verify the algos. 😅

I'd certainly be nice if some of the good improvements from these repos were eventually merged back in here, so that they get released as the next version and shipped...

This is Bokeh bugs: https://github.com/bokeh/bokeh/issues/12614 ~~https://github.com/bokeh/bokeh/issues/12627~~ Please upvote, fix.

The link is constructed here: https://github.com/pdoc3/pdoc/blob/80af5d40d3ca39e2701c44941c1003ae6a280799/pdoc/templates/search.mako#L104 `dobj.url` is assigned here from `dobj.module`: https://github.com/pdoc3/pdoc/blob/80af5d40d3ca39e2701c44941c1003ae6a280799/pdoc/cli.py#L391-L414 which points to the parent module for members that aren't overridden. I'm not sure what is best...