added support for dynamic names
This commit is contained in:
parent
cec3014790
commit
08ca4f10ba
@ -109,8 +109,10 @@ def plot_rsi_dataframe(data, fig, args, plotnumber):
|
|||||||
:param args:
|
:param args:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
rsi = go.Scattergl(x=data['date'], y=data[args.plotrsi], name='RSI')
|
if args.plotrsi:
|
||||||
fig.append_trace(rsi, plotnumber, 1)
|
for x in args.plotrsi:
|
||||||
|
rsi = go.Scattergl(x=data['date'], y=data[x], name=x)
|
||||||
|
fig.append_trace(rsi, plotnumber, 1)
|
||||||
|
|
||||||
|
|
||||||
def plot_cci_dataframe(data, fig, args, plotnumber):
|
def plot_cci_dataframe(data, fig, args, plotnumber):
|
||||||
@ -122,7 +124,7 @@ def plot_cci_dataframe(data, fig, args, plotnumber):
|
|||||||
:param args:
|
:param args:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
chart = go.Scattergl(x=data['date'], y=data[args.plotcci], name='CCI')
|
chart = go.Scattergl(x=data['date'], y=data[args.plotcci], name=args.plotcci)
|
||||||
fig.append_trace(chart, plotnumber, 1)
|
fig.append_trace(chart, plotnumber, 1)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user