alexaxbreadbytes commited on
Commit
5573894
·
1 Parent(s): 749b599

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -180,9 +180,11 @@ def filt_df(df, cheader, symbol_selections):
180
  def load_data(filename, otimeheader, fmat):
181
  df = pd.read_csv(open(filename,'r'), sep='\t') # so as not to mutate cached value
182
 
183
- if (filename == "CT-Trade-Log.csv") or (filename == "CC-Trade-Log.csv"):
184
  df.columns = ['Trade','Entry Date','Buy Price', 'Sell Price','Exit Date', 'P/L per token', 'P/L %', 'Drawdown %']
185
  df.insert(1, 'Signal', ['Long']*len(df))
 
 
186
  else:
187
  df.columns = ['Trade','Signal','Entry Date','Buy Price', 'Sell Price','Exit Date', 'P/L per token', 'P/L %']
188
 
 
180
  def load_data(filename, otimeheader, fmat):
181
  df = pd.read_csv(open(filename,'r'), sep='\t') # so as not to mutate cached value
182
 
183
+ if filename == "CT-Trade-Log.csv":
184
  df.columns = ['Trade','Entry Date','Buy Price', 'Sell Price','Exit Date', 'P/L per token', 'P/L %', 'Drawdown %']
185
  df.insert(1, 'Signal', ['Long']*len(df))
186
+ elif filename == "CC-Trade-Log.csv"):
187
+ df.columns = ['Trade','Signal','Entry Date','Buy Price', 'Sell Price','Exit Date', 'P/L per token', 'P/L %', 'Drawdown %']
188
  else:
189
  df.columns = ['Trade','Signal','Entry Date','Buy Price', 'Sell Price','Exit Date', 'P/L per token', 'P/L %']
190