fixed some minor bugs

This commit is contained in:
Gert Wohlgemuth 2018-05-07 13:25:01 -07:00
parent c403ef3b20
commit 79b9eb229d

View File

@ -124,10 +124,13 @@ 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=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) fig.append_trace(chart, plotnumber, 1)
def plot_stop_loss_trade(df_sell, fig, analyze, args): def plot_stop_loss_trade(df_sell, fig, analyze, args):
""" """
plots the stop loss for the associated trades and buys plots the stop loss for the associated trades and buys
@ -202,6 +205,7 @@ def find_profits(data):
# find all previous buys # find all previous buys
df_sell = data[data['sell'] == 1] df_sell = data[data['sell'] == 1]
df_sell['profit'] = 0
df_buys = data[data['buy'] == 1] df_buys = data[data['buy'] == 1]
lastDate = data['date'].iloc[0] lastDate = data['date'].iloc[0]