- Each position is tied to a specific trading strategy
- Position entries are done manually. Note a stock/option position can have one or more legs
- Position adjustments are done by the robot
- Position exits are done by the robot
- Adjustment rules can be customized with parameters and can be reused for different trading strategies
- Be able to do the following using IB API:
- get current quote for stock, index, or option
- get historic quote - high/low for the past x days
- get current options info: bid, ask, delta, theta, iv, etc
- place single and combination orders: limit, market, stop loss, contingent
- set up alerts
- detect execution of orders
- cancel orders
Major components which can be run from a single workstation (Windows XP) are:
- IB Traders Work Station (TWS) software - This is the interface that does the actual trading.
- Database - To store strategy rules and trading records
- Trading Robot program - This program is implemented in JRuby just runs with no user interface. It accesses TWS and the database, issuing orders to TWS and updates the database.
- Trading Monitor web application - This program is implemented in Ruby on Rails and provides a view of what the trading robot is doing along with reports