Python IBKR Trading Template -- 2

Job ID: 39955077

Budget: $10 – $30 USD

Goal
Build a minimal, clean RSI strategy template that works for both backtesting and live trading with IBKR using ib_async and TA-Lib.

Tech/Environment
- Program Language: Python (Windows)
- IDE: PyCharm
- Broker Name: IBKR
- API Libs (must use): ib_async, TA-Lib

Strategy Parameter:
- Indicator: RSI(14) on H1 bars (evaluate on bar close)
- Symbol: VOO
- Position Size: 1 share

Simple Template:
- Entry: If RSI < 30 → BUY 1 share.
- Exit: If RSI > 70 → Close the position (sell 1 share).
- De-duplication: If there’s an existing open position with the same orderRef, do not open a duplicate position.
- Order Reference: Every order must set orderRef (e.g., Strategy_VOO_RSI_H1) to identify/track the trade.

Deliverables
- Backtest script
- Live script
- Minimal outputs: console logs (timestamp, RSI, signal, order id/status), and simple CSV of signals/trades.