Can somebody explain to me how a string like this is evaluated in Python?
(bull_1 > sma_bull_2 < sma_bull_3 < sma_bull_4 < sma_bull_5 < sma_bull_6 > 0)&\
I would have thought it would be the same as this, but it is most definitely not:
(bull_1 > sma_bull_2)&\
(sma_bull_2 < sma_bull_3)&\
(sma_bull_3 < sma_bull_4)&\
(sma_bull_4 < sma_bull_5)&\
(sma_bull_5 < sma_bull_6)&\
(sma_bull_6 > 0)&\
Perhaps something to do with the alternating direction of the comparison operators. So what is actually going on? I'm still trying to wrap my head around what this algorithm is actually basing its prediction on.
@Alex B, Quantopian stopped supporting Robinhood almost a year ago and there is no drop-in replacement. There's a brokerage called Alpaca that plans to support zipline-live, so some Quantopian algorithms should work there, but not this one as it depends on a dataset only available for free on the Q platform.