Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Parabolic SAR

I am having a hard time configuring Parabolic SAR using the talib library.

I can't seem to have the correct settings or input for SAR.

    sarU = talib.SAR(closeP, optInAcceleration=0.01, optInMaximum=0.02)  
    print(sarU)  

Where closeP is the close price for the security.

Here is the output I get:

TypeError: Argument 'high' has incorrect type (expected numpy.ndarray, got float)

I am also importing talib and numpy library using the import function.

Any idea what I might be doing wrong here?

Thank you for your help. Appreciate it!