Dmitry Beresnev
commited on
Commit
Β·
7406726
1
Parent(s):
890b872
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:
|