Add USAGE_LINUX.md — bot and CLI run instructions for Linux server

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Harwinder
2026-05-07 23:12:55 -04:00
parent a596e7cab2
commit 353ff05267
+42
View File
@@ -0,0 +1,42 @@
# Running ForexBot2 on Linux
## Install dependencies
```bash
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
```
## Telegram bot
```bash
# Start (runs in background, logs to file)
nohup .venv/bin/python telegram_bot.py >> bot.log 2>&1 &
# Follow logs
tail -f bot.log
# Check it is running
pgrep -a -f telegram_bot.py
# Stop
pkill -f telegram_bot.py
```
## Live signal (CLI)
```bash
.venv/bin/python main.py # H1 summary
.venv/bin/python main.py --detail # full indicator breakdown
.venv/bin/python main.py --json # JSON output
```
## Backtest
```bash
.venv/bin/python main.py --backtest
.venv/bin/python main.py --backtest --optimize
```
> No GPU required — GPU code is only used by `backtest_gpu.py`.