readme udpate
This commit is contained in:
@ -46,6 +46,13 @@ ohlcv_complex_df.lw.plot() #df containing ohlcv and other columns
|
|||||||
```python
|
```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)
|
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)
|
||||||
|
```
|
||||||
|

|
||||||
|
```python
|
||||||
|
|
||||||
#quick few liner, displays close series with label "close" on right pricescale and rsi on left price scale, all on single Panel
|
#quick few liner, displays close series with label "close" on right pricescale and rsi on left price scale, all on single Panel
|
||||||
pane1 = Panel(
|
pane1 = Panel(
|
||||||
right=[(close, "close")],
|
right=[(close, "close")],
|
||||||
|
|||||||
BIN
image-6.png
Normal file
BIN
image-6.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 120 KiB |
2
setup.py
2
setup.py
@ -5,7 +5,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='lightweight_charts',
|
name='lightweight_charts',
|
||||||
version='2.2.3',
|
version='2.2.4',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
python_requires='>=3.8',
|
python_requires='>=3.8',
|
||||||
install_requires=[
|
install_requires=[
|
||||||
|
|||||||
Reference in New Issue
Block a user