mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-06-06 05:51:19 +08:00
Backend changes (logger/decision_logger.go): - Fixed Profit Factor to use standard formula (total profit / total loss) - Previously used average values which was incorrect when win/loss counts differ - Now saves total amounts before calculating averages for accurate ratio Frontend changes (web/src/components/AILearning.tsx): - Fixed display units: changed USDT amounts from "%" to "USDT" - Updated avg_win and avg_loss to show "USDT Average" instead of "%" - Updated best/worst performer displays to show "USDT" instead of "%" - Added "(USDT)" labels to table headers for clarity - Removed "%" from all table data cells showing monetary amounts This ensures accurate performance metrics and eliminates user confusion between percentage values and absolute USDT amounts. Co-Authored-By: tinkle-community <tinklefund@gmail.com>