You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Crosshair to show across all plots / subplots - You can see for a particular price, the matching crosshair line to the subchart's RSI value.
Actual Behavior
Crosshair does not show across all plots / subplots - crosshair line does not show in subgraph
Steps to Reproduce
1.Execute the following python code:
importwarningswarnings.simplefilter(action='ignore', category=FutureWarning) # Suppress Future Depreciation Warning in ipynbfrombacktestingimportBacktest, Strategyfrombacktesting.testimportGOOGfrombacktesting.libimportcrossover, plot_heatmaps, resample_apply, barssinceimportseabornassns# seaborn uses matplotlibimportmatplotlib.pyplotaspltimporttalibclassRsiOscillator(Strategy):
# parameters for optimization:upper_bound=70lower_bound=30rsi_window=14definit(self):
price=self.data.Closeself.daily_rsi=self.I(talib.RSI, price, self.rsi_window)
defnext(self):
# BarsSince:# - Tell you how many bars ago it was trueif (
# Daily RSI is greater than upperself.daily_rsi[-1] >self.upper_boundand# 3 days ago the RSI is below upperbarssince(self.daily_rsi<self.upper_bound) ==3
):
self.position.close()
elif (
# crossover(self.lower_bound, self.daily_rsi)self.lower_bound>self.daily_rsi[-1]
):
self.buy(size=1)
bt=Backtest(GOOG, RsiOscillator, cash=10_000)
stats=bt.run()
bt.plot()
Expected Behavior
Crosshair to show across all plots / subplots - You can see for a particular price, the matching crosshair line to the subchart's RSI value.

Actual Behavior
Crosshair does not show across all plots / subplots - crosshair line does not show in subgraph

Steps to Reproduce
1.Execute the following python code:
Additional info
Python version: 3.10.4
PIP packages:
appnope==0.1.3
asttokens==2.2.1
backcall==0.2.0
Backtesting==0.3.3
bokeh==3.2.1
comm==0.1.4
contourpy==1.1.0
cycler==0.11.0
debugpy==1.6.7
decorator==5.1.1
executing==1.2.0
fonttools==4.42.0
ipykernel==6.25.0
ipython==8.14.0
jedi==0.19.0
Jinja2==3.1.2
jupyter_client==8.3.0
jupyter_core==5.3.1
kiwisolver==1.4.4
MarkupSafe==2.1.3
matplotlib==3.7.2
matplotlib-inline==0.1.6
nest-asyncio==1.5.7
numpy==1.25.2
packaging==23.1
pandas==2.0.3
parso==0.8.3
pexpect==4.8.0
pickleshare==0.7.5
Pillow==10.0.0
platformdirs==3.10.0
prompt-toolkit==3.0.39
psutil==5.9.5
ptyprocess==0.7.0
pure-eval==0.2.2
Pygments==2.16.1
pyparsing==3.0.9
python-dateutil==2.8.2
pytz==2023.3
PyYAML==6.0.1
pyzmq==25.1.0
seaborn==0.12.2
six==1.16.0
stack-data==0.6.2
TA-Lib==0.4.27
tornado==6.3.2
traitlets==5.9.0
tzdata==2023.3
wcwidth==0.2.6
xyzservices==2023.7.0
The text was updated successfully, but these errors were encountered: