| Purpose | Automated system for executing trades with precision, speed, and risk controls while minimizing slippage and human error |
| Core Function | Converts trading signals into actual market orders with intelligent order management, execution optimization, and comprehensive safety checks |
| Market Microstructure | Price-time priority at each exchange; orders interact with the National Best Bid and Offer (NBBO) under Reg NMS • Liquidity is spread across many lit exchanges (NYSE, Nasdaq, Cboe BZX/EDGX, IEX, MEMX, MIAX) plus dark pools and wholesalers • Level 2 / depth-of-book available via direct feeds (e.g., Nasdaq TotalView, NYSE Integrated); consolidated top-of-book via the SIP • Real-time via broker WebSocket / streaming APIs • T+1 for US equities and options (standard cycle since May 28, 2024) |
AlgoKing's executor maintains WebSocket connections with automatic reconnection. If connection drops, pending orders remain at the exchange. Upon reconnection, the system reconciles positions and order status. Critical: existing orders continue to work at the exchange even if you're disconnected. Have a backup connection method (mobile data) and know how to access your broker's app to manage orders manually if needed.
Yes, that's one of the primary benefits of automation. Once configured properly with appropriate risk controls, the system executes without human supervision. However, ensure: 1) Daily loss limits are set to prevent disasters, 2) You have mobile notifications for important events, 3) Someone can access the kill switch in emergencies, 4) The underlying strategy is well-tested and robust.
Key metrics to track: 1) Fill rate - should be >95% for liquid instruments, 2) Slippage - should be <10 basis points for liquid stocks, 3) Rejections - should be <2% of orders. AlgoKing provides an execution dashboard showing these metrics. Compare your actual returns with theoretical (backtest) returns - large differences indicate execution issues.
A cash account requires you to pay in full for every purchase and settle by T+1; you cannot short sell, and selling unsettled positions can trigger good-faith or freeriding violations. A margin account lets you borrow against your securities (Reg T 50% initial requirement, FINRA 25% maintenance), enables short selling and day trading, but subjects you to the Pattern Day Trader rule if you make four or more day trades in five business days (requires $25,000 minimum equity). Use a cash account for simple long investing and a margin account for active or leveraged strategies.
Common rejection reasons: 1) Insufficient buying power/funds - add cash or reduce order size, 2) Price outside the LULD band or the stock is halted - wait for trading to resume, 3) Pattern Day Trader restriction (account under $25,000 flagged as PDT) - wait or fund the account, 4) Market closed - submit an extended-hours order if you want to trade pre/post-market, 5) Invalid or non-tradeable symbol - verify ticker and that it isn't restricted. Check the rejection message for the specific reason code.
For illiquid options: 1) Never use market orders - slippage can be severe, 2) Start with limit orders at mid-price, widen gradually, 3) Consider whether the strike is necessary or if a more liquid strike achieves similar exposure, 4) Be patient - illiquid options may take minutes to fill, 5) Size appropriately - don't try to execute 50% of open interest, 6) Monitor bid-ask spread - if >5% of premium, reconsider the trade.
Momentum strategies typically benefit from AGGRESSIVE or ADAPTIVE mode. Momentum signals have short shelf life - price continues moving in the signal direction. Waiting for limit fill while price moves away costs more than slippage on a market order. However, use limits for high-conviction entries where you're ahead of the move. ADAPTIVE mode works well - starts passive, becomes aggressive if price moves away.
Iron condors have 4 legs which creates complexity. Approach: 1) Submit the whole position as a single 4-leg complex/combo order at a net credit through your broker's Complex Order Book (COB), 2) Or break into two credit spreads (call spread + put spread) and execute each spread as a unit, 3) If legging manually, execute the most liquid leg first, then the rest quickly, 4) Use limit orders with reasonable width, 5) Have legging risk mitigation - if one spread fills but the other doesn't, hedge temporarily, 6) Target liquid weekly or monthly strikes, avoid far OTM low-liquidity options.
Most US broker APIs (Interactive Brokers, Alpaca, Tradier, Schwab) support order modification by replacing or amending an existing order. You need the original order ID and can change price, quantity, or type. Considerations: 1) Modification requests count toward rate/pacing limits, 2) There's a brief moment where a modified order may not be in the book (gap risk), 3) Not all fields can be modified - some brokers cancel-and-replace under the hood; consult API docs, 4) If modification fails, the original order generally remains (unlike cancel which removes it). Always verify modification status via the order status endpoint or stream.
Market open (9:30-9:45 AM ET) has high slippage because: 1) Overnight news causes gap opens, 2) The opening auction/cross may have set the price far from the previous close, 3) Liquidity is building - order books are thin, 4) Price discovery is happening - more volatility, 5) Many orders competing simultaneously. Best practice: Wait 10-15 minutes for liquidity to normalize unless your strategy specifically requires open execution, or participate directly in the opening auction with an MOO/LOO order.
Information leakage occurs when market participants detect your trading intentions. Minimize by: 1) Randomize order timing within intervals, 2) Vary order sizes (not always round numbers), 3) Don't place large visible orders - use iceberg/reserve orders, 4) Mix aggressive and passive execution unpredictably, 5) Avoid predictable patterns (e.g., always executing at VWAP), 6) Consider spreading across correlated instruments, 7) Monitor for patterns in your own fills - consistently getting the worst of bid-ask suggests detection.
Delta-hedged strategies (e.g., long gamma scalping) require coordinated options and futures/underlying execution. Considerations: 1) Execute options first - they're less liquid and define your delta, 2) Calculate required hedge (shares or futures) immediately after options fill, 3) Account for options delta change during execution (gamma), 4) Use fast execution for the hedge to lock it in, 5) Consider exchange-native spread/combo products where available, 6) Monitor net delta in real-time, 7) Have tolerance bands - don't over-trade to maintain perfect delta.
Zero-days-to-expiration (0DTE) trading on SPX and SPY (now expiring every weekday, with Friday weeklies and third-Friday monthlies) is high-volatility: 1) Close positions before the final 30 minutes (by ~3:30 PM ET) if possible, 2) Be aware of pin risk - strikes near current price see unusual activity, 3) Delta and gamma become extreme for ATM options, 4) Spreads widen significantly in the last hour, 5) Use more aggressive limits - theta decay costs more than slippage, 6) Monitor OI concentration for likely pin levels, 7) Note that AM-settled SPX monthlies stop trading the day before and settle on the open, while PM-settled weeklies/0DTE settle on the close, 8) Have emergency market-order capability ready, 9) Consider rolling to the next expiration early in the day if maintaining the position.
Benchmark against: 1) VWAP - did you achieve better than VWAP?, 2) Implementation shortfall vs theoretical - total cost of your approach, 3) Arrival price - price at signal time vs average fill, 4) Market close price - for longer executions, 5) Your own historical performance - are you improving?, 6) By market condition - track performance in trending vs ranging vs volatile markets separately. Also track: fill rate, average time to completion, cancellation rate, modification rate. Statistical significance matters - don't draw conclusions from small samples.
For US markets: 1) Log everything - signals, orders, fills, modifications, cancellations, rejections, 2) Understand that broker-dealers report your full order lifecycle to the Consolidated Audit Trail (CAT), 3) If you provide market access (direct/sponsored), implement and test pre-trade risk controls and a kill switch per SEC Rule 15c3-5, 4) Keep your own records - broker-dealers must retain books and records up to 6 years under SEC Rule 17a-4; retail traders should keep tax records per IRS guidance, 5) Respect Reg SHO (locate/SSR) for short selling, 6) There is no SEBI-style registration for individual retail algo traders, but stay updated on SEC and FINRA rulemaking, 7) Implement reconciliation processes with broker statements and 1099-B data, 8) Maintain documentation of algorithm logic and risk controls, 9) Consider engaging a compliance and tax advisor as your activity scales.
Full guided lessons, quizzes, and a complete strategy library for the United States market. One-time purchase. No subscription, ever.
Get United States access →