Ken Sang Tang commited on
Commit
3f8befe
·
verified ·
1 Parent(s): 19d8247

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ def add_technical_indicators(data):
48
 
49
  # Calculate MACD and select only the MACD line
50
  macd = ta.macd(data['Close'], fast=12, slow=26)
51
- if MACD_12_26_9' in macd.columns:
52
  data['MACD'] = macd['MACD_12_26_9']
53
  else:
54
  print("MACD data not available.")
 
48
 
49
  # Calculate MACD and select only the MACD line
50
  macd = ta.macd(data['Close'], fast=12, slow=26)
51
+ if 'MACD_12_26_9' in macd.columns:
52
  data['MACD'] = macd['MACD_12_26_9']
53
  else:
54
  print("MACD data not available.")