Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Day trading within whole numbers

This month Stocks and Commodities had an article by Ken Calhoun on day trading using whole numbers.

Algorithm

  1. Find stock getting ready to take out their 2-day high
    • just above a whole number
    • priced $15 to $50 (configurable)
    • >15k shares per minute traded (configurable)
  2. Set buy-stop order 0.20 above whole number (configurable)
  3. On entry set stop at whole number
    1. Exit trade on 0.80 gain (configurable)

Extensions

  1. You can set global_tolerance_to_whole_number to allow stocks at 13.98, 14.02, etc.
  2. You can cease entering new positions at end of day (configurable)
  3. You can set the time at end of day to close all positions (configurable)

Comments

Uses pipeline with custom filters and custom factors
Uses order_optimal_portfolio