feat: add signal score detail to bot logs for HOLD reason debugging

get_signal() now returns (signal, detail) tuple with long/short scores,
ADX value, volume surge status, and HOLD reason for easier diagnosis.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
21in7
2026-03-07 02:20:44 +09:00
parent c577019793
commit 0a8748913e
5 changed files with 46 additions and 19 deletions

View File

@@ -73,7 +73,7 @@ def _process_index(args: tuple) -> dict | None:
if df_ind.iloc[-1].isna().any():
return None
signal = ind.get_signal(df_ind)
signal, _ = ind.get_signal(df_ind)
if signal == "HOLD":
return None