Spaces:
Sleeping
Sleeping
Threshold BUY/SELL subido a 0.7 (backtest +128%)
Browse files
app.py
CHANGED
|
@@ -185,10 +185,10 @@ async def predict(req: PredictRequest):
|
|
| 185 |
if signal_result and isinstance(signal_result, dict):
|
| 186 |
sig = signal_result.get("signal")
|
| 187 |
conf = signal_result.get("confidence", 0)
|
| 188 |
-
if sig == "BUY" and conf > 0.
|
| 189 |
result["recommendation"] = "BUY"
|
| 190 |
result["action"] = f"BUY signal ({conf:.0%} conf, backtest WR: {signal_result.get('backtest_win_rate', 0):.0f}%)"
|
| 191 |
-
elif sig == "SELL" and conf > 0.
|
| 192 |
result["recommendation"] = "SELL"
|
| 193 |
result["action"] = f"SELL signal ({conf:.0%} conf)"
|
| 194 |
|
|
|
|
| 185 |
if signal_result and isinstance(signal_result, dict):
|
| 186 |
sig = signal_result.get("signal")
|
| 187 |
conf = signal_result.get("confidence", 0)
|
| 188 |
+
if sig == "BUY" and conf > 0.7:
|
| 189 |
result["recommendation"] = "BUY"
|
| 190 |
result["action"] = f"BUY signal ({conf:.0%} conf, backtest WR: {signal_result.get('backtest_win_rate', 0):.0f}%)"
|
| 191 |
+
elif sig == "SELL" and conf > 0.7:
|
| 192 |
result["recommendation"] = "SELL"
|
| 193 |
result["action"] = f"SELL signal ({conf:.0%} conf)"
|
| 194 |
|