Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
too much draw down, not smooth enough but nice to look at and dream about making that much

Been playing around in Algoriz for a month now but it doesn't have stoch rsi yet and that's my bread and butter. I've made some money in Robinhood playing with uwti dwti and now the jdst and jnug but I have a day job and looking to automate my ideas. I have no idea how to write code but know that what i track on stockcharts.com is stoch rsi and I know what I want the algo to do but can't translate it to code. So i found the Tablib stoch and tried messing with it. I still don't understand it when comparing to what I'm changing in stockcharts.com. I like the results but the draw downs are obviously unrealistic. Not even sure my daily stuff would work long term. Any guidance to code that easy to digest for stoch rsi params ?

5 responses

You're on the right track with stochastics. Besides Q's built-in search there's also this type of search for finding examples.
Try the tool in this backtest. (And turn off logging, it is too noisy in this case).

Presumably you'll eventually be using pipeline dynamically. I'd recommend storing the orders in a context variable, determine which ones are sell (decrease in allocation for long, increasingly negative for short) and which are buy and then schedule the sells, give them a few minutes to complete (considering partial fill), and then another schedule_function that uses available cash for any that are buy. It's not easy yet is worth the effort to avoid margin. Right now the leverage is beyond the moon. And Pluto. The actual return on amount invested however, is respectable, at 456%.

I knew it was too good to be as amazing as I thought. Thank you for the insights. I re-read the paragraph 4 times so far. I do believe I get what you mean I need to do to make any future algo live tradeable. Do the backtest take into account actual volumes in history? When looking at these trading quantities for just the two stocks I'm aiming to retire on :) real volume wouldn't support back test volumes and so it can be misleading.

@Joel

I wouldn't trust the backtest without importing your own data.

I opened an account here back in October 2016 but quickly got overwhelmed and just stuck to day trading 3x leveraged on robinhood using stockcharts and didn't come back until this weekend after getting fed up with algoriz' limited-ness. Elsid it looks like I have a lot to learn still , after coming back I still feel quite overwhelmed.

Don't feel bad I just recently learned that myself literally 1-2 days ago, after finding some data discrepancies, currently think of Quantopian as a private VM to run your strategies on, even that I don't know how reliable it is with IB, robinhood I heard has issues, and only rely on the backtest if you import your own data.