redradios commited on
Commit
d8604c8
·
1 Parent(s): cf6ba65

Threshold BUY/SELL subido a 0.7 (backtest +128%)

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.6:
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.6:
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