Automated long-only trading strategy for Interactive Brokers (IBKR), using two technical indicators for entries, indicator-based take-profit, and percentage-based stop-loss. Includes backtesting framework and live execution with IBKR TWS/Gateway.
Last updated Jul 1, 2026
14
Stars
0
Forks
0
Issues
0
Stars/day
Attention Score
46
Topics
Language breakdown
Python 100.0%
▸ Files
click to expand
README
IBKR Long-Only Strategy
Single-file automated trading strategy for Interactive Brokers (IBKR).
- Entries: Based on 2 indicators
- Take-Profit: From one indicator
- Stop-Loss: Simple percentage
- Data: Direct from IBKR only
- Modes: Backtest + Live trading
Usage
python strategy.py --symbols AAPL --years 10 --exit-mode DAILY_EMA30 --sl-pct 0.02 --confirm-bars 2 --sl-arm-bars 2 --cooldown-bars 1
Configure IBKR host/port/client ID and stop-loss % inside
.env`. 🔗 More in this category