Back to Posts
Listen to Thread

I cloned this strategy:
www.quantopian.com/posts/round-numbers-strategy-implementation

And changed company from Apple to Google,
but it still says Apple in backtesting output.
What gives?

Clone Algorithm
14
Loading...
Backtest from to with initial capital ( data)
Cumulative performance:
Algorithm Benchmark
Custom data:
Week
Month
All
Total Returns
--
Alpha
--
Beta
--
Sharpe
--
Sortino
--
Information Ratio
--
Benchmark Returns
--
Volatility
--
Max Drawdown
--
Returns 1 Month 3 Month 6 Month 12 Month
Alpha 1 Month 3 Month 6 Month 12 Month
Beta 1 Month 3 Month 6 Month 12 Month
Sharpe 1 Month 3 Month 6 Month 12 Month
Sortino 1 Month 3 Month 6 Month 12 Month
Information Ratio 1 Month 3 Month 6 Month 12 Month
Volatility 1 Month 3 Month 6 Month 12 Month
Max Drawdown 1 Month 3 Month 6 Month 12 Month
This backtest was created using an older version of the backtester. Please re-run this backtest to see results using the latest backtester. Learn more about the recent changes.
There was a runtime error.

Lars, to change the stock, you have to change the sid, not just the variable name. Line 2:

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 ;) More docs.

Log in to reply to this thread.
Not a member? Sign up!