For UC Berkeley's Quant Decal
For UC Berkeley's Quant Decal
The Implementation is not done the way it works in the Excel spreadsheet.
Transactions List1 - 15 of 15 PreviousNext
DATE SECURITY TRANSACTION # SHARES PRICE $ AMOUNT
2008-10-19 17:00:00 AAPL BUY 100 $98.43 $9,843.00
2008-10-20 17:00:00 AAPL BUY 100 $91.40 $9,140.00
2008-10-22 17:00:00 AAPL BUY 100 $98.25 $9,825.00
2008-12-08 16:00:00 AAPL BUY 100 $100.08 $10,008.00
2008-12-11 16:00:00 AAPL BUY 100 $98.40 $9,840.00
2009-11-22 16:00:00 AAPL BUY 100 $205.90 $20,590.00
2009-12-02 16:00:00 AAPL BUY 100 $196.53 $19,653.00
2010-02-03 16:00:00 AAPL BUY 100 $192.03 $19,203.00
2011-11-09 16:00:00 AAPL BUY 100 $385.24 $38,524.00
2012-03-15 17:00:00 AAPL BUY 100 $585.60 $58,560.00
2012-03-22 17:00:00 AAPL BUY 100 $596.23 $59,623.00
2012-09-20 17:00:00 AAPL BUY 100 $700.73 $70,073.00
2012-10-31 17:00:00 AAPL BUY 100 $596.55 $59,655.00
2012-11-01 17:00:00 AAPL BUY 100 $576.97 $57,697.00
2013-01-21 16:00:00 AAPL BUY 100 $504.74 $50,474.00
There are only buy orders, when there should be both buy and sell orders.
Idea is to buy at close price, and sell at open next day - if going long.
Or vice versa, sell at close price and buy back again at open next day - if going short.
So no position should be more than one day.
I cloned the code, to try it on Google - but it seems like it still buys Apple
www.quantopian.com/posts/round-numbers-strategy-google-or-is-still-apple
... Weird.
Lars, to change the stock, you have to change the sid, not just the variable name.
context.goog=sid(24)
should be
context.goog=sid(26578)
When you retype that you'll see the autocomplete that appears. We don't ask you to memorize all the sids ;)
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances.