Spaces:
Runtime error
Runtime error
Ken Sang Tang commited on
Update app.py
Browse files
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.")
|