Dmitry Beresnev commited on
Commit ·
b86b0bb
1
Parent(s): 9e5cc20
fix prediction report
Browse files
src/services/stock_predictor.py
CHANGED
|
@@ -358,6 +358,7 @@ class AsyncStockPredictor:
|
|
| 358 |
max_pred = np.max(predictions)
|
| 359 |
price_change = ((mean_pred - last_close) / last_close) * 100
|
| 360 |
|
|
|
|
| 361 |
message_parts.extend([
|
| 362 |
"🎲 **Price Predictions:**",
|
| 363 |
f"• Expected Price: ${mean_pred:.2f} ({price_change:+.2f}%)",
|
|
@@ -365,6 +366,13 @@ class AsyncStockPredictor:
|
|
| 365 |
f"• Prediction Samples: {len(predictions)}",
|
| 366 |
""
|
| 367 |
])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 368 |
|
| 369 |
# Add technical indicators if available
|
| 370 |
if indicators:
|
|
|
|
| 358 |
max_pred = np.max(predictions)
|
| 359 |
price_change = ((mean_pred - last_close) / last_close) * 100
|
| 360 |
|
| 361 |
+
'''
|
| 362 |
message_parts.extend([
|
| 363 |
"🎲 **Price Predictions:**",
|
| 364 |
f"• Expected Price: ${mean_pred:.2f} ({price_change:+.2f}%)",
|
|
|
|
| 366 |
f"• Prediction Samples: {len(predictions)}",
|
| 367 |
""
|
| 368 |
])
|
| 369 |
+
'''
|
| 370 |
+
message_parts.extend([
|
| 371 |
+
"🎲 **Price Predictions:**",
|
| 372 |
+
f"• Expected Price: ${mean_pred:.2f} ({price_change:+.2f}%)",
|
| 373 |
+
f"• Price Range: ${min_pred:.2f} - ${max_pred:.2f}",
|
| 374 |
+
""
|
| 375 |
+
])
|
| 376 |
|
| 377 |
# Add technical indicators if available
|
| 378 |
if indicators:
|