26 lines
636 B
Bash
Executable File
26 lines
636 B
Bash
Executable File
#!/bin/bash
|
|
# setup.sh — One-command environment setup for Mad Turtle v2.0
|
|
|
|
set -e
|
|
|
|
echo "=== Mad Turtle v2.0 Setup ==="
|
|
|
|
# Python venv
|
|
if [ ! -d .venv ]; then
|
|
python3 -m venv .venv
|
|
echo "Created .venv"
|
|
fi
|
|
|
|
source .venv/bin/activate
|
|
|
|
pip install --upgrade pip setuptools wheel
|
|
pip install numpy onnx onnxruntime fastapi uvicorn pydantic
|
|
|
|
# Optional: for training real models (requires Python 3.11/3.12 + Xcode CLT)
|
|
# pip install scikit-learn skl2onnx pandas
|
|
|
|
echo "=== Setup complete ==="
|
|
echo "Activate venv: source .venv/bin/activate"
|
|
echo "Start server: python python/run_server.py"
|
|
echo "Then attach MadTurtle.mq5 to MT5."
|