Back to Community
New to Quantopian help fixing api and compatible with robinhood

Hi,

I am new to programming and I would like to fix the api, make it compatible with robhinhood. (Currently it trades above the starting capital)
Also it does not work with certain stocks due to past stocks having the same symbol.

Clone Algorithm
8
Loading...
Backtest from to with initial capital
Total Returns
--
Alpha
--
Beta
--
Sharpe
--
Sortino
--
Max Drawdown
--
Benchmark Returns
--
Volatility
--
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
Volatility 1 Month 3 Month 6 Month 12 Month
Max Drawdown 1 Month 3 Month 6 Month 12 Month
# Backtest ID: 57a748353352470fff775650
There was a runtime error.
1 response

Hi,

To use the current stocks, in line 5, replace the use of "symbols" with "sid".
e.g.

context.stocks= symbols('LUV', 'P', 'AAL', 'GRPN', 'F')

context.stocks= [sid(4589),sid(41579),sid(45971),sid(42118),sid(2673)]