-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlauncher.py
More file actions
35 lines (30 loc) · 1.31 KB
/
Copy pathlauncher.py
File metadata and controls
35 lines (30 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python3
import sys
import subprocess
from pathlib import Path
def main():
script_dir = Path(__file__).parent
print("==============================================")
print(" Hybrid ALFA-Transformer EA Control Panel")
print("==============================================")
print(" 1. Train Hybrid Model (Run this first!)")
print(" 2. Start Daemon (For live trading)")
print(" 3. Generate Backtest (For strategy testing)")
print(" 4. Re-run Installer / Update Data")
print()
while True:
choice = input("Command (1-4, or 'q' to quit): ").strip().lower()
if choice in ['q', 'quit']:
break
elif choice in ['1', 'train']:
subprocess.run([sys.executable, script_dir / "train_alpha.py"])
elif choice in ['2', 'daemon']:
subprocess.run([sys.executable, script_dir / "alpha.daemon.py"])
elif choice in ['3', 'backtest']:
subprocess.run([sys.executable, script_dir / "generate_alpha_backtest.py"])
elif choice in ['4', 'install']:
subprocess.run([sys.executable, script_dir / "install_alpha.py"])
else:
print("Invalid choice. Please enter a number from 1 to 4.")
if __name__ == "__main__":
main()