Comment

Comment by Veratyr

Anyone interested in robo-investing might also be interested in Quantopian (https://www.quantopian.com/).

It's marketed as a platform that facilitates competition for the best trading algorithms but really, algos can be as complex or as simple as you want. A simple monthly portfolio rebalancer takes ~5 lines of code (handle_data is boilerplate required by the platform):

  def initialize(context):
      schedule_function(rebalance, date_rule=date_rules.month_end())
      
  def rebalance(context, data):
      order_target_percent(symbol('IVV'), .6)
      order_target_percent(symbol('MUB'), .4)
      
  def handle_data(context, data):
      pass
Plug that in, backtest it (it has a pretty comprehensive backtesting and research suite) and add your Interactive Brokers or Robinhood account details and you're off.

It's all free as well.

Note: I have no ties to Quantopian, I just discovered them after being disappointed by how little flexibility Wealthfront and Betterment offered me.

parent Veratyr 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton