From 353ff052679b0472ca3a55ad946511582a3a3c08 Mon Sep 17 00:00:00 2001 From: Harwinder Date: Thu, 7 May 2026 23:12:55 -0400 Subject: [PATCH] =?UTF-8?q?Add=20USAGE=5FLINUX.md=20=E2=80=94=20bot=20and?= =?UTF-8?q?=20CLI=20run=20instructions=20for=20Linux=20server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- USAGE_LINUX.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 USAGE_LINUX.md diff --git a/USAGE_LINUX.md b/USAGE_LINUX.md new file mode 100644 index 0000000..f0c5023 --- /dev/null +++ b/USAGE_LINUX.md @@ -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`.