Files
XauBot/docker-logs.sh
T
GifariKemal 214b64945d feat: apply #28B smart breakeven + #31B H1 EMA20 filter, add backtests #26-#32
Live trading optimizations (cumulative: $2,807 net, 81.8% WR, Sharpe 3.97):
- #28B: Smart breakeven locks profit at entry + 0.5x ATR instead of fixed $2
- #31B: H1 Price vs EMA20 filter — BUY only when H1 bullish, SELL only when bearish

Backtests #26-#32 (7 scripts testing sell improvement, regime-aware entry,
confluence scoring, dynamic RR, multi-TF H1, and ML exit optimizer).
Winners: #28B (+$229), #31B (+$343). Failed: #26, #27, #29, #30, #32.

Also includes: web dashboard redesign, Docker setup, startup scripts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 10:33:24 +07:00

20 lines
500 B
Bash

#!/bin/bash
# XAUBot AI - Docker Logs Viewer
set -e
SERVICE="$1"
LINES="${2:-100}"
if [ -z "$SERVICE" ]; then
echo "📋 Viewing logs for all services..."
echo "💡 Tip: Use './docker-logs.sh SERVICE [LINES]' to view specific service"
echo " Available: trading-api, dashboard, postgres, pgadmin"
echo ""
docker-compose logs -f --tail=$LINES
else
echo "📋 Viewing logs for: $SERVICE (last $LINES lines)"
echo ""
docker-compose logs -f --tail=$LINES $SERVICE
fi