Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Help needed on Arooon strategy

Im trying to buy a stock when the aroon up is above 90, but it wont work due to an error saying the high's dimensions are wrong.

1 response

Here's an updated version that fixes the error. Changed

        down, up = talib.AROON(highs, lows,        timeperiod=14)

to

        down, up = talib.AROON(highs[s], lows[s], timeperiod=14)

'highs' and 'lows' are 2D arrays. the talib functions expect 1D arrays. Made a few other changes to the order method too.

Note you may have problems using the 'order_target_percent' method being run every minute 'handle_data'. See https://www.quantopian.com/posts/why-am-i-over-and-under-trading.

Good luck.