diff --git a/README.md b/README.md index 1e78434..85b02ae 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,13 @@ ohlcv_complex_df.lw.plot() #df containing ohlcv and other columns ```python t1data.ohlcv.data["BAC"].lw.plot(left=[(t1mom,"mom"),(t1mom_tt.mom.loc[:, (20,"1T")],),(t1mom_tt.mom.loc[:, (20,"5T")],)]) #display ohlcv 1m data along with 1min momentum ind and 2 multiindexed indicators on 1M and 5m resolution on 5M (calculated as multiindex) +#quickly plot vectorbtpro indicator on top of OHLCV data (with automatic unpacking) +macd = vbt.indicator("talib:MACD").run(t1data.data["BAC"].close) +t1data.ohlcv.data["BAC"].lw.plot(auto_scale=macd) +``` +![alt text](image-6.png) +```python + #quick few liner, displays close series with label "close" on right pricescale and rsi on left price scale, all on single Panel pane1 = Panel( right=[(close, "close")], diff --git a/image-6.png b/image-6.png new file mode 100644 index 0000000..c290aa2 Binary files /dev/null and b/image-6.png differ diff --git a/setup.py b/setup.py index 9ca1acf..5b5f4de 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open('README.md', 'r', encoding='utf-8') as f: setup( name='lightweight_charts', - version='2.2.3', + version='2.2.4', packages=find_packages(), python_requires='>=3.8', install_requires=[