3VVM commited on
Commit
2e07042
·
verified ·
1 Parent(s): 7d846ae

Update app.py from anycoder

Browse files
Files changed (1) hide show
  1. app.py +18 -18
app.py CHANGED
@@ -100,24 +100,24 @@ def analyze_market(symbol, timeframe, prediction_days):
100
  # Latest price info
101
  latest = df.iloc[-1]
102
  price_info = f"""
103
- ### 📊 {symbol} - Latest Market Data
104
-
105
- | Metric | Value |
106
- |--------|-------|
107
- | **Current Price** | {format_currency(latest['Close'])} |
108
- | **Open** | {format_currency(latest['Open'])} |
109
- | **High** | {format_currency(latest['High'])} |
110
- | **Low** | {format_currency(latest['Low'])} |
111
- | **Volume** | {latest['Volume']:,.0f} |
112
- | **Daily Change** | {((latest['Close'] - latest['Open']) / latest['Open'] * 100):.2f}% |
113
- | **RSI (14)** | {latest['RSI']:.2f} |
114
- | **MACD** | {latest['MACD']:.4f} |
115
- | **Signal Line** | {latest['MACD_Signal']:.4f} |
116
- | **Bollinger Upper** | {format_currency(latest['BB_Upper'])} |
117
- | **Bollinger Lower** | {format_currency(latest['BB_Lower'])} |
118
- | **SMA 50** | {format_currency(latest['SMA_50'])} |
119
- | **SMA 200** | {format_currency(latest['SMA_200'])} |
120
- """
121
 
122
  return (
123
  price_info,
 
100
  # Latest price info
101
  latest = df.iloc[-1]
102
  price_info = f"""
103
+ ### 📊 {symbol} - Latest Market Data
104
+
105
+ | Metric | Value |
106
+ |--------|-------|
107
+ | **Current Price** | {format_currency(latest['Close'])} |
108
+ | **Open** | {format_currency(latest['Open'])} |
109
+ | **High** | {format_currency(latest['High'])} |
110
+ | **Low** | {format_currency(latest['Low'])} |
111
+ | **Volume** | {latest['Volume']:,.0f} |
112
+ | **Daily Change** | {((latest['Close'] - latest['Open']) / latest['Open'] * 100):.2f}% |
113
+ | **RSI (14)** | {latest['RSI']:.2f} |
114
+ | **MACD** | {latest['MACD']:.4f} |
115
+ | **Signal Line** | {latest['MACD_Signal']:.4f} |
116
+ | **Bollinger Upper** | {format_currency(latest['BB_Upper'])} |
117
+ | **Bollinger Lower** | {format_currency(latest['BB_Lower'])} |
118
+ | **SMA 50** | {format_currency(latest['SMA_50'])} |
119
+ | **SMA 200** | {format_currency(latest['SMA_200'])} |
120
+ """
121
 
122
  return (
123
  price_info,