Back to Community
Help Please Moving Average Robinhood

Hi,

I know this is not very realistic yet. I need help improving it. I am knew to Quantopian so I do not understand python yet. How do I fix the line errors on lines 34 and 35. Also, how would I make this algorithm work with my robinhood account.

Clone Algorithm
10
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: 57a7b04a1d54361003e4a0f1
There was a runtime error.
3 responses

What errors? It works in my hands and seems to work in yours too, at least to the extent that it generated complete backtest output.

Depreciation warnings on lines 34 and 35. I want to create an algorithm that will trade stocks based on a 5 day moving average and that will also be compatible with Robinhood.

Follow the "learn more here" links in the warning messages.

Those warnings ought to be irrelevant to Robinhood compatibility, though.