kernc

Results 395 comments of kernc

If likely, the first thing I'd look at is the way we use [Bokeh's global state](https://docs.bokeh.org/en/latest/docs/reference/io.html#bokeh.io.state.curstate): https://github.com/kernc/backtesting.py/blob/c8f9cc1e2e71aad5fbcb2fa2895ed4226d01c2d8/backtesting/_plotting.py#L145-L164 https://github.com/kernc/backtesting.py/blob/c8f9cc1e2e71aad5fbcb2fa2895ed4226d01c2d8/backtesting/_plotting.py#L68-L75 PR welcome!

The state is already reset each time. I think we need to _replace_ the use of Bokeh's global state ([`curstate()`](https://docs.bokeh.org/en/latest/_modules/bokeh/io/state.html#curstate)) with a new [`State`](https://docs.bokeh.org/en/latest/docs/reference/io.html#bokeh.io.state.State) object for each `plot()` invocation. I...

Not possible. This would require an extra parameter, and we have nearly too many of those already, so I'm somewhat disinclined, more leaning to rule-of-thumb/ballpark estimations in that case. Besides...

> And having two lines together in one graph Indicator function can return [multiple (i.e. a tuple of) arrays](https://kernc.github.io/backtesting.py/doc/backtesting/backtesting.html#backtesting.backtesting.Strategy.I). This works. ```py self.I(lambda: (ta.SMA(close, self.slow), ta.SMA(close, self.fast)) ``` ----- Area...

> how would you pass something like a different color/name to each one? Something like this should work: ```py self.I(..., color=('pink', 'lime')) ``` but that was apparently lost in https://github.com/kernc/backtesting.py/commit/bae9340aaef4d5f407bec18daae22f74a98d4f13...

If there was a visualization of multiple models readily available in the lib, what would you expect to see from it?

@Wihandebeer If you mean [something like this](https://github.com/kernc/backtesting.py/issues/54#issuecomment-602280267), don't hijack issues.

Duplicate of https://github.com/sourcerer-io/sourcerer-app/issues/558.

[Closing the Sourcerer account](https://sourcerer.io/settings#account) and then reconnecting seems to work.

actually, the code for the site can be in [gh-pages branch](http://pages.github.com/), reliably served by GitHub. oh, you use PHP. how awkward. what is the dynamic nature of the site?