multindex indicator support
This commit is contained in:
@ -44,6 +44,8 @@ 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)
|
||||
|
||||
#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")],
|
||||
|
||||
@ -430,7 +430,7 @@ def chart(panes: list[Panel], sync=False, title='', size="m", xloc=None, session
|
||||
tmp.set(output_series)
|
||||
else:
|
||||
if name is None:
|
||||
name = "no_name"
|
||||
name = "no_name" if not hasattr(series, 'name') or series.name is None else str(series.name)
|
||||
|
||||
tmp = active_chart.create_line(name=name, priceScaleId=att_name)#, color="blue")
|
||||
tmp.set(xloc_me(series, xloc))
|
||||
|
||||
Reference in New Issue
Block a user