kernc
kernc
https://github.com/kernc/backtesting.py/blob/0ce24d80b1bcb8120d95d31dc3bb351b1052a27d/backtesting/backtesting.py#L555-L560 ```py >>> (1 - 6/7) * 2100 300.0000000000001 >>> from math import copysign >>> copysign(max(1, round(abs(2100) * (6/7))), -2100) -1800.0 ``` Looks like a rounding error on your platform....
> I even tried the following hack, but still no work: > > import backtesting > backtesting.set_bokeh_output(notebook=True) Might be that VSCode doesn't permit loading HTML **+ JS** notebook widgets. It's...
> This code is work, but didn't trading This makes no sense. I'm at loss as to what the issue could be. :confused: Is `self.sma7`, by chance, a list of...
The bug for the following minimal test case: ```py from backtesting import Backtest, Strategy from backtesting.test import GOOG class Test(Strategy): model = None def init(self): assert self.model is not None...
@CadeHalcyon Can you show some of your code? The error: ``` ValueError('`maximize`, if str, must match a key in pd.Series ' 'result of backtest.run()') ``` is actually quite irrelevant to...
I find I normally subscribe to issues that interest me. **Issue subscription stats**, if made visible, can be fairly obvious yet silent :+1: votes.
This issue, or at least the most common use case, is somewhat mitigated with [GitHub switching](https://help.github.com/articles/migrating-your-pages-site-from-maruku) to [kramdown, which supports classes](http://kramdown.gettalong.org/quickref.html#block-attributes) and other attributes. Yay! :cake:
Implications of GPL are _well-understood_: it's a [copyleft](https://en.wikipedia.org/wiki/Copyleft) license. Copyleft is majorly aligned with my personal values (as opposed to the concentration of power that the alternatives promote) and therefore,...
I'm not quite sure I understand what you're trying to do. Have you tried using [`Trade.close(portion=...)` API](https://kernc.github.io/backtesting.py/doc/backtesting/backtesting.html#backtesting.backtesting.Trade.close) to close existing trades?
:+1: The OS-level three-finger swipe screenshot is non-configurable on this OS. Maybe the exact finger gesture for the extension should be configurable, or at least a way to disable it...