Files
lowkey_backtest/setup_schedule.sh
Simon Moisy b5550f4ff4 Add daily model training scripts and terminal UI for live trading
- Introduced `train_daily.sh` for automating daily model retraining, including data download and model training steps.
- Added `install_cron.sh` for setting up a cron job to run the daily training script.
- Created `setup_schedule.sh` for configuring Systemd timers for daily training tasks.
- Implemented a terminal UI using Rich for real-time monitoring of trading performance, including metrics display and log handling.
- Updated `pyproject.toml` to include the `rich` dependency for UI functionality.
- Enhanced `.gitignore` to exclude model and log files.
- Added database support for trade persistence and metrics calculation.
- Updated README with installation and usage instructions for the new features.
2026-01-18 11:08:57 +08:00

17 lines
536 B
Bash
Executable File

#!/bin/bash
# Setup script for Systemd Timer (Daily Training)
SERVICE_FILE="tasks/lowkey-training.service"
TIMER_FILE="tasks/lowkey-training.timer"
SYSTEMD_DIR="/etc/systemd/system"
echo "To install the daily training schedule, please run the following commands:"
echo ""
echo "sudo cp $SERVICE_FILE $SYSTEMD_DIR/"
echo "sudo cp $TIMER_FILE $SYSTEMD_DIR/"
echo "sudo systemctl daemon-reload"
echo "sudo systemctl enable --now lowkey-training.timer"
echo ""
echo "To check the status:"
echo "systemctl list-timers --all | grep lowkey"