fixed some minor bugs
This commit is contained in:
parent
c403ef3b20
commit
79b9eb229d
@ -124,10 +124,13 @@ def plot_cci_dataframe(data, fig, args, plotnumber):
|
||||
:param args:
|
||||
:return:
|
||||
"""
|
||||
chart = go.Scattergl(x=data['date'], y=data[args.plotcci], name=args.plotcci)
|
||||
if args.plotcci:
|
||||
for x in args.plotcci:
|
||||
chart = go.Scattergl(x=data['date'], y=data[x], name=x)
|
||||
fig.append_trace(chart, plotnumber, 1)
|
||||
|
||||
|
||||
|
||||
def plot_stop_loss_trade(df_sell, fig, analyze, args):
|
||||
"""
|
||||
plots the stop loss for the associated trades and buys
|
||||
@ -202,6 +205,7 @@ def find_profits(data):
|
||||
# find all previous buys
|
||||
|
||||
df_sell = data[data['sell'] == 1]
|
||||
df_sell['profit'] = 0
|
||||
df_buys = data[data['buy'] == 1]
|
||||
lastDate = data['date'].iloc[0]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user